The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
as I am new to php-programming - can anyone describe how to do so ?
|
#4
|
||||
|
||||
I believe you want this
Code:
require "global.php"; if ($bbuserinfo[userid] == 0) show_nopermission(); Amy |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
I believe the rest of it needs to be in an else clause.
Amy |
#7
|
|||
|
|||
... ok thanks. It was my fault - I disabled the cookies.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|