MyBB Hacks

Full Version: Hide advertising
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How i can hide adverstising for VIP group??


ID for vip group is 14

And this is all code for my advt:

PHP Code:
<script>


                    var adfly_id = 1187754;

                    var adfly_advert = 'int';

                    var frequency_cap = 5;

                    var frequency_delay = 5;

					var init_delay = 3;

                    </script>

                    <script src="http://adf.ly/js/entry.js"></script>                  
                    
<script>

                    var adfly_id = 1187754;

                    var adfly_advert = 'int';

                    var exclude_domains = ['mybb.com',];

                    </script>

                    <script src="http://adf.ly/js/link-converter.js"></script>

 
 
<script type="text/javascript">
//interstitial ad
clicksor_enable_inter = true; clicksor_maxad = -1;	 
clicksor_hourcap = -1; clicksor_showcap = 2;
clicksor_enable_adhere = false;
//default pop-under house ad url
clicksor_enable_pop = false; clicksor_frequencyCap = -1;
durl = 'http://solulz.com';//default banner house ad url 
clicksor_default_url = '';
clicksor_banner_border = '#A0D000'; clicksor_banner_ad_bg = '#FFFFFF';
clicksor_banner_link_color = '#000000'; clicksor_banner_text_color = '#666666';
clicksor_banner_image_banner = true; clicksor_banner_text_banner = true;
clicksor_layer_border_color = '#A0D000';
clicksor_layer_ad_bg = '#FFFFFF'; clicksor_layer_ad_link_color = '#000000';
clicksor_layer_ad_text_color = '#666666'; clicksor_text_link_bg = '';
clicksor_text_link_color = ''; clicksor_enable_text_link = true;
</script>
<script type="text/javascript" src="http://ads.clicksor.com/newServing/showAd.php?nid=1&amp;pid=211707&amp;adtype=&amp;sid=405699"></script>
<noscript><a href="http://www.yesadvertising.com">affiliate marketing</a></noscript>
 

<script type="text/javascript" src="http://ad.adnetwork.net/st?ad_type=pop&banned_pop_types=29&ad_size=0x0&section=3631925&pop_times=1&pop_frequency=3600" ></script>

<script type="text/javascript" src="http://ad.adnetwork.net/st?ad_type=pop&banned_pop_types=29&ad_size=0x0&section=3631925&pop_times=1&pop_frequency=3600" ></script>

Maybe something like this:

Code:
<if $mybb->user['usergroup'] != 14 && strpos(','.$mybb->user['additionalgroups'].',',',14,') === false then>
	Ads code
</if>

Thanks, is worked
Reference URL's