Author Topic: Parent categories in thumbnails  (Read 4384 times)

0 Members and 1 Guest are viewing this topic.

Offline cpuswe

  • Newbie
  • *
  • Posts: 47
    • View Profile
Parent categories in thumbnails
« on: February 28, 2006, 09:32:48 PM »
Hi!

Im a beginner at 4images but have managed to get a site running and done some minor modifications without much knowledge to php and html.

One thing i dont get to work is how to display the parent category in thumbnails.

Se my attached images, how can i get the all parent categories in the top frame to show in thumbnails?

Thanks!

/Thomas
http://www.cpuphotolibrary.com

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: Parent categories in thumbnails
« Reply #1 on: March 01, 2006, 12:43:12 AM »
In includes/functions.php find:
Code: [Select]
    "cat_name" => $image_row['cat_name'],Insert below:
Code: [Select]
    "cat_full" => get_category_path($image_row['cat_id']),
After that you can use {cat_full} tag in thumbnail_bit.html template.
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 cpuswe

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Parent categories in thumbnails
« Reply #2 on: March 01, 2006, 08:53:26 PM »
Thanks for the speedy reply! It works!

...one minor thing if you have the time, the last subcategory is not linked, is that doable?

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: Parent categories in thumbnails
« Reply #3 on: March 02, 2006, 01:40:22 PM »
And if you use this instead?
Code: [Select]
    "cat_full" => get_category_path($image_row['cat_id'], 1),
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 cpuswe

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Parent categories in thumbnails
« Reply #4 on: March 02, 2006, 07:24:26 PM »
Like a glove!

Thanks V@no!

(Going down to the bookshop. Have to learn to do this myself.)

/Thomas