Quote:
Originally Posted by switch
Not sure if this is were it would go, but I will ask anyways. I have a few scripts that I want to use and would like them to use vbulletin users permissions. Basically have a download script and a few other things, but would like to be able to have them go by the user and level permissions. Hope this is explained right, what would be the best way to do this. Or is there a post already about this that explains it. Have not found anything yet.
Thanks in advance.
switch
|
Use things like
PHP Code:
if ($bbuserinfo['usergroupid']==XX)
{
// DOWNLOAD SCRIPT GOES HERE, ALLOW USER TO DOWNLOAD STUFF BECAUSE HIS USERGROUP IS CORRECT
}
else
{
show_nopermission();
}
Of course, you have to
PHP Code:
<?php
require("./global.php");
?>
the vB2 global.php file first