Author Topic: Text Clickable  (Read 7786 times)

0 Members and 1 Guest are viewing this topic.

Offline widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Text Clickable
« on: June 01, 2003, 12:05:17 AM »
Hi all

Is there any way in the categories section not to show the thumbnails just the image name and let them be clickable ?

Thanks

Steve

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
Text Clickable
« Reply #1 on: June 01, 2003, 01:00:02 AM »
in categories.php change:
$templates_used = 'categories,category_bit,thumbnail_bit2';
then, create template thumbnail_bit2
customize it the way u like.
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 widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Text Clickable
« Reply #2 on: June 01, 2003, 10:20:45 AM »
Thanks

Whats the code to make a list of thumnails in text format and have then clickable into the details page ?

Thanks

Steve

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
Text Clickable
« Reply #3 on: June 01, 2003, 04:04:06 PM »
it's all up to u, your taste ;)
then, find
Code: [Select]
"image_id" => $image_row['image_id'], in /includes/functions.php and add after:
Code: [Select]
"image_details_url" => $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&mode=".$mode : "")),
then u can use {image_details_url} as adress for details.php for curent image.
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 widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Text Clickable
« Reply #4 on: June 02, 2003, 10:01:26 AM »
Hi

I tried that and it dosn't seem to work. I now get:

./details.php?image_id=2

where the list should be

thanks

Steve

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
Text Clickable
« Reply #5 on: June 02, 2003, 12:51:07 PM »
Quote from: widgit1981
Hi

I tried that and it dosn't seem to work. I now get:

./details.php?image_id=2

where the list should be

thanks

Steve

ofcourse, that will give the address to the image details, and u need make a link ;)
Code: [Select]
<a href="{image_details_url}">blah blah</a>
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 widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Text Clickable
« Reply #6 on: June 02, 2003, 02:18:42 PM »
Thanks V@no

I tried using "<a href="{image_details_url}">{image_name}</a></td>" but its only showing the one result from the list in that category how do the others go in ?

Thanks Steve

Offline widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Text Clickable
« Reply #7 on: June 02, 2003, 08:29:32 PM »
*bump*