The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What conditional?
What conditional do I put for a user not being able to see a link if its something to do with their user account?
I mean, I have iTrader installed and a user can not submit feedback for their own account. I have made a link for all users to leave feedback for everyone, but I don't want them to see the link under their own username. How do I stop them seeing links like this? |
#2
|
|||
|
|||
If you do not want to display to that particular userid,it should be
Code:
<if condition="$bbuserinfo['userid'] != XXX"></if> |
#3
|
|||
|
|||
That doesn't really make any sense, because:
PHP Code:
But I would want it to show for all users, so it hides it. So, User 31 can't see their own 1 but can see others. User 32 can't see their own 1 but can see others. Etc.. |
#4
|
|||
|
|||
Have you tried it?
|
#5
|
|||
|
|||
No, but I'm presuming that XXX would be 1 (for my user)
But I don't see how that would affect other users (that aren't user ID 1) |
#6
|
|||
|
|||
$bbuserinfo['userid'] is the userid of the person current browsing the site. You need to find another variable to compare this this two. (You may find a clue by looking at the template/phrase used to generate the link). Since this is custom script you'll have to find that variable yourself, I'll call it $yourvar for now.
Then in your template you would have: Code:
<if condition="$bbuserinfo['userid'] != $yourvar['userid']"> DISPLAY LINK </if> |
#7
|
||||
|
||||
does anyone know the conditional info for timezones?
Code:
<if condition="$bbuserinfo['timezone'] != -0700"></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|