• [Template] Wallpaperhall for 4images 2 0 5 1
Currently:  

Author Topic: [Template] Wallpaperhall for 4images  (Read 42060 times)

0 Members and 1 Guest are viewing this topic.

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
[Template] Wallpaperhall for 4images
« 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

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 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

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
« Last Edit: October 23, 2009, 05:47:35 PM by kai »

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.421
    • View Profile
    • 4images - Image Gallery Management System
Re: [Template] Wallpaperhall for 4images
« Reply #1 on: March 18, 2008, 03:25:20 PM »
Any demo or screenshots?
« Last Edit: October 23, 2009, 05:47:22 PM by kai »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #2 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

Offline lona_jasty

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #3 on: March 31, 2008, 08:56:17 PM »
Demo & Download link both are not working!!! :( Please check this

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #4 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.

Offline lona_jasty

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #5 on: April 04, 2008, 12:14:23 PM »
Thanks Yausaf!!!

Offline taka

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #6 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!~


Offline Don4t3llo

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #7 on: August 10, 2008, 06:42:51 AM »

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #8 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.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #9 on: October 28, 2008, 03:51:59 PM »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

SnaFy

  • Guest
Re: [Template] Wallpaperhall for 4images
« Reply #10 on: November 06, 2008, 02:12:37 PM »


I have the same problem, please help

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [Template] Wallpaperhall for 4images
« Reply #11 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...

Offline zhono

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #12 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

What did I miss?

*EDIT*

Nevermind. I deleted the default template and renamed the wallpaperhall template folder to default. Now it works great.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [Template] Wallpaperhall for 4images
« Reply #13 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.


Offline zhono

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: [Template] Wallpaperhall for 4images
« Reply #14 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.