4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Eagle Eye on May 01, 2006, 08:42:43 PM

Title: show the category and subcategories on details.html
Post by: Eagle Eye 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?  :|



Title: Re: show the category and subcategories on details.html
Post by: koikonut on May 06, 2006, 06:15:31 AM
Me too
Title: Re: show the category and subcategories on details.html
Post by: kleiner_Hobbit 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  :?:
Title: Re: show the category and subcategories on details.html
Post by: Eagle Eye 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....
Title: Re: show the category and subcategories on details.html
Post by: V@no 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
Title: Re: show the category and subcategories on details.html
Post by: Eagle Eye 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....
Title: Re: show the category and subcategories on details.html
Post by: V@no on May 06, 2006, 05:19:25 PM
its working fine on a fresh 4images.
Title: Re: show the category and subcategories on details.html
Post by: koikonut 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
Title: Re: show the category and subcategories on details.html
Post by: Eagle Eye 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..  :?
Title: Re: show the category and subcategories on details.html
Post by: V@no 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.
Title: Re: show the category and subcategories on details.html
Post by: Eagle Eye 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


 :)
Title: Re: show the category and subcategories on details.html
Post by: V@no on May 06, 2006, 07:26:21 PM
then replace $cat_id with 0 ;)
Title: Re: show the category and subcategories on details.html
Post by: kleiner_Hobbit 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



Title: Re: show the category and subcategories on details.html
Post by: Eagle Eye 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
Title: Re: show the category and subcategories on details.html
Post by: koikonut 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
Title: Re: show the category and subcategories on details.html
Post by: V@no on May 07, 2006, 11:10:41 PM
you can include dropdown from any other pages...what is your question?
Title: Re: show the category and subcategories on details.html
Post by: koikonut on May 08, 2006, 01:27:55 AM
you can include dropdown from any other pages...what is your question?

how?

(include("/4images/dropdownform.php"))...?
Title: Re: show the category and subcategories on details.html
Post by: egyptsons on March 12, 2007, 02:04:45 PM
hello it's worked for me fine  8)