MjrGaelic
12-10-2008, 10:13 PM
What I'm trying to do is disable ads sitewide for subscribers (premium members).
I'm able to do this within vBulletin templates and I'm trying to do so for the mainsite as well and am having some challenges. I think it's a matter of syntax which I'm not very good with at all so I'm reaching out for some help =).
In my header file I have:
chdir('./forums');
require_once('./global.php');
chdir('../');
The part that is killing me now is:
<if condition="!$bbuserinfo['field9']">
banner image code
</if>
So that users in my user group don't see the banner code. Now it works in my vBulletin but doesn't in the other files.. I think it has something to do with the way I'm using IF but if someone could suggest or point me in the right direction I'd be elated.
The rest of the code I'm using is located here (http://www.vbulletin.com/forum/archive/index.php/t-101597.html)
Cheers and thanks in advance.
I'm able to do this within vBulletin templates and I'm trying to do so for the mainsite as well and am having some challenges. I think it's a matter of syntax which I'm not very good with at all so I'm reaching out for some help =).
In my header file I have:
chdir('./forums');
require_once('./global.php');
chdir('../');
The part that is killing me now is:
<if condition="!$bbuserinfo['field9']">
banner image code
</if>
So that users in my user group don't see the banner code. Now it works in my vBulletin but doesn't in the other files.. I think it has something to do with the way I'm using IF but if someone could suggest or point me in the right direction I'd be elated.
The rest of the code I'm using is located here (http://www.vbulletin.com/forum/archive/index.php/t-101597.html)
Cheers and thanks in advance.