4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2018, 04:28:06 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Templates & Styles (Releases & Support) (Moderator: Rembrandt)
| | |-+  [Template] Wallpaperhall for 4images
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 » »» Print
Current Topic Rating: **
Author Topic: [Template] Wallpaperhall for 4images  (Read 33354 times)
yousaf
Jr. Member
**
Offline Offline

Posts: 59

Thank You
-Given: 8
-Receive: 0


View Profile
« 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  [Expand]
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:
1
2
3
4
if ($image_info = @getimagesize($src, $info)) {
      $width_height = " ".$image_info[3];
      $width = $image_info[0];
      $height = $image_info[1];

after add :
1
2
3
4
5
6
7
8
9
10
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:
1
2
3
4
5
"&amp;mode=".$mode : ""))."\">".$media_icon."</a>";
    }
    $width_height = "";
    $width = "";
    $height = "";

after add :
1
2
3

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

find:
1
2
3
4
5
6
7
     $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 :
1
2
     "new_limit" => $new_limit,
      "limit_var" => $limit_var,


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

search:

Replace with:
1
<a href="{media_src}" target="_blank">{image}</a>

templates\default\media\jpg.html

1
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />

Replace with:
1
<img src="{media_src}" border="0" alt="{image_name}" {limit_var}="{new_limit}" />


Quote  [Expand]
Changes in size in the functions.php made by the change in the figures..
Quote  [Expand]
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

* wallpaperhall.zip (328.41 KB - downloaded 262 times.)
« Last Edit: October 23, 2009, 05:47:35 PM by kai » Logged
kai
Administrator
Addicted member
*****
Offline Offline

Posts: 1405

Thank You
-Given: 66
-Receive: 199


View Profile WWW
« 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 » Logged


Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search
yousaf
Jr. Member
**
Offline Offline

Posts: 59

Thank You
-Given: 8
-Receive: 0


View Profile
« 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
Logged
lona_jasty
Newbie
*
Offline Offline

Posts: 44

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #3 on: March 31, 2008, 08:56:17 PM »

Demo & Download link both are not working!!! Sad Please check this
Logged
yousaf
Jr. Member
**
Offline Offline

Posts: 59

Thank You
-Given: 8
-Receive: 0


View Profile
« Reply #4 on: April 04, 2008, 11:25:10 AM »

Demo & Download link both are not working!!! Sad 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.
Logged
lona_jasty
Newbie
*
Offline Offline

Posts: 44

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: April 04, 2008, 12:14:23 PM »

Thanks Yausaf!!!
Logged
taka
Pre-Newbie

Offline Offline

Posts: 1

Thank You
-Given: 0
-Receive: 0


View Profile
« 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!~

Logged
Don4t3llo
Pre-Newbie

Offline Offline

Posts: 9

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #7 on: August 10, 2008, 06:42:51 AM »

Logged
ashfaq
Full Member
***
Offline Offline

Posts: 128

Thank You
-Given: 1
-Receive: 0


View Profile
« 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.
Logged
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 57


View Profile
« Reply #9 on: October 28, 2008, 03:51:59 PM »

hi ashfaq,

he used [MOD] Google Friendly Urls For 4images Best Seo Mod.
Logged

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
Full Member
***
Offline Offline

Posts: 130

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #10 on: November 06, 2008, 02:12:37 PM »



I have the same problem, please help
Logged

I love 4imagezZzZz7
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« 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...
Logged

zhono
Jr. Member
**
Offline Offline

Posts: 52

Thank You
-Given: 3
-Receive: 9


View Profile
« 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.
Logged
batu544
Sr. Member
****
Offline Offline

Posts: 336

Thank You
-Given: 2
-Receive: 29


View Profile WWW
« 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.

Logged

zhono
Jr. Member
**
Offline Offline

Posts: 52

Thank You
-Given: 3
-Receive: 9


View Profile
« 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.
Logged
Pages: [1] 2 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.064 seconds with 19 queries.
Post your comments here