![]() |
<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 |
not sure if i got you right but try
PHP Code:
PHP Code:
|
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? :D |
Hey clubvr4,
Try this around the visitor messages... Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']"> |
Perfect, thank you very much!
|
All times are GMT. The time now is 07:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|