The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How would I add text only to a specfic forum?
Hi,
Ive added a screenshot to try and make me explain it a little bit easier! If I wanted to add a piece of text where the arrow is, but for it only to show in this specific forum, does anyone know how I would go about that? I know it would involve some kind of condition, but im not sure what I would need. Many Thanks Dave PS - If anyone knows of a mod already out there that does this that would be great! |
#2
|
||||
|
||||
First you find the template you need to add the text to. to do that - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Then add a condition in the template: HTML Code:
<if condition="$forumid == 'x'"> text to add for forumid x </if> |
#3
|
|||
|
|||
a Notice with the settings to show it in only that specific forum, would do the trick?
you can always change the Notices block style, which is horrible actually... |
#4
|
|||
|
|||
Thanks everyone.
I think i'll go along the lines of using notices, I completely forgot about that feature! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|