![]() |
Controlling a non VB page
Hi!
I currently use this code to prevent non registered users from viewing a page on my web site: PHP Code:
Thanks :banana: |
Compare the usergroupid instead. Also use require instead of include for better security.
|
Quote:
Is the user group .. $bbuserinfo[usergroup] ???? How do you find out these variables, are they listed anywhere? Thanks for letting me know about the require, Ive changed that. |
im actually starting on hack to make pages that are protected in this way :P. Im gonna llow thwm to be added edited and viewed via the admincp and users wil be able to use plain html or php :D
|
$bbuserinfo['usergroupid'] (USE THE QUOTES!).
Code:
mysql> select usergroupid,title from usergroup; |
Nice one guys, got that one sorted.
Last thing :lick: I use.. show_nopermission(); When they are not logged in. Because Im now also checking to see if they have authorised their email address, does vBulletin have a template to says that they need to authorise their email? show_emailauthorise(); or something! Thanks again :bandit: :bandit: |
All times are GMT. The time now is 09:20 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:
|