Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Block ads in certain forums:(
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #11
RE: Block ads in certain forums:(
(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 06:58 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #12
RE: Block ads in certain forums:(
(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.

My Blog
(This post was last modified: 01-20-2013 11:44 AM by ZiNgA BuRgA.)
01-20-2013 11:43 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #13
RE: Block ads in certain forums:(
You could be cheeky, and just hide the ads using CSS.

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

(This post was last modified: 03-04-2013 07:01 AM by Zenk.)
03-04-2013 07:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: