1. 'Go to includes/functions.php'
Find:
if ($image_info = @getimagesize($src, $info)) {
$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];
Add after:
unset($resized);
if ($width > 620)
{
$new_limit = "624";
$limit_var = "width";
$resized = 1;
}
else
{
$new_limit = $image_info[0];
$limit_var = "width";
$resized = 0;
}
Find:
"&mode=".$mode : ""))."\">".$media_icon."</a>";
}
$width_height = "";
$width = "";
$height = "";
Add after:
$limit_var = "";
$new_limit = "";
Find:
$site_template->register_vars(array(
"media_src" => $media_src,
"media_icon" => $media_icon,
"image_name" => $image_name,
"width_height" => $width_height,
"width" => $width,
"height" => $height,
Add after:
"new_limit" => $new_limit,
"resized" => $resized,
"limit_var" => $limit_var,
2. Go to 'templates\default\details.html'
Find:
{image}
Add 'before':
{if resized} The image has been resized automatically.
Download it for seeing it in its original size ({width} x {height} pixels).
{endif resized}
Find:
{image}
Change it with:
<a href="{media_src}" target="_blank">{image}</a>
3. Go to 'templates\default\media\jpg.html':
Find:
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
Change it with:
<img src="{media_src}" border="0" alt="{image_name}" {limit_var}="{new_limit}" />
And that's all!! Razz
Valla türkçeye çevirmeye gerek yok sanırım.Hepsi apaiçık ortada.
ben kendi sitemde yaptım çalışıyor.
www.fotografarsivi.com