![]() |
whats the code to not let guests view certain things
if i wanted to restrict access to guests what code do i use?
|
Code:
<if condition="$show['guest']">You're a guest!</if> |
i meant if i didnt want them to see...i wrapped it around a link in the navbar and it shows for guests only, i didnt want it to show for guests
|
Code:
<if condition="!$show['guest']">You're not a guest!</if> |
..... or more correctly ;)
Code:
<if condition="$show['member']">You're a member, not a guest</if> |
thanks guys.
one another question, can i just show the link but do not give them access to it. and have the login page come up? what code must i use, i'm using hacks like vbradio with there is no permission settings. thanks in advanced |
Quote:
|
Quote:
Code:
<if condition="$show['member']"> Code:
<else /> |
It'd be better if you just used a Permissions error via a file edit. Stick this near the top of the file, on it's own line.
Code:
if ($vbulletin->userinfo['userid'] == 0) |
All times are GMT. The time now is 10:40 AM. |
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:
|