MyBB Hacks

Full Version: Block ads in certain forums:(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(01-20-2013 12:00 AM)newbie123 Wrote: [ -> ]Frown I know i suck at codes.. please Help me..I tot this forum will help me..

Maybe something like this:

Code:
<if !in_array($GLOBALS['style']['fid'],array(1,2,3)) then>
Ads codes here
</if>


If I'm allowed to suggest you something, try to learn how to use the conditional (at least the structure, you can find many example in this forum), because this plugin is a very powerful tool. You can remove a lot of plugins just by using this plugin.

(01-20-2013 12:00 AM)newbie123 Wrote: [ -> ]Frown I know i suck at codes..
Well then, it seems like a good time to improve your skills.

(01-20-2013 12:00 AM)newbie123 Wrote: [ -> ]I tot this forum will help me..
Help doesn't mean 'do everything for you'.
If you want to customise anything related to layout, HTML is a fundamental skill you need.  It's not difficult to learn (you can grasp the basics in less than an hour) and it'll be invaluable to any webmaster.  I'm just sick of people who just don't even bother trying.
You could be cheeky, and just hide the ads using CSS.

PHP Code:
<style>
.hide-fid_1, .hide-fid_2 {display:none;}
</style>
<div class="hide-fid_{$fid}">
//Advertisement code here
</div>

Pages: 1 2
Reference URL's