Log in

View Full Version : Usergroup Conditions on External Pages


Bradley_Wint
11-10-2008, 04:14 AM
Ok, so I am thinking of making a premium members group, with the feature of no adverts while browsing. However I want to extend the feature to my non-vb pages.

Is there a way (condition) to allow for ads (ad code) to be hidden if a user of a certain group is logged on on external pages? I already have a login script that uses this header include to manage login and logouts.
<?php
$curdir = getcwd ();
chdir('/mysite/board');
require_once('/mysite/board/global.php');
chdir ($curdir);
?>

and then the relevant log in box code between the BODY tags

Dismounted
11-10-2008, 05:12 AM
If you already have that block of code, you have access to the majority of vBulletin functions that you need, like is_member_of().

Bradley_Wint
11-10-2008, 05:57 AM
Nice, it works. Thanks man.