Different "New Thread" graphic for each forum - without creating new templates
In vbulletin 2.2.1, we want different "New Thread" graphics for each forum.
In the template called "forumdisplay_newthreadlink"
The original code shows
<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$foruminfo[forumid]">
<img src="{newthreadimage}" border="0" alt="Post New Thread"></a><br>
-----------------------------------------
How can we change the image tag to be dependent on the $foruminfo[forumid]
The could might be something like:
//------------------------------------------------------------;
switch($foruminfo[forumid])
{
case "84":
<img src="/images/image84.gif" border="0" alt="Post New Thread"></a><br>
break;
//--- break prevents the code from running other cases;
case "5":
<img src="/images/image5.gif" border="0" alt="Post New Thread"></a><br>
break;
case "3":
<img src="/images/image3.gif" border="0" alt="Post New Thread"></a><br>
break;
default:
<img src="{newthreadimage}" border="0" alt="Post New Thread"></a><br>
break;
}//-- end switch;
---------------------------------------------
but this doesn't work as an in-line script. Any ideas of a script that would switch out the button code based on the forum id?
Thanks in advance
|