![]() |
Hiding adsense via styleid
I have an option for forum users to upgrade to "premium."
This will offer the advantage of no ads, which works fine except in custom scripting. I am using this code to hide an ad to those using the "premium" style (Which is available only to premium users). This is how it goes Code:
if($vbulletin->userinfo[styleid] !== "18") HOwever, when an admin on my boards switches to the style (or any other person who has premium capabilities) it still shows the ad. I've tried just about everything. What on earth am I doing wrong???? Thanks in advance, Ryan |
Try != instead of !==
Amy |
Im an idiot, I tried amy's method and it worked.
THANK YOU SO MUCH!!! |
Quote:
|
Better to use usergroups to perform such checks, though you could use the defined constant of "STYLEID" (no $) to determin the styleid being used for the current pageload.
|
All times are GMT. The time now is 11:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|