The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to make a non-vb page not accessible to cetrain usergroups?
So far, my gallery is for registered members only, which works with this simple code:
Code:
<?php require("global.php"); // unregistered error message if ($bbuserinfo[userid]==0) { eval("standarderror(\"".gettemplate("galleryerror")."\");"); } ?> Also, is possible I could use another method: my gallery currently has only 130 images (but most of my site's hits go there), so I would like the first 1-25 images accessible for all registered users who have activated their account, then 26-50 for users with >X posts, then 51-75 with >XX and so on. Would this be possible or it would depend on my gallery script? If this is too much to ask for, I'd be satisfied with the first request |
#2
|
||||
|
||||
Code:
if ($bbuserinfo['userid'] == 0 or $bbuserinfo['userid'] ==3) { |
#3
|
||||
|
||||
Should have figured out that myself, thanks :P
Going to try that out after I clean my PC from viruses |
#4
|
||||
|
||||
it's $bbuserinfo['usergroupid'] and not $bbuserinfo['userid']
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|