4images Forum & Community
4images Modifications / Modifikationen => Templates & Styles (Releases & Support) => Topic started by: yousaf on March 18, 2008, 02:13:08 PM
-
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 template (http://www.wallpaperhall.com/wallpaperhall.zip)
Since 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 (http://www.4homepages.de/forum/index.php?topic=9885.0) orignally posted by Michi-w
jpg 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 (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
-
Any demo or screenshots?
-
yes it is the same template on wallpaperhall.com
so the it can be viewed as a demo
-
Demo & Download link both are not working!!! :( Please check this
-
Demo & Download link both are not working!!! :( Please check this
sorry for the late reply actually my host dont like my site so it is down often, but i have attached the template zip to the first post you can see it in the bottom of my first post.
-
Thanks Yausaf!!!
-
Thanks yousaf for the theme.
Please don't mind i want to ask how could I change the theme setting so that photo taking in portrait (2:3 / 3:4 rather than 3:2 / 4:3) can be show in the thumbnail.
I could only do that if I remove the thumbnail frame setting in the css file.
Please advise~~
Thank so much!~
-
(http://www.stokresimler.com/images/5ss6butyow50estdjkob.jpg)
-
Yousaf dear thanks for sharing nice theme.
Would you plz tell me how to make my site seo friendly as you have make wallpaperhall.com
How to show every category and wallpaper file with its name and put .htm at end ?
How to remove sessions ?
I will be very thankfull if you plz help.
-
hi ashfaq,
he used [MOD] Google Friendly Urls For 4images Best Seo Mod (http://www.4homepages.de/forum/index.php?topic=17598.0).
-
(http://www.stokresimler.com/images/5ss6butyow50estdjkob.jpg)
I have the same problem, please help
-
One possible reason could be your CSS file path is not mentioned properly..
try to add {template_url}/ before your css file path
hope this helps...
-
I uploaded this template to a fresh 4images 1.7.6 install, and made all of the changes to functions.php, and the two files in the default template. But when I apply this template, it looks like this http://animethemes.net (http://animethemes.net)
What did I miss?
*EDIT*
Nevermind. I deleted the default template and renamed the wallpaperhall template folder to default. Now it works great.
-
There was no need to delete the default folder.. You can put different templates and you need to select the proper template in your ACP.
-
It was set properly in the ACP. I had to set it to Default in the ACP, and then name the template Default. If I tried to use the template with any other name, and set it in ACP, it didn't work. None of the images in the template were showing up. Just the text.
-
hum, thanks for this :)
-
HaHA! I have already seen the great thing!!!