The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
couple of questions
If I wanted something on my forumhome to only show up for only a certain usergroup or even just a certain user what would the if condition statement look it.
and I was looking at this site here http://forum.bodybuilding.com/ and I like how they had the whole section up on the top that shows that registration is free and what not and I was wondering how to do that. Thanks |
#2
|
||||
|
||||
1) To show something to specific usergroup(s) use the following code:
HTML Code:
<if condition="is_member_of($bbuserinfo, x,y,z)">codes</if> 2) They just have changed the first visit message which is always shown to unregistered users. You can edit it from AdminCP.
Good luck. |
#3
|
|||
|
|||
ok thank you now that code for for a usergroup correct? what if I just wanted just a particular userid?
also at bodybuilder.com if you register for an account on their forum and don't activate it through the e-mail at the very top of the page after you log in it shows you that you have not activated the account and you cannot make post. Is that sometime that is built into vbulletin or is that an extra mod I can download? Thank you |
#4
|
||||
|
||||
If you just want to show for an userid, use that then:
HTML Code:
<if condition="$bbuserinfo['userid'] == 'x'">codes</if> Telling a user that he hasn't activated his account is also done via the first code I have given you or you can use this one. HTML Code:
<if condition="$bbuserinfo['usergroupid'] == '3'">You haven't activated your account.</if> 3 is the default usergroupid of the "Users Awaiting Email Confirmation". |
#5
|
|||
|
|||
ok thank you for all that its all working good. Just one more question. What is the vbulletin code to show a users username. Like I want a message to say Welcome, username. How do I do that?
nevermind I figured it out. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|