Author Topic: image_name as link  (Read 5882 times)

0 Members and 1 Guest are viewing this topic.

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
image_name as link
« on: April 08, 2005, 08:20:20 PM »
How can I make a link of the image_name (like the link in the thumbnail)?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: image_name as link
« Reply #1 on: April 08, 2005, 08:52:00 PM »
hi ruudvroon

find in functions.php :
Code: [Select]
$site_template->register_vars(array(
    "image_id" => $image_row['image_id'],
add after :
Code: [Select]
"image_url" => $site_sess->url(ROOT_PATH."details.php?"."image_id=".$image_row['image_id']),
now you can use in templates (e.g.  thumbnail_bit.html , ... ) :
Code: [Select]
<a href="{image_url}">{image_name}</a>
for image_name as a link ... (like the link in the thumbnail) ... :wink:

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

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
Re: image_name as link
« Reply #2 on: April 08, 2005, 09:15:07 PM »
it works :D, thanks

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: image_name as link
« Reply #3 on: April 08, 2005, 09:21:06 PM »
of course it works ... also on my page ...  :wink:
mawenzi
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 ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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: image_name as link
« Reply #4 on: April 09, 2005, 12:35:34 AM »
u could probably use {self} tag too...or not...:lol:
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: image_name as link
« Reply #5 on: April 09, 2005, 05:25:29 PM »
I tested the {self} tag ... but it does not work ...  :? ... it is a defined tag  :?:
mawenzi
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 ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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: image_name as link
« Reply #6 on: April 09, 2005, 07:43:40 PM »
yes, its being registered in includes/page_header.php
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)