![]() |
Banners instead of links for several sub-forums...?
My forum-structure looks like that:
Code:
MAINFORUM I want in subforum1 to show up banners instead of links. Exactly... it is a squad-forum for our gaming-clan. Now we want to show up the squad-banners instead of the subforum-names - but only on this subforum. All other subforums should have the normal links... Anyone know how to realize that? |
Where the link is output in the templates, put in a conditional. Here's the pseudocode. Something along these lines. I didn't check what variables you would actually use. You'll have to take a look at these templates:
forumhome_forumbit_level1_nopost forumhome_forumbit_level1_post forumhome_forumbit_level2_nopost forumhome_forumbit_level2_post forumhome_subforumbit_nopost forumhome_subforumbit_post Code:
<a href="forumdisplay.php?f=$foruminfo[forumid]"> |
Thanks so far...
I just want the banners to show up in the forumindex/home, so i edited these templates... forumhome_subforumbit_nopost forumhome_subforumbit_post Changed the forumid to the id of one of the subforums, saved the template and reloaded the forumindex...but there is still the text link - no banner. For me it looks like somehow the if/else condition doesnt work. Added this after the code from forumhome_subforumbit_post to test it out: Code:
<if condition="$foruminfo[forumid] == 17"> So i guess, the <if condition="$foruminfo[forumid] == 17"> somehow isn't working right... Any idea? |
Use $forum[forumid]
Here's your forumhome_subforumbit_post template Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><if condition="in_array($forum[forumid], array(17, 22, 45))"><img src="IMAGE_HERE" alt="" /><else />$forum[title]</if></a> |
Works like a charm...
Thx mate <3 :D |
You're very welcome :)
|
All times are GMT. The time now is 01:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|