![]() |
Secure non-vbpages
How can I secure non-vbpages from visitors and can only be seen by my members??
I thought that I have seen it somewhere but can find it. Please help me on this. |
Check WebTemplates Hack..
|
xug...
If you are using .php files and templates, just insert this : (Thanks to Xenon for pointing out my mistake;)) PHP Code:
PHP Code:
|
PHP Code:
i think satan meant this code: PHP Code:
|
Yep...
Lol... Thanks Xenon...:) Satan |
Thank you all guys, I needed that for php pages I already have up and running.
Logician, your hack is looking cool, I have downloaded it and when my members give me a break I will install it. |
Remember that Banned by Administrators is a usergroup too ;)
|
Quote:
So how will the code be with that group too??? |
To ban that group?
PHP Code:
Satan |
*ggg*
satan same fault again: PHP Code:
|
Are you sure Xenon?
I thought it was "!=" for usergroups and "==" for userids... :confused: Satan |
yes i am sure
it alwasy depends on what you want to do. if you want to deny access it to one user you must use this if ($bbuserinfo[userid]==X) { show_nopermission(); } if you want it to deny it to a whole group use this: if ($bbuserinfo[usergroupid]==X) { show_nopermission(); } if you want to allow it just one user you have to use this: if ($bbuserinfo[userid]!=X) { show_nopermission(); } and if you want to allow it to only one usergroup: if ($bbuserinfo[usergroupid]!=X) { show_nopermission(); } |
Ah right...
Cos ive always used "!=" when doing usergroups, and it works just fine:) Satan |
lool, then i think you have had very much luck :)
|
Probably yes:)
Use Xenon's code...He seems to think it is safer;) Satan |
"Use Xenon's code...He seems to think it is safer"
this is always a good suggestion ;) Don't care, nobody's perfect ;) |
Well...
Anybody who knows me knows I like to live life on the edge;):D Satan |
Quote:
== means if equal to :glasses: |
Aha...
My board musta been screwed up then... Satan |
Thank you so much guys, I really do appriciate your kind help !!
|
Lol...
Glad we could help lol... Satan |
All times are GMT. The time now is 07:25 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:
|