انا لا اقصد التعريب التعريب سهل لكن مشكلة مو طالع عندي الشريط الاصفر طالع بالابيض وغير منسق مع الصورهه .
http://e8i.net/t698.html
صورهه من موقعي
وهذا الكود الي عربت منه الاضافة بس باقي اخلي الشريط بالاصفر ومنسق فوق الصوره بالضبط .. وماعرفت لها
\[code\]<?php
/\*
Plugin Name: nCode Image Resizer
Plugin URI: http://www.dmry.net/
Description: This plugin enables you to automatically resize every user-posted image which is larger than given dimensions. Original plugin writen by <a href="http://www.ncode.nl/vbulletinplugins/" target="\_blank" title="Jorrit Schippers">Jorrit Schippers for vBulletin</a>.
Author: Hakan Demiray
Version: 1.3
Author URI: http://www.dmry.net/
\*/
add\_action('init', 'ncode\_init');
add\_action('admin\_menu', 'ncode\_options\_page');
add\_action('activate\_ncode-image-resizer/ncode-image-resizer.php','ncode\_activate');
add\_action('wp\_head', 'ncode\_wp\_head');
add\_filter('the\_content', 'ncode\_the\_content',100);
function ncode\_init() {
load\_plugin\_textdomain('ncode', 'wp-content/plugins/ncode-image-resizer/languages' );
}
function ncode\_activate() {
add\_option('ncode\_db\_surum', 1);
add\_option('ncode\_secenekler', array('resizemode'=>'enlarge', 'maxwidth'=>400, 'maxheight'=>''));
}
function ncode\_options\_page() {
add\_options\_page(\_\_('nCode Settings','ncode'), \_\_('nCode Settings','ncode'), 'administrator', basename(\_\_FILE\_\_), 'ncode\_options');
}
function ncode\_wp\_head() {
$ncode\_secenekler = get\_option('ncode\_secenekler');
$ncode\_plugin\_url = WP\_CONTENT\_URL.'/plugins/ncode-image-resizer/';
?>
<script type="text/javascript" src="<?php echo $ncode\_plugin\_url; ?>js/ncode\_imageresizer.js?v=1.0.1"></script>
<?php if ($ncode\_secenekler\['resizemode'\]=='tinybox') { ?>
<script type="text/javascript" src="<?php echo $ncode\_plugin\_url; ?>js/tinybox.js?v=1.0"></script>
<?php } ?>
<style type="text/css">table.ncode\_imageresizer\_warning {background: #FFFFE0;color:#333333;border: 1px solid #E6DB55;cursor: pointer;}table.ncode\_imageresizer\_warning td {font-size: 10px;vertical-align: middle;text-decoration: none; text-align:left; font-family:Verdana, Geneva, sans-serif;}table.ncode\_imageresizer\_warning td.td1 {padding: 5px;}table.ncode\_imageresizer\_warning td.td1 {padding: 2px;}
<?php if ($ncode\_secenekler\['resizemode'\]=='tinybox') { ?>
\#tinybox {position:absolute; display:none; padding:10px; background:#fff url(<?php echo $ncode\_plugin\_url; ?>images/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000}#tinymask {position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000; z-index:1500}#tinycontent {background:#fff}
<?php } ?>
</style>
<script type="text/javascript">
NcodeImageResizer.MODE = '<?php echo $ncode\_secenekler\['resizemode'\];?>';
NcodeImageResizer.MAXWIDTH = <?php if($ncode\_secenekler\['maxwidth'\]=='') echo "''"; else echo $ncode\_secenekler\['maxwidth'\];?>;
NcodeImageResizer.MAXHEIGHT = <?php if($ncode\_secenekler\['maxheight'\]=='') echo "''"; else echo $ncode\_secenekler\['maxheight'\];?>;
NcodeImageResizer.BBURL = '<?php echo $ncode\_plugin\_url; ?>images/uyari.gif';
var vbphrase=new Array;
vbphrase\['ncode\_imageresizer\_warning\_small'\] = '<?php \_e('Click this bar to view the full image.', 'ncode'); ?>';
vbphrase\['ncode\_imageresizer\_warning\_filesize'\] = '<?php \_e('اضغط هنا لعرض الصورة بحجمها الطبيعي', 'ncode'); ?>';
vbphrase\['ncode\_imageresizer\_warning\_no\_filesize'\] = '<?php \_e('اضغط هنا لعرض الصورة بحجمها الطبيعي', 'ncode'); ?>';
vbphrase\['ncode\_imageresizer\_warning\_fullsize'\] = '<?php \_e('Click this bar to view the small image.', 'ncode'); ?>';
</script>
<?php
}
function ncode\_durum\_katman($mesaj, $durum) {
if($durum == 'guncellendi') $class = 'updated fade';
elseif($durum == 'hata') $class = 'updated error';
else $class = $type;
echo '<div id="message" class="'.$class.'"><p>' . \_\_($mesaj, 'ncode') . '</p></div>';
}
function ncode\_the\_content($content) {
return preg\_replace("/<img(\[^`|>\]\*)>/im", "<img onload=\\"NcodeImageResizer.createOn(this);\\"$1>", $content);
}
function ncode\_options() {
if ( function\_exists('current\_user\_can') && !current\_user\_can('manage\_options') ) die(\_\_('Cheatin’ uh?', 'ncode'));
if (! user\_can\_access\_admin\_page()) wp\_die( \_\_('You do not have sufficient permissions to access this page','ncode') );
$array\_resizemode = array('none'=>\_\_('Keep original size', 'ncode'), 'enlarge'=>\_\_('Enlarge in same window', 'ncode'), 'samewindow'=>\_\_('Open in same window', 'ncode'), 'newwindow'=>\_\_('Open in new window', 'ncode'), 'tinybox'=>\_\_('Open in modal window', 'ncode'));
if(isset($\_REQUEST\['submit'\]) and $\_REQUEST\['submit'\]) {
$maxwidth = $\_POST\['maxwidth'\];
$maxheight = $\_POST\['maxheight'\];
$resizemode = $\_POST\['resizemode'\];
$varhata=false;
if(!is\_numeric($maxwidth) && !empty($maxwidth)) {
ncode\_durum\_katman('Maximum width must be numeric', 'hata');
$varhata = true;
} else if(!is\_numeric($maxheight) && !empty($maxheight)) {
ncode\_durum\_katman('Maximum height must be numeric', 'hata');
$varhata = true;
}
if($varhata==false) {
$secenekler = compact('maxwidth','maxheight','resizemode');
update\_option('ncode\_secenekler', $secenekler);
ncode\_durum\_katman('Options updated', 'guncellendi');
}
}
$ncode\_secenekler = get\_option('ncode\_secenekler');
?>
<div class="wrap">
<div id="icon-options-general" class="icon32"><br /></div>
<h2><?php \_e('nCode Settings', 'ncode'); ?></h2>
<form action="" method="post">
<table class="form-table">
<tr valign="top">
<th scope="row"><label for="resizemode"><?php \_e('Images in posts', 'ncode'); ?></label></th>
<td>
<select name="resizemode" id="resizemode">
<?php
foreach($array\_resizemode as $\_value=>$\_option) {
echo "<option value='$\_value'". ( ($ncode\_secenekler\['resizemode'\]==$\_value) ? ' selected="selected"' : '' ) .">$\_option</option>";
}
?>
</select>
<span class="description"><?php \_e('This blog automatically resizes images which are too large. Please choose here how you would like to view the enlarged images.', 'ncode'); ?></span></td>
</tr>
<tr valign="top">
<th scope="row"><label for="maxwidth"><?php \_e('Maximum width', 'ncode'); ?></label></th>
<td><input name="maxwidth" type="text" id="maxwidth" value="<?php echo $ncode\_secenekler\['maxwidth'\]; ?>" class="small-text" />
<span class="description"><?php \_e('Images taller than this width will be resized. Enter 0 to allow all widths, or leave the field empty to use the default value.', 'ncode'); ?></span>
</td>
</tr>
<tr valign="top">
<th scope="row"><label for="maxheight"><?php \_e('Maximum height', 'ncode'); ?></label></th>
<td><input name="maxheight" type="text" id="maxheight" value="<?php echo $ncode\_secenekler\['maxheight'\]; ?>" class="small-text" />
<span class="description"><?php \_e('Images taller than this height will be resized. Enter 0 to allow all heights, or leave the field empty to use the default value.', 'ncode'); ?></span></td>
</tr>
</table>
<p class="submit">
<input type="submit" name="submit" class="button-primary" value="<?php \_e('Save Changes', 'ncode'); ?>" />
</p>
</form>
</div>
<?php
}
?>\[/code\]