PDA

View Full Version : How to...


bosal
01-21-2008, 02:06 PM
Hello,
I want to show only selected usergrups example: usergroup 1 and 2 something in the forumhome template.

How to make the <if contruction ?

Opserty
01-21-2008, 04:07 PM
Been asked many times, use the search feature. Anyway here:

<if condition="is_member_of($vbulletin->userinfo, 1, 2)">
Code to show usergroup 1 and 2
</if>

bosal
01-21-2008, 04:18 PM
Ok, one more thing, how to display forum name, egz. my subforum is called: global and games

I have a global template where i want to display news, with thred name etc... i know all, but don't know how to display subforum name :)

Opserty
01-21-2008, 04:47 PM
The name of your board?

That is $vboptions[bbtitle]

bosal
01-21-2008, 04:54 PM
Nope, the name of sub forum in witch is the thread

Opserty
01-21-2008, 05:03 PM
Hmm try $foruminfo[title]