The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
<vb:if condition= Current user
Is if possible to show content only to the user currently logged in and not everyone.
An example might be the visitor messages, i'd like to add a conditional so that only that user can see the messages and not everyone. Is there such a conditional? - I've googled a fair bit but nothing popping up that i can use. Thanks Ba |
#2
|
|||
|
|||
not sure if i got you right but try
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Hi, thanks for responding.
What i'm actually looking for is the ability to restrict access to the visitors messages to everyone but the current user logged in.. For example, userid 3 has some visitor messages which he can read, if userid 3 goes to userid 4's profile he can post messages but not read any of userid 4's messages. If userid 3 goes to userid 4's profile he cannot see any of userid 4's messages, but userid 4 can read his own messages from his own profile. Does that make sense? |
#4
|
||||
|
||||
Hey clubvr4,
Try this around the visitor messages... Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']"> VISITOR MESSAGE CODE </vb:if> |
Благодарность от: | ||
clubvr4 |
#5
|
||||
|
||||
Perfect, thank you very much!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|