PDA

View Full Version : How would I add text only to a specfic forum?


powerful_rogue
04-02-2009, 07:16 PM
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!

Lynne
04-02-2009, 07:36 PM
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:
<if condition="$forumid == 'x'">
text to add for forumid x
</if>

nexialys
04-02-2009, 07:45 PM
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...

powerful_rogue
04-02-2009, 08:27 PM
Thanks everyone.

I think i'll go along the lines of using notices, I completely forgot about that feature!