4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Releases & Support) => Topic started by: yousaf on March 18, 2008, 02:13:08 PM

Title: [Template] Wallpaperhall for 4images
Post 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


Quote
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:
Code: [Select]
if ($image_info = @getimagesize($src, $info)) {
      $width_height = " ".$image_info[3];
      $width = $image_info[0];
      $height = $image_info[1];

after add :
Code: [Select]
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:
Code: [Select]
"&amp;mode=".$mode : ""))."\">".$media_icon."</a>";
    }
    $width_height = "";
    $width = "";
    $height = "";

after add :
Code: [Select]

    $limit_var = "";
    $new_limit = "";

find:
Code: [Select]
     $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 :
Code: [Select]
     "new_limit" => $new_limit,
      "limit_var" => $limit_var,


templates\default\details.html
(Should the extension be built, the details.html not change)

search:
Code: [Select]
{image}
Replace with:
Code: [Select]
<a href="{media_src}" target="_blank">{image}</a>
templates\default\media\jpg.html

Code: [Select]
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
Replace with:
Code: [Select]
<img src="{media_src}" border="0" alt="{image_name}" {limit_var}="{new_limit}" />


Quote
Changes in size in the functions.php made by the change in the figures..
Quote
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
Title: Re: [Template] Wallpaperhall for 4images
Post by: kai on March 18, 2008, 03:25:20 PM
Any demo or screenshots?
Title: Re: [Template] Wallpaperhall for 4images
Post by: yousaf on March 18, 2008, 04:49:46 PM
yes it is the same template on wallpaperhall.com
so the it can be viewed as a demo
Title: Re: [Template] Wallpaperhall for 4images
Post by: lona_jasty on March 31, 2008, 08:56:17 PM
Demo & Download link both are not working!!! :( Please check this
Title: Re: [Template] Wallpaperhall for 4images
Post by: yousaf on April 04, 2008, 11:25:10 AM
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.
Title: Re: [Template] Wallpaperhall for 4images
Post by: lona_jasty on April 04, 2008, 12:14:23 PM
Thanks Yausaf!!!
Title: Re: [Template] Wallpaperhall for 4images
Post by: taka on May 23, 2008, 07:11:58 AM
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!~

Title: Re: [Template] Wallpaperhall for 4images
Post by: Don4t3llo on August 10, 2008, 06:42:51 AM
(http://www.stokresimler.com/images/5ss6butyow50estdjkob.jpg)
Title: Re: [Template] Wallpaperhall for 4images
Post by: ashfaq on October 28, 2008, 03:38:18 PM
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.
Title: Re: [Template] Wallpaperhall for 4images
Post by: Nicky on October 28, 2008, 03:51:59 PM
hi ashfaq,

he used [MOD] Google Friendly Urls For 4images Best Seo Mod (http://www.4homepages.de/forum/index.php?topic=17598.0).
Title: Re: [Template] Wallpaperhall for 4images
Post by: SnaFy on November 06, 2008, 02:12:37 PM
(http://www.stokresimler.com/images/5ss6butyow50estdjkob.jpg)

I have the same problem, please help
Title: Re: [Template] Wallpaperhall for 4images
Post by: batu544 on November 06, 2008, 08:40:55 PM
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...
Title: Re: [Template] Wallpaperhall for 4images
Post by: zhono on December 31, 2008, 07:11:26 AM
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.
Title: Re: [Template] Wallpaperhall for 4images
Post by: batu544 on December 31, 2008, 10:47:40 AM
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.

Title: Re: [Template] Wallpaperhall for 4images
Post by: zhono on December 31, 2008, 04:07:43 PM
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.
Title: Re: [Template] Wallpaperhall for 4images
Post by: blastarhymes on October 22, 2009, 01:51:57 PM
hum, thanks for this :)
Title: Re: [Template] Wallpaperhall for 4images
Post by: boxaccounts on January 24, 2010, 07:44:37 AM
HaHA! I have already seen the great thing!!!