PDA

View Full Version : Using VB system with PHP


evolvexmb
07-05-2011, 10:16 PM
Hey everyone, sorry if this has been asked before, but I'd like to know a bit more about using VB's user system and user levels with a custom PHP CMS? This will be used to manage content in a custom content management system integrated with VB, could anyone point me towards any relevant resources?

Thank you!

dartho
07-06-2011, 11:08 PM
Something like:

<?php
require_once('./global.php');
if ($vbulletin->userinfo['userid']==1) {
echo "User 1 - probably Administrator";
}
elseif (is_member_of($vbulletin->userinfo, '2')) { //Registered Users
echo "Group 2 - Registered Users";
}
elseif ($vbulletin->userinfo['userid']==0) { //Guests
echo "User 0 - Guest User";
}
else {
echo "Who are you?";
}
?>