Author Topic: Link to details on imagename / Link zu den Details auch auf Bildname  (Read 6270 times)

0 Members and 1 Guest are viewing this topic.

Offline Nebel

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • http://www.nebelweb.de -free Wallpaper
Hi,

whow can I make the imagename in the categories, index and search pages as a link to the details-Page? Only found this http://www.4homepages.de/forum/index.php?topic=8816.0 . But it doesn't work. The fist Option only in the categories, the second doesn't work at all.
---
Wie kann man den Bildnamen als Link zu der Details-Seite machen? So dass es in den Kategorien, der Index- und der Suchen-Seite funktioniert?
Hab nur das gefunden: http://www.4homepages.de/forum/index.php?topic=8816.0 . Aber das klappt nicht. Die erste Möglichkeit nur in den Kategorien, die Zweite gar nicht.

Gruß
Nebel
Visit my Homepage http://www.nebelweb.de - free Wallpaper and more   ----   http://www.dexpot.de - more Desktops with Dexpot

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: Link to details on imagename / Link zu den Details auch auf Bildname
« Reply #1 on: December 08, 2005, 12:53:53 AM »
took me a minute to figure out what is your question...

It seems 4images does not support this...(me surprised)

But try this:
in includes/functions.php find:
Code: [Select]
"thumbnail" => 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),Insert above:
Code: [Select]
"image_url" => ($show_link) ? $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&mode=".$mode : "")) : "",Then in thumbnail_bit.html template use:
Code: [Select]
{if image_url}<a href="{image_url}">{endif image_url}{image_name}{if image_url}</a>{endif image_url}
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 Nebel

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • http://www.nebelweb.de -free Wallpaper
Re: Link to details on imagename / Link zu den Details auch auf Bildname
« Reply #2 on: December 12, 2005, 08:19:26 PM »
Hi,

took me a minute to figure out what is your question...
:oops:


Quote
It seems 4images does not support this...(me surprised)

But try this:
in includes/functions.php find:
Code: [Select]
"thumbnail" => 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),Insert above:
Code: [Select]
"image_url" => ($show_link) ? $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : "")) : "",Then in thumbnail_bit.html template use:
Code: [Select]
{if image_url}<a href="{image_url}">{endif image_url}{image_name}{if image_url}</a>{endif image_url}

It works fine! That's what I need :D
Thanks a lot!!!
Visit my Homepage http://www.nebelweb.de - free Wallpaper and more   ----   http://www.dexpot.de - more Desktops with Dexpot

Offline popac

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Link to details on imagename / Link zu den Details auch auf Bildname
« Reply #3 on: February 13, 2010, 01:04:09 AM »
Thank you ! Working 1.7.7