okrogius
01-11-2002, 09:54 PM
Currently this is the code I have in my header.php file (non vb file)
if ($banners) {
include("banners.php");
$showbanners = "<a href=\"$nukeurl/banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"1\" alt=\"\"></a>";
}else{
$showbanners = "";
}
I'd like to modify the code in sucha way so if the page is being viewed by a member of user group 5, 6, or 13 then it would set $showbanners equal to show a certain vb template. If it's viewed by ANY other usergroup then keep the $showbanners variable as "<a href=\"$nukeurl/banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"1\" alt=\"\"></a>"
Any help would be greatly appreciated...
if ($banners) {
include("banners.php");
$showbanners = "<a href=\"$nukeurl/banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"1\" alt=\"\"></a>";
}else{
$showbanners = "";
}
I'd like to modify the code in sucha way so if the page is being viewed by a member of user group 5, 6, or 13 then it would set $showbanners equal to show a certain vb template. If it's viewed by ANY other usergroup then keep the $showbanners variable as "<a href=\"$nukeurl/banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"1\" alt=\"\"></a>"
Any help would be greatly appreciated...