The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
if i wanted to restrict access to guests what code do i use?
|
#2
|
||||
|
||||
![]() Code:
<if condition="$show['guest']">You're a guest!</if> |
#3
|
|||
|
|||
![]()
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
|
#4
|
||||
|
||||
![]() Code:
<if condition="!$show['guest']">You're not a guest!</if> |
#5
|
||||
|
||||
![]()
..... or more correctly
![]() Code:
<if condition="$show['member']">You're a member, not a guest</if> |
#6
|
|||
|
|||
![]()
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 |
#7
|
|||
|
|||
![]()
You could try opening the page you don't want to see and adding that php wrap around it or denying them access if its a addon/modification under ACP I guess..
|
#8
|
|||
|
|||
![]() Quote:
Code:
<if condition="$show['member']"> Code:
<else /> You must register to use this functions, please <a href="register.php" target="_blank" rel="nofollow">Register</a> for free first!<br /> </if> |
#9
|
||||
|
||||
![]()
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) { print_no_permission(); } |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|