Author Topic: Is it possible to have 2 different jpg.html files  (Read 3315 times)

0 Members and 1 Guest are viewing this topic.

Offline jamstave

  • Newbie
  • *
  • Posts: 49
    • View Profile
Is it possible to have 2 different jpg.html files
« on: March 07, 2006, 06:13:45 PM »
Hi.. Is it possible to have 2 different jpg.html one is for postcard page and other one is for others pages.

JamStave.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Is it possible to have 2 different jpg.html files
« Reply #1 on: March 08, 2006, 02:02:01 AM »
In postcards.php below <?php insert:
Code: [Select]
define('POSTCARD', 1);then in includes/functions.php find:
Code: [Select]
    $media = $site_template->parse_template("media/".$file_extension);Replace with:
Code: [Select]
    $media = $site_template->parse_template("media/".$file_extension.(defined('POSTCARD') ? 2 : ""));Then create for each media template alternative template for postcard but in the name add 2
like:
jpeg2.html
gif2.html
png2.html
etc
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)