The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Text only viewable by logged in users
I have a forum post that I would like to make for a tournament but in this post I have to give out a password. Now I don't want just anybody browsing the forums to see the password, I want it to be only visible if you are logged into the forums. So if I was NOT logged in and went to this thread it would look something like this:
Blah blah blah blah blah blah password: *you must be logged in* Blah blah blah blah blah blah but if I WAS logged in, it would look like this: Blah blah blah blah blah blah password: super_awesome_password Blah blah blah blah blah blah Is there a mod or something that can give me this or should I start diving into the class_bbcode.php and hope for the best? I have tried making a custom bbcode tag but it won't parse PHP |
#2
|
||||
|
||||
Just editing your template: use this code..
Code:
<if condition="$show['member']"> Password: 123 <else /> You must to be logged in. </if> |
#3
|
||||
|
||||
Yes, but he wants it in a specific thread.
|
#4
|
|||
|
|||
yes exactally. Is there a way to put some template stuff like that in a post if you are a moderator?
--------------- Added at 12:32 --------------- I made this quick hack to use a [usersonly] bb code tag for this. It just goes like this: PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|