![]() |
Hi !
I dont know if there is a hack already or this is a feature of the vbulletin system : We are running a coin-database system also for guests. The server load is getting higher an higher. Is there a possibility that I limit the access of a PHP or HTML - page only to registered VBulletin users ? Thanks in advance and greetings from germany, Tobias Honscha |
Yes. You can include global.php and then check their userid. If they are not logged in, you could redirect them to the standard no permission template.
Amy |
as I am new to php-programming - can anyone describe how to do so ?
|
I believe you want this
Code:
require "global.php"; Amy |
Thank you very much - I think this is the code I need.
Although I inserted your PHP-code users can access the file without loggin in . What am I doing wrong ? This is the script I am currently using : <?php error_reporting(7); require("./global.php"); if ($bbuserinfo[userid] == 0) { show_nopermission();} ?> .. and here comes the html - code which has to be hidden for unregistered users. |
I believe the rest of it needs to be in an else clause.
Amy |
... ok thanks. It was my fault - I disabled the cookies.
|
All times are GMT. The time now is 05:48 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:
|