The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[post_new_thread] conditionals to display different newthread.gif
Does any one know what and where to place conditionals in FORUMDISPLAY to have different newthread.gif showing for different forum ID's? and if it's possible.
Thank You |
#2
|
|||
|
|||
Should be possible. I imagine it would mean copying the button and using conditonals many times in the templates.
Look for this code (there are two instances of this in SHOWTHREAD): Code:
<if condition="$show['newthreadlink']"> <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"> <img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> </a> <else /> </if> And you'll need to replace with this: Code:
<if condition="$show['newthreadlink']"> <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"> <img src="$stylevar[imgdir_button]/ <if condition="$forumid == X">newthreadX.gif</if> <if condition="$forumid == Y">newthreadY.gif</if> <if condition="$forumid == Z">newthreadZ.gif</if> <if condition="$forumid == A">newthreadA.gif</if> <if condition="$forumid == B">newthreadB.gif</if> <if condition="$forumid == C">newthreadC.gif<else /> newthread.gif</if> " alt="$vbphrase[post_new_thread]" border="0" /> </a> <else /> </if> Hope this helps. |
#3
|
|||
|
|||
Thank You so much - I could not figure it out by myself :up:
--------------- Added [DATE]1275749395[/DATE] at [TIME]1275749395[/TIME] --------------- Some images are not displaying - little help? - please my code looks like this: Code:
<td class="smallfont"><if condition="$show['newthreadlink']"> <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"> <img src="$stylevar[imgdir_button]/ <if condition="$forumid == 10">newwish.gif</if> <if condition="$forumid == 11">newwish.gif</if> <if condition="$forumid == 12">newwish.gif</if> <if condition="$forumid == 13">newwish.gif</if> <if condition="$forumid == 21">newwish.gif</if> <if condition="$forumid == 31">newwish.gif</if> <if condition="$forumid == 17">newwish.gif</if> <if condition="$forumid == 20">newwish.gif</if> <if condition="$forumid == 27">newwish.gif</if> <if condition="$forumid == 41">newwish.gif</if> <if condition="$forumid == 42">newwish.gif</if> <if condition="$forumid == 26">newstory.gif</if> <if condition="$forumid == 32">newprayer.gif</if> <if condition="$forumid == 35">newtopic.gif</if> <if condition="$forumid == 30">newleaf.gif</if> <if condition="$forumid == 38">newthankful.gif<else /> newthread.gif</if> " alt="$vbphrase[post_new_thread]" border="0" /> </a> <else /> </if> Any help will be greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|