There is no way detect what is the real size of a remote image without downloading it first
but in vbulletin and php portal scripts, there is a few plugin to resize the images to show it in small sizes..
i want to do like that ..
a java script may fix the problem but i donno how can i entegre it..
umm how can it work on 4images , on details.php
this code is an example in vbulletin
this is
ncode_imageresizer.jsNcodeImageResizer.IMAGE_ID_BASE = 'ncode_imageresizer_container_';
NcodeImageResizer.WARNING_ID_BASE = 'ncode_imageresizer_warning_';
function NcodeImageResizer(id, img) {
this.id = id;
this.img = img;
this.originalWidth = 0;
this.originalHeight = 0;
this.warning = null;
this.warningTextNode = null;
img.id = NcodeImageResizer.IMAGE_ID_BASE+id;
}
NcodeImageResizer.getNextId = function() {
id = 1;
while(document.getElementById(NcodeImageResizer.IMAGE_ID_BASE+id) != null) {
id++;
}
return id;
}
NcodeImageResizer.createOn = function(img) {
isRecovery = false; // if this is a recovery from QuickEdit, which only restores the HTML, not the OO structure
if(img.id && img.id.indexOf(NcodeImageResizer.IMAGE_ID_BASE) == 0 && document.getElementById(NcodeImageResizer.WARNING_ID_BASE+img.id.substr(NcodeImageResizer.IMAGE_ID_BASE.length)) != null) {
newid = img.id.substr(NcodeImageResizer.IMAGE_ID_BASE.length);
resizer = new NcodeImageResizer(newid, img);
isRecovery = true;
resizer.restoreImage();
} else {
newid = NcodeImageResizer.getNextId();
resizer = new NcodeImageResizer(id, img);
}
if (resizer.originalWidth == 0) resizer.originalWidth = img.width;
if (resizer.originalHeight == 0) resizer.originalHeight = img.height;
if((NcodeImageResizer.MAXWIDTH > 0 && resizer.originalWidth > NcodeImageResizer.MAXWIDTH) || (NcodeImageResizer.MAXHEIGHT > 0 && resizer.originalHeight > NcodeImageResizer.MAXHEIGHT)) {
if(isRecovery) {
resizer.reclaimWarning(warning);
} else {
resizer.createWarning();
}
resizer.scale();
}
}
NcodeImageResizer.prototype.restoreImage = function() {
newimg = document.createElement('IMG');
newimg.src = this.img.src;
this.img.width = newimg.width;
this.img.height = newimg.height;
}
NcodeImageResizer.prototype.reclaimWarning = function() {
warning = document.getElementById(NcodeImageResizer.WARNING_ID_BASE+newid);
this.warning = warning;
this.warningTextNode = warning.firstChild.firstChild.childNodes[1].firstChild;
this.warning.resize = this;
this.scale();
}
NcodeImageResizer.prototype.createWarning = function() {
mtable = document.createElement('TABLE');
mtbody = document.createElement('TBODY');
mtr = document.createElement('TR');
mtd1 = document.createElement('TD');
mtd2 = document.createElement('TD');
mimg = document.createElement('IMG');
mtext = document.createTextNode('');
mimg.src = 'images/statusicon/wol_error.gif';
mimg.width = 16;
mimg.height = 16;
mimg.alt = '';
mimg.border = 0;
mtd1.width = 20;
mtd1.className = 'td1';
mtd2.unselectable = 'on';
mtd2.className = 'td2';
mtable.className = 'ncode_imageresizer_warning';
mtable.textNode = mtext;
mtable.resize = this;
mtable.id = NcodeImageResizer.WARNING_ID_BASE+this.id;
mtd1.appendChild(mimg);
mtd2.appendChild(mtext);
mtr.appendChild(mtd1);
mtr.appendChild(mtd2);
mtbody.appendChild(mtr);
mtable.appendChild(mtbody);
this.img.parentNode.insertBefore(mtable, this.img);
this.warning = mtable;
this.warningTextNode = mtext;
}
NcodeImageResizer.prototype.scale = function() {
if(NcodeImageResizer.MAXWIDTH > 0 && this.originalWidth > NcodeImageResizer.MAXWIDTH) {
resized = true;
this.img.width = NcodeImageResizer.MAXWIDTH;
this.img.height = (NcodeImageResizer.MAXWIDTH / this.originalWidth) * this.originalHeight;
}
if(NcodeImageResizer.MAXHEIGHT > 0 && this.originalHeight > NcodeImageResizer.MAXHEIGHT) {
resized = true;
this.img.height = NcodeImageResizer.MAXHEIGHT;
this.img.width = (NcodeImageResizer.MAXHEIGHT / this.originalHeight) * this.originalWidth;
}
this.warning.width = this.img.width;
this.warning.onclick = function() { return this.resize.unScale(); }
if(this.img.width < 450) {
this.warningTextNode.data = vbphrase['ncode_imageresizer_warning_small'];
} else if(this.img.fileSize && this.img.fileSize > 0) {
this.warningTextNode.data = vbphrase['ncode_imageresizer_warning_filesize'].replace('%1$s', this.originalWidth).replace('%2$s', this.originalHeight).replace('%3$s', Math.round(this.img.fileSize/1024));
//mtext.data = '<phrase 1="'+this.originalWidth+'" 2="'+this.originalHeight+'" 3="'+Math.round(this.img.fileSize/1024)+'">$vbphrase[ncode_imageresizer_warning_filesize]</phrase>';
} else {
this.warningTextNode.data = vbphrase['ncode_imageresizer_warning_no_filesize'].replace('%1$s', this.originalWidth).replace('%2$s', this.originalHeight);
//mtext.data = '<phrase 1="'+this.originalWidth+'" 2="'+this.originalHeight+'">$vbphrase[ncode_imageresizer_warning_no_filesize]</phrase>';
}
return false;
}
NcodeImageResizer.prototype.unScale = function() {
switch(NcodeImageResizer.MODE) {
case 'samewindow':
window.open(this.img.src, '_self');
break;
case 'newwindow':
window.open(this.img.src, '_blank');
break;
case 'enlarge':
default:
this.img.width = this.originalWidth;
this.img.height = this.originalHeight;
this.img.className = 'ncode_imageresizer_original';
if(this.warning != null) {
this.warningTextNode.data = vbphrase['ncode_imageresizer_warning_fullsize'];
this.warning.width = this.img.width;
this.warning.onclick = function() { return this.resize.scale() };
}
break;
}
return false;
}
and its an xml file to import on admincp
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="ncode_imageresizer" active="1">
<title>Otomatik Resim Boyutlandırma | Orjinal Link</title>
<description>Automatically resize posted images</description>
<version>1.0 RC 1</version>
<url>http://www.vbturkiye.org</url>
<versioncheckurl>http://www.ncode.nl/vbulletinplugins/1/</versioncheckurl>
<dependencies>
<dependency dependencytype="vbulletin" minversion="3.6.0 beta 1" maxversion="" />
</dependencies>
<codes>
<code version="1.0 beta 1">
<installcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL');]]></installcode>
<uninstallcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` DROP `ncode_imageresizer_mode`');]]></uninstallcode>
</code>
<code version="1.0 beta 2">
<installcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` ADD `ncode_imageresizer_maxwidth` SMALLINT UNSIGNED DEFAULT NULL NULL , ADD `ncode_imageresizer_maxheight` SMALLINT UNSIGNED DEFAULT NULL NULL');]]></installcode>
<uninstallcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` DROP `ncode_imageresizer_maxwidth`, DROP `ncode_imageresizer_maxheight`');]]></uninstallcode>
</code>
</codes>
<templates>
<template name="ncode_imageresizer_headinclude" templatetype="template" date="1150984937" username="Spleasure" version="1.0 beta 2"><![CDATA[<!--
nCode Image Resizer
(c) nCode
http://www.ncode.nl/
-->
<script type="text/javascript" src="clientscript/ncode_imageresizer.js"></script>
<style type="text/css">
<!--
table.ncode_imageresizer_warning {
background: #FFFFE1;
color: #000000;
border: 1px solid #CCC;
cursor: pointer;
}
table.ncode_imageresizer_warning td {
font-size: 10px;
vertical-align: middle;
text-decoration: none;
}
table.ncode_imageresizer_warning td.td1 {
padding: 5px;
}
table.ncode_imageresizer_warning td.td1 {
padding: 2px;
}
-->
</style>
<script type="text/javascript">
<!--
NcodeImageResizer.MODE = '$NCODE_IMAGERESIZER_MODE';
NcodeImageResizer.MAXWIDTH = $NCODE_IMAGERESIZER_MAXWIDTH;
NcodeImageResizer.MAXHEIGHT = $NCODE_IMAGERESIZER_MAXHEIGHT;
vbphrase['ncode_imageresizer_warning_small'] = '$vbphrase[ncode_imageresizer_warning_small]';
vbphrase['ncode_imageresizer_warning_filesize'] = '$vbphrase[ncode_imageresizer_warning_filesize]';
vbphrase['ncode_imageresizer_warning_no_filesize'] = '$vbphrase[ncode_imageresizer_warning_no_filesize]';
vbphrase['ncode_imageresizer_warning_fullsize'] = '$vbphrase[ncode_imageresizer_warning_fullsize]';
//-->
</script>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Enforce maximum dimensions</title>
<hookname>admin_options_processing</hookname>
<phpcode><![CDATA[if($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions') {
if($oldsetting['varname'] == 'ncode_imageresizer_maxwidth' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) > 0) {
$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxwidth` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']));
} elseif($oldsetting['varname'] == 'ncode_imageresizer_maxheight' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) > 0) {
$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']));
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Enforce maximum dimensions</title>
<hookname>admin_options_processing</hookname>
<phpcode><![CDATA[if($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions') {
if($oldsetting['varname'] == 'ncode_imageresizer_maxwidth' && ($oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) || $oldsetting['value'] == 0) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) > 0) {
$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxwidth` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']));
} elseif($oldsetting['varname'] == 'ncode_imageresizer_maxheight' && ($oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) || $oldsetting['value'] == 0) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) > 0) {
$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']));
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Initialization I</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[if($vbulletin->userinfo['ncode_imageresizer_mode'] == '' || $vbulletin->options['ncode_imageresizer_useroptions'] == 'none') {
$NCODE_IMAGERESIZER_MODE = $vbulletin->options['ncode_imageresizer_defaultmode'];
} else {
$NCODE_IMAGERESIZER_MODE = $vbulletin->userinfo['ncode_imageresizer_mode'];
}
if($vbulletin->userinfo['ncode_imageresizer_maxwidth'] == '' || $vbulletin->options['ncode_imageresizer_useroptions'] == 'none' || $vbulletin->options['ncode_imageresizer_useroptions'] == 'modeonly' || ($vbulletin->options['ncode_imageresizer_useroptions'] == 'maxdimensions' && $vbulletin->options['ncode_imageresizer_maxwidth'] > 0 && $vbulletin->userinfo['ncode_imageresizer_maxwidth'] > $vbulletin->options['ncode_imageresizer_maxwidth'])) {
$NCODE_IMAGERESIZER_MAXWIDTH = $vbulletin->options['ncode_imageresizer_maxwidth'];
} else {
$NCODE_IMAGERESIZER_MAXWIDTH = $vbulletin->userinfo['ncode_imageresizer_maxwidth'];
}
if($vbulletin->userinfo['ncode_imageresizer_maxheight'] == '' || $vbulletin->options['ncode_imageresizer_useroptions'] == 'none' || $vbulletin->options['ncode_imageresizer_useroptions'] == 'modeonly' || ($vbulletin->options['ncode_imageresizer_useroptions'] == 'maxdimensions' && $vbulletin->options['ncode_imageresizer_maxheight'] > 0 && $vbulletin->userinfo['ncode_imageresizer_maxheight'] > $vbulletin->options['ncode_imageresizer_maxheight'])) {
$NCODE_IMAGERESIZER_MAXHEIGHT = $vbulletin->options['ncode_imageresizer_maxheight'];
} else {
$NCODE_IMAGERESIZER_MAXHEIGHT = $vbulletin->userinfo['ncode_imageresizer_maxheight'];
}
if($vbulletin->userinfo['ncode_imageresizer_mode'] != 'none') {
define('NCODE_IMAGERESIZER_INIT', 1);
$globaltemplates[] = 'ncode_imageresizer_headinclude';
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Initialization II</title>
<hookname>global_start</hookname>
<phpcode><![CDATA[if($vbulletin->userinfo['ncode_imageresizer_mode'] != 'none')
$vbulletin->templatecache['headinclude'] .= $vbulletin->templatecache['ncode_imageresizer_headinclude'];]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Image Tag Replacer</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if(defined('NCODE_IMAGERESIZER_INIT')) {
$post['message'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $post['message']);
$post['signature'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $post['signature']);
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: UserCP inclusion</title>
<hookname>profile_complete</hookname>
<phpcode><![CDATA[if($_REQUEST['do'] == 'editoptions' && $vbulletin->options['ncode_imageresizer_useroptions'] != 'none') {
global $vbphrase;
// MODE
$profilefieldname = 'ncode_imageresizer_mode';
$profilefield['title'] = $vbphrase['ncode_imageresizer_mode_title'];
$profilefield['description'] = $vbphrase['ncode_imageresizer_mode_description'];
$show['noemptyoption'] = false;
$show['optionspage'] = true;
$selectbits = '';
$options = array(
'none' => $vbphrase['ncode_imageresizer_none'],
'enlarge' => $vbphrase['ncode_imageresizer_enlarge'],
'samewindow' => $vbphrase['ncode_imageresizer_samewindow'],
'newwindow' => $vbphrase['ncode_imageresizer_newwindow']
);
foreach($options AS $key=>$val) {
$selected = $vbulletin->userinfo['ncode_imageresizer_mode'] == $key ? 'selected="selected"' : '';
eval('$selectbits .= "' . fetch_template('userfield_select_option') . '";');
}
eval('$tempcustom = "' . fetch_template('userfield_select') . '";');
$customfields['threadview'] .= $tempcustom;
if($vbulletin->options['ncode_imageresizer_useroptions'] != 'modeonly') {
// MAXWIDTH
$profilefieldname = 'ncode_imageresizer_maxwidth';
$profilefield['title'] = $vbphrase['ncode_imageresizer_maxwidth_title'];
if($vbulletin->options['ncode_imageresizer_useroptions'] == 'maxdimensions' && $vbulletin->options['ncode_imageresizer_maxwidth'] > 0) {
$profilefield['description'] = construct_phrase($vbphrase['ncode_imageresizer_maxwidth_description_restricted'], $vbulletin->options['ncode_imageresizer_maxwidth']);
} else {
$profilefield['description'] = $vbphrase['ncode_imageresizer_maxwidth_description'];
}
$profilefield['size'] = 5;
$profilefield['maxlength'] = 5;
eval('$tempcustom = "' . fetch_template('userfield_textbox') . '";');
$customfields['threadview'] .= $tempcustom;
// MAXHEIGHT
$profilefieldname = 'ncode_imageresizer_maxheight';
$profilefield['title'] = $vbphrase['ncode_imageresizer_maxheight_title'];
if($vbulletin->options['ncode_imageresizer_useroptions'] == 'maxdimensions' && $vbulletin->options['ncode_imageresizer_maxheight'] > 0) {
$profilefield['description'] = construct_phrase($vbphrase['ncode_imageresizer_maxheight_description_restricted'], $vbulletin->options['ncode_imageresizer_maxheight']);
} else {
$profilefield['description'] = $vbphrase['ncode_imageresizer_maxheight_description'];
}
$profilefield['size'] = 5;
$profilefield['maxlength'] = 5;
eval('$tempcustom = "' . fetch_template('userfield_textbox') . '";');
$customfields['threadview'] .= $tempcustom;
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Signature preview replacer</title>
<hookname>profile_complete</hookname>
<phpcode><![CDATA[if($_REQUEST['do'] == 'editsignature' && defined('NCODE_IMAGERESIZER_INIT')) {
$preview = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $preview);
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>nCode Image Resizer: Process UserCP submission</title>
<hookname>profile_updateoptions</hookname>
<phpcode><![CDATA[if($vbulletin->options['ncode_imageresizer_useroptions'] != 'none') {
$userdata->validfields['ncode_imageresizer_mode'] = array(TYPE_NOHTML, REQ_NO, 'return in_array($data, array(\'none\', \'samewindow\', \'newwindow\', \'enlarge\'));');
$userdata->set('ncode_imageresizer_mode', $vbulletin->GPC['userfield']['ncode_imageresizer_mode']);
if($vbulletin->options['ncode_imageresizer_useroptions'] != 'modeonly') {
$maxwidth = $vbulletin->GPC['userfield']['ncode_imageresizer_maxwidth'] == '' ? 'NULL' : intval($vbulletin->GPC['userfield']['ncode_imageresizer_maxwidth']);
if($vbulletin->options['ncode_imageresizer_useroptions'] == 'maxdimensions' && $vbulletin->options['ncode_imageresizer_maxwidth'] > 0 && $maxwidth != 'NULL' && $maxwidth > $vbulletin->options['ncode_imageresizer_maxwidth']) {
$maxwidth = $vbulletin->options['ncode_imageresizer_maxwidth'];
}
$userdata->validfields['ncode_imageresizer_maxwidth'] = array(TYPE_NOCLEAN, REQ_NO);
$userdata->set('ncode_imageresizer_maxwidth', $maxwidth, false);
$maxheight = $vbulletin->GPC['userfield']['ncode_imageresizer_maxheight'] == '' ? 'NULL' : intval($vbulletin->GPC['userfield']['ncode_imageresizer_maxheight']);
if($vbulletin->options['ncode_imageresizer_useroptions'] == 'maxdimensions' && $vbulletin->options['ncode_imageresizer_maxheight'] > 0 && $maxheight != 'NULL' && $maxheight > $vbulletin->options['ncode_imageresizer_maxheight']) {
$maxheight = $vbulletin->options['ncode_imageresizer_maxheight'];
}
$userdata->validfields['ncode_imageresizer_maxheight'] = array(TYPE_NOCLEAN, REQ_NO);
$userdata->set('ncode_imageresizer_maxheight', $maxheight, false);
}
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="Control Panel Help Text" fieldname="cphelptext">
<phrase name="options_options_ncode_imageresizer_defaultmode_text" date="1149766435" username="Spleasure" version="1.0"><![CDATA[The default resize mode decides what behaviour a user without this setting will experience. This includes anonymous users and users who haven't submitted the User CP -> Options form after this plugin got installed.]]></phrase>
<phrase name="options_options_ncode_imageresizer_defaultmode_title" date="1150295825" username="Spleasure" version="1.0 beta 2"><![CDATA[Default resize mode]]></phrase>
<phrase name="options_options_ncode_imageresizer_maxheight_text" date="1150295914" username="Spleasure" version="1.0 beta 2"><![CDATA[This setting applies for all users who don't have their own setting or anonymous users.
When the plugin detects images which are taller than this height, it will resize them to this height. The width is automatically adapted proportionally.
Enter 0 to allow all heights.]]></phrase>
<phrase name="options_options_ncode_imageresizer_maxheight_title" date="1149766204" username="Spleasure" version="1.0"><![CDATA[Maximum Height]]></phrase>
<phrase name="options_options_ncode_imageresizer_maxwidth_text" date="1150295907" username="Spleasure" version="1.0 beta 2"><![CDATA[This setting applies for all users who don't have their own setting or anonymous users.
When the plugin detects images which are wider than this width, it will resize them to this width. The height is automatically adapted proportionally.
Enter 0 to allow all widths.]]></phrase>
<phrase name="options_options_ncode_imageresizer_maxwidth_title" date="1149766351" username="Spleasure" version="1.0"><![CDATA[Maximum Width]]></phrase>
<phrase name="options_options_ncode_imageresizer_useroptions_text" date="1150987596" username="Spleasure" version="1.0 beta 2"><![CDATA[By default, the users have complete control over the image resizing behaviour. You can limit this with this option.
<ul>
<li><b>Allow all options</b> - This allows the user to set the mode, maximum width and maximum height without restrictions</li>
<li><b>Allow no options</b> - The inverse of the first option: the users will not be able to set anything, alle admin settings are enforced</li>
<li><b>Allow only mode selection</b> - The user can only select the resize mode, not the maximum dimensions</li>
<li><b>Use default dimensions as maximum</b> - The user will be able to set the dimensions, but their settings cannot exceed the default dimensions. This applies only for those dimensions for which a default maximum greater than 0 exists</li>
</ul>]]></phrase>
<phrase name="options_options_ncode_imageresizer_useroptions_title" date="1150987250" username="Spleasure" version="1.0 beta 2"><![CDATA[User options]]></phrase>
</phrasetype>
<phrasetype name="Control Panel Options" fieldname="cpoption">
<phrase name="ncode_imageresizer_useroptions_all" date="1150986314" username="Spleasure" version="1.0 beta 2"><![CDATA[Allow all options]]></phrase>
<phrase name="ncode_imageresizer_useroptions_maxdimensions" date="1150987395" username="Spleasure" version="1.0 beta 2"><![CDATA[Use default dimensions as maximum]]></phrase>
<phrase name="ncode_imageresizer_useroptions_modeonly" date="1150986346" username="Spleasure" version="1.0 beta 2"><![CDATA[Allow only mode selection]]></phrase>
<phrase name="ncode_imageresizer_useroptions_none" date="1150986329" username="Spleasure" version="1.0 beta 2"><![CDATA[Allow no options]]></phrase>
</phrasetype>
<phrasetype name="GLOBAL" fieldname="global">
<phrase name="ncode_imageresizer_warning_filesize" date="0" username="" version=""><![CDATA[Orjinal Boyutunda Açmak İçin ( {1}x{2} ve {3}KB ) Buraya Tıklayın]]></phrase>
<phrase name="ncode_imageresizer_warning_fullsize" date="0" username="" version=""><![CDATA[Küçük Boyutta Görmek için Buraya Tıklayın]]></phrase>
<phrase name="ncode_imageresizer_warning_no_filesize" date="0" username="" version=""><![CDATA[Orjinal Boyutunda Açmak İçin ( {1}x{2} ve {3}KB ) Buraya Tıklayın]]></phrase>
<phrase name="ncode_imageresizer_warning_small" date="0" username="" version=""><![CDATA[Orjinal Boyutunda Açmak İçin ( {1}x{2} ve {3}KB ) Buraya Tıklayın]]></phrase>
</phrasetype>
<phrasetype name="User Tools (global)" fieldname="user">
<phrase name="ncode_imageresizer_enlarge" date="0" username="" version=""><![CDATA[Enlarge in same window]]></phrase>
<phrase name="ncode_imageresizer_maxheight_description" date="1150292343" username="Spleasure" version="1.0 beta 2"><![CDATA[Images taller than this height will be resized. Enter 0 to allow all heights, or leave the field empty to use the default value.]]></phrase>
<phrase name="ncode_imageresizer_maxheight_description_restricted" date="1150988368" username="Spleasure" version="1.0 beta 2"><![CDATA[Images taller than this height will be resized. Enter 0 to allow all heights, or leave the field empty to use the default value. The maximum value is {1}.]]></phrase>
<phrase name="ncode_imageresizer_maxheight_title" date="1150291028" username="Spleasure" version="1.0 beta 2"><![CDATA[Maximum height]]></phrase>
<phrase name="ncode_imageresizer_maxwidth_description" date="1150291833" username="Spleasure" version="1.0 beta 2"><![CDATA[Images wider than this width will be resized. Enter 0 to allow all widths, or leave the field empty to use the default value.]]></phrase>
<phrase name="ncode_imageresizer_maxwidth_description_restricted" date="1150988438" username="Spleasure" version="1.0 beta 2"><![CDATA[Images wider than this width will be resized. Enter 0 to allow all widths, or leave the field empty to use the default value. The maximum value is {1}.]]></phrase>
<phrase name="ncode_imageresizer_maxwidth_title" date="1150291049" username="Spleasure" version="1.0 beta 2"><![CDATA[Maximum width]]></phrase>
<phrase name="ncode_imageresizer_mode_description" date="1150290660" username="Spleasure" version="1.0 beta 2"><![CDATA[This forum automatically resizes images which are too large. Please choose here how you would like to view the enlarged images.]]></phrase>
<phrase name="ncode_imageresizer_mode_title" date="1150290805" username="Spleasure" version="1.0 beta 2"><![CDATA[Images In Posts]]></phrase>
<phrase name="ncode_imageresizer_newwindow" date="0" username="" version=""><![CDATA[Open in new window]]></phrase>
<phrase name="ncode_imageresizer_none" date="0" username="" version=""><![CDATA[Keep original size]]></phrase>
<phrase name="ncode_imageresizer_samewindow" date="0" username="" version=""><![CDATA[Open in same window]]></phrase>
</phrasetype>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_ncode_imageresizer_defaultmode_desc" date="1150986189" username="Spleasure" version="1.0 beta 2"><![CDATA[This will be the resize mode for anonymous users or users who haven't set their preferences yet.]]></phrase>
<phrase name="setting_ncode_imageresizer_defaultmode_title" date="1150986189" username="Spleasure" version="1.0 beta 2"><![CDATA[Default resize mode]]></phrase>
<phrase name="setting_ncode_imageresizer_maxheight_desc" date="1150986241" username="Spleasure" version="1.0 beta 2"><![CDATA[Give the default maximum height of images in pixels for users without this setting and anonymous users. Images taller than the given size will be resized. Enter 0 to ignore the height of images.]]></phrase>
<phrase name="setting_ncode_imageresizer_maxheight_title" date="1150986241" username="Spleasure" version="1.0 beta 2"><![CDATA[Default Maximum Height]]></phrase>
<phrase name="setting_ncode_imageresizer_maxwidth_desc" date="1150986251" username="Spleasure" version="1.0 beta 2"><![CDATA[Give the default maximum width of images in pixels for users without this setting and anonymous users. Images wider than the given size will be resized. Enter 0 to ignore the width of images.]]></phrase>
<phrase name="setting_ncode_imageresizer_maxwidth_title" date="1150986251" username="Spleasure" version="1.0 beta 2"><![CDATA[Default Maximum Width]]></phrase>
<phrase name="setting_ncode_imageresizer_useroptions_desc" date="1150987769" username="Spleasure" version="1.0 beta 2"><![CDATA[By default, the users have complete control over the image resizing behaviour. You can limit this with this option.]]></phrase>
<phrase name="setting_ncode_imageresizer_useroptions_title" date="1150987769" username="Spleasure" version="1.0 beta 2"><![CDATA[User options]]></phrase>
<phrase name="settinggroup_ncode_imageresizer" date="0" username="" version=""><![CDATA[nCode Image Resizer Options]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="ncode_imageresizer" displayorder="1000">
<setting varname="ncode_imageresizer_defaultmode" displayorder="1">
<datatype>free</datatype>
<optioncode>select:piped
none|ncode_imageresizer_none
enlarge|ncode_imageresizer_enlarge
samewindow|ncode_imageresizer_samewindow
newwindow|ncode_imageresizer_newwindow</optioncode>
<validationcode><![CDATA[return in_array($data, array('none', 'enlarge', 'samewindow', 'newwindow'));]]></validationcode>
<defaultvalue>enlarge</defaultvalue>
</setting>
<setting varname="ncode_imageresizer_maxwidth" displayorder="2">
<datatype>number</datatype>
<validationcode><![CDATA[return $data >= 0;]]></validationcode>
<defaultvalue>640</defaultvalue>
</setting>
<setting varname="ncode_imageresizer_maxheight" displayorder="3">
<datatype>number</datatype>
<validationcode><![CDATA[return $data >= 0;]]></validationcode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="ncode_imageresizer_useroptions" displayorder="4">
<datatype>free</datatype>
<optioncode>select:piped
all|ncode_imageresizer_useroptions_all
none|ncode_imageresizer_useroptions_none
modeonly|ncode_imageresizer_useroptions_modeonly
maxdimensions|ncode_imageresizer_useroptions_maxdimensions</optioncode>
<validationcode><![CDATA[return in_array($data, array('all', 'none', 'modeonly', 'maxdimensions'));]]></validationcode>
<defaultvalue>all</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
<helpscript name="options">
<helptopic disp="1" act="options" opt="ncode_imageresizer_defaultmode" />
<helptopic disp="1" act="options" opt="ncode_imageresizer_maxheight" />
<helptopic disp="1" act="options" opt="ncode_imageresizer_maxwidth" />
<helptopic disp="1" act="options" opt="ncode_imageresizer_useroptions" />
</helpscript>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>
but we need to rewrite some codes here..
who can modify it??