• [Mod] Different cat templates / Verschiedene Kategorie Templates 4 0 5 1
Currently:  

Author Topic: [Mod] Different cat templates / Verschiedene Kategorie Templates  (Read 124621 times)

0 Members and 1 Guest are viewing this topic.

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: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #45 on: May 07, 2005, 07:47:05 AM »
"recent comments" code is in Details.php - but shouldn't "unset($cat_id);" work to turn it off, if I place this snippet before it arrives at the category selection piece of code?  (tried - didn't work, either... but maybe I'm not placing it in the right place. I placed it just above "// Print Out"  section....)
actualy unset() will destroy the variable, but we need it!


:arrow: should I post my details.php here?
before u do that replace
Code: [Select]
$main_template = get_cat_template($main_template, $cat_id);with
Code: [Select]
$main_template = get_cat_template($main_template, $image_row['cat_id']);
If that wont help, then attach your details.php to your reply (dont post the code, please)
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 graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #46 on: May 07, 2005, 02:44:33 PM »
no luck  :(

details.php attached...

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #47 on: May 08, 2005, 03:41:41 AM »
OK - let's actually attach the file, then....  :oops:

attached as a .txt file........

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: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #48 on: May 08, 2005, 03:47:32 AM »
as I expected, u had $cat_id overwritten by some other code.

attached the corrected version.
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 graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #49 on: May 08, 2005, 03:07:36 PM »
thank you - - but still no joy....   :(

it's still grabbing the "red bar" template for every details page.

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #50 on: May 08, 2005, 03:30:12 PM »
Hey!

I undid this step from above -
Code: [Select]
Code:
$main_template = get_cat_template($main_template, $cat_id);with
Code:
$main_template = get_cat_template($main_template, $image_row['cat_id']);


and it's all happy!   :D

Thanks!

(Ok - next project - hide user names for the red challenge categories when a challenge thumbnail shows up in random images, new images, on my main site, etc.... - - )

Offline TXtaholic

  • Jr. Member
  • **
  • Posts: 67
  • life is ours we live it our way!
    • View Profile
    • i MMS u
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #51 on: May 09, 2005, 04:33:21 PM »
This mod allows you to use different category templates. Templates will be inherited on subcategories.
----


that's great but how can i make it work with language select??  that is when a user chooses any other available language he'll get a different template!
p.s: hope that  i'm asking in the right thread coz i've asked in Language Select Mod thread but my question got ditched :(

Offline DigitalOldschool

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #52 on: May 26, 2005, 01:53:57 AM »
Any way to modify this so that the sub-categories won't inherit the redesigned template?
Other than creating a new HTML for each separate category?

Thanks.

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: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #53 on: May 26, 2005, 02:05:16 AM »
in includes/functions.php find:
Code: [Select]
   $new_tpl_name = get_cat_template($tpl_name, $cat_cache[$cat_id]['cat_parent_id']);
replace it with:
Code: [Select]
   $new_tpl_name = $tpl_name;
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 DigitalOldschool

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #54 on: May 26, 2005, 08:50:03 PM »
Thanks V@no, works great!

Offline sylvia19

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #55 on: June 26, 2005, 09:37:18 AM »
Hallo hätte da mal ne Frage, und zwar ich habe das Aussehen meiner Galerie verändert, läuft auch alles prima, nur wenn man auf die unterkategorien klickt,sind diese Seiten rechts daneben, wie kommt das und wie kann ich das ändern.
ich füge mal den link zum Nachschauen mit rein
http://galerie.sylvia-s.de

LG Sylvia

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #56 on: October 28, 2005, 06:10:26 AM »
Code: [Select]
$main_template = get_cat_template($main_template, $cat_id);


so for details will be :

1) $main_template = get_details_template($main_template, $cat_id);

or

2) $main_template = details_template($main_template, $cat_id);


 :?:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #57 on: October 28, 2005, 12:28:49 PM »
No, its the same:

Code: [Select]
$main_template = get_cat_template($main_template, $cat_id);
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #58 on: December 03, 2005, 11:21:26 PM »
this is possible for member_profile(s) ???, make each member make your own profile(page) style ?

not only a content , but whole page (without affect others member.php pages (editprofile,upload...) ) !?

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: [Mod] Different cat templates / Verschiedene Kategorie Templates
« Reply #59 on: December 03, 2005, 11:37:54 PM »
Why not just create many templates and let members chose which one they like to use when they visit? ;) (there is a mod for that)
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)