Author Topic: show the category and subcategories on details.html  (Read 17777 times)

0 Members and 1 Guest are viewing this topic.

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
show the category and subcategories on details.html
« on: May 01, 2006, 08:42:43 PM »
I was looking for a way to show the category and subcategories shown on the homepage on other pages such as details.html and categories.html
I tried a lots with experimenting but hard luck…. :( any way to achieve this?  :|




Offline koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: show the category and subcategories on details.html
« Reply #1 on: May 06, 2006, 06:15:31 AM »
Me too

Offline kleiner_Hobbit

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • Berlin in Bildern
Re: show the category and subcategories on details.html
« Reply #2 on: May 06, 2006, 11:48:42 AM »
I don´t really understand what you are looking for ...

Do you mean something like this: http://www.berlin-in-bildern.de/kategorien.php  :?:

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: show the category and subcategories on details.html
« Reply #3 on: May 06, 2006, 11:54:28 AM »
I don´t really understand what you are looking for ...

Do you mean something like this: http://www.berlin-in-bildern.de/kategorien.php  :?:


yes if it was possible to show this on the details page....

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: show the category and subcategories on details.html
« Reply #4 on: May 06, 2006, 04:50:09 PM »
in details.php below:
Code: [Select]
  "clickstream" => $clickstream,insert:
Code: [Select]
  "categories" => get_categories($cat_id),

Then you can use {categories} tag in details.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 Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: show the category and subcategories on details.html
« Reply #5 on: May 06, 2006, 05:06:34 PM »
in details.php below:
Code: [Select]
  "clickstream" => $clickstream,insert:
Code: [Select]
  "categories" => get_categories($cat_id),

Then you can use {categories} tag in details.html template

 :( not working....

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: show the category and subcategories on details.html
« Reply #6 on: May 06, 2006, 05:19:25 PM »
its working fine on a fresh 4images.
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 koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: show the category and subcategories on details.html
« Reply #7 on: May 06, 2006, 05:38:24 PM »
@Kleiner Hobbit: Ja genau so etwas suche ich, was man dann halt includen kann.

Wärst du so nett, und würdest den Code und Template zur Verfügung stellen?

Vielen Dank, Konradin

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: show the category and subcategories on details.html
« Reply #8 on: May 06, 2006, 05:50:22 PM »
Yes its working on a fresh gallery...

but on my site its not working :( can it be due to other mods? like sitemap? i have the tag {categories_list} in my details.html page..  :?

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: show the category and subcategories on details.html
« Reply #9 on: May 06, 2006, 06:15:50 PM »
as long as your changes in details.php dont alter $cat_id variable, it should work just fine.
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 Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: show the category and subcategories on details.html
« Reply #10 on: May 06, 2006, 06:34:45 PM »
:oops: :oops: :oops: got the problem.. This one only shows sub-category if there is any further below the image that is being viewed...

What I wanted to show actually in the details.html page was, then entire category and sub-category as show in homepage on all detalil.html page... like showing the entire category structure shown in homepage


 :)

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: show the category and subcategories on details.html
« Reply #11 on: May 06, 2006, 07:26:21 PM »
then replace $cat_id with 0 ;)
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 kleiner_Hobbit

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • Berlin in Bildern
Re: show the category and subcategories on details.html
« Reply #12 on: May 06, 2006, 07:31:30 PM »
@Kleiner Hobbit: Ja genau so etwas suche ich, was man dann halt includen kann.

Wärst du so nett, und würdest den Code und Template zur Verfügung stellen?

Vielen Dank, Konradin

Sorry, das komplette Template gebe ich nicht raus ... , das habe ich in stundenlanger Arbeit durch rumprobieren selber erstellt  8)
Viele Grüße

Claudia



« Last Edit: January 13, 2007, 03:37:23 PM by kleiner_Hobbit »

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: show the category and subcategories on details.html
« Reply #13 on: May 06, 2006, 07:41:14 PM »
then replace $cat_id with 0 ;)

WOW! it did the trick.. thank you very much v@no

 :D

Offline koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: show the category and subcategories on details.html
« Reply #14 on: May 07, 2006, 10:58:58 PM »
Hello, is there a possibility to include the category-dropdown-form from another pages? - I mean not from a 4images Page?

Hallo, kann man das Kategorien-Dropdown-Formular auch von anderen nicht zu 4images gehörenden Seiten includen? Würde ich gerne auf meiner generellen Startseite anzeigen lassen...

Vielen Dank, chao Konradin