I am releasing my first template for 4images, i tested it and it is working on 4images 1.7.6, click the link below to download it
plz give comments if you think something is missing(there must be lots of things missing coz i am not a good in html or php, if you find any let me know wht to include n wht to exclude)
Download link for templateSince the side bar is on right side of this template so you must make some changes, otherwise you will face problem with images on details.php
you have to do a few changes on
details.html, jpg.html and
funcion.php to view an image properly on details.htm
Changes you have to make are taken from
this post orignally posted by
Michi-wjpg image size limit
This mod will change the size of image on detail.html and by clicking the resized picture it will open in a new window with full image preview.
Demo: http://www.wallpaperhall.com
includes/functions.php
find:
if ($image_info = @getimagesize($src, $info)) {
$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];
after add :
if (($width > $height) && ($width > 550)){
$new_limit = "550";
$limit_var = "width";
}elseif (($width < $height) && ($height > 550)){
$new_limit = "550";
$limit_var = "height";
}else {
$new_limit = $image_info[0];
$limit_var = "width";
}
find:
"&mode=".$mode : ""))."\">".$media_icon."</a>";
}
$width_height = "";
$width = "";
$height = "";
after add :
$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,
after add :
"new_limit" => $new_limit,
"limit_var" => $limit_var,
templates\default\details.html
(Should the extension be built, the details.html not change)
search:
{image}
Replace with:
<a href="{media_src}" target="_blank">{image}</a>
templates\default\media\jpg.html
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
Replace with:
<img src="{media_src}" border="0" alt="{image_name}" {limit_var}="{new_limit}" />
Changes in size in the functions.php made by the change in the figures..
if (($width > $height) && ($width > 550)){
$new_limit = "550";
$limit_var = "width";
}elseif (($width < $height) && ($height > 550)){
$new_limit = "550";
Good luck with your new template