Author Topic: Image details modification (zip.html)  (Read 8565 times)

0 Members and 1 Guest are viewing this topic.

Offline gaurlen

  • Pre-Newbie
  • Posts: 4
    • View Profile
Image details modification (zip.html)
« on: January 17, 2003, 12:55:46 AM »
Hi,

I am trying to modify the zip media file display.

Currently a zip file displays the {media_icon} and I would like for it to display the thumbnail file instead, I have tried replacing the {media_icon} with {thumbnail} and {thumb_image_file} with no joy.

The {thumbnail} change in {template_url}/media/zip.html works but the thumbnail image becomes a random image link.

How can I get zip.html to display a thumbnail only and not become a link?
In short I would like zip.html to have to same outcome as jpg.html but displaying a thumbnail instead of the media icon.

Thanks in advance...

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
Image details modification (zip.html)
« Reply #1 on: January 17, 2003, 02:48:30 AM »
open details.php file and add this:
Code: [Select]

  "thumb" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),

 
after this:
Code: [Select]

  "msg" => $msg,

 

then u can use {thumb} in your zip.html
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)

Offline gaurlen

  • Pre-Newbie
  • Posts: 4
    • View Profile
Image details modification (zip.html)
« Reply #2 on: January 17, 2003, 10:10:35 AM »
Thanks, thats perfect!!

Offline pitbullfriends

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Image details modification (zip.html)
« Reply #3 on: November 15, 2007, 06:25:30 AM »
I think I have followed your directions; however, this fix is not working for me
i have included some snippets of my code
first is my details.php
Code: [Select]
"msg" => $msg,
"thumb" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),
  "clickstream" => $clickstream,
  "lang_category" => $lang['category'],
  "lang_added_by" => $lang['added_by'],
  "lang_description" => $lang['description'],
  "lang_keywords" => $lang['keywords'],

next is my code from my ptf.html file referring to thumb
Code: [Select]
<!-- Template file for PTF Files -->
<img src="{thumb}" border="1" alt="{image_name}"{width_height} /><br />

no joy though, please let me know what i am doing wrong