Plugin to display ads by forum?

VirusZero

Resident
Joined
Mar 16, 2010
Messages
730
Reaction score
47
FP$
1,818
Is there a plugin that allows an admin to display ads (like adsense) on a per forum basis for MyBB? (Version 1.6.12)

I've seen Pirata Nervo's My Advertisements plugin but that's not quite what I want. It allows the admin to disable ads per group... but (from what I can tell) not per forum.

The reason I want per forum rather than per group is because I want only certain forums to have no ads displayed. (Like for a VIP type forum or a forum where we talk about more mature subject matters and don't necessarily want adsense picking up those keywords and displaying ads for that. Which could potentially put my adsense account at risk of being closed.)

I'm not sure if I had two groups (say group F and group G as a person's primary and secondary group) that if I set one group (ex- group G) as no ads it would also mean that would be inherited for all forums (even ones covered solely under group F) because they have two user groups.
Though that also wouldn't solve the issue because potentially group E may still be able to see the forum also and have ads displayed (even though they don't have group G as a secondary).

If there isn't a plugin like this, how difficult would one be to create? And then would anyone be willing to give it a go?
 
May be for MyBB based forum admins would run this into their forums. as a Random Banner ADS.
 
FTON, I'm not entirely sure what you mean, could you clarify some?



Just for anyone else interested in this also...
I asked the same question (pretty much) on the MyBB forum and they told me to use the MyAdvertisements plugin (linked in my first post) with PHP in Templates / Template Conditionals.

Then in the header add:
Code:
<if $GLOBALS['style']['fid'] != '#'  then>{myadvertisements[zone_1]}</if>

Where the '#' is, that's where you put the forum you don't want ads to display.
So for example, if you didn't want ads in forum number 3, your code would be:
Code:
<if $GLOBALS['style']['fid'] != '3'  then>{myadvertisements[zone_1]}</if>

It's not a plugin or an update to one, but it will work.
 
I found a plugin before, but I can't remember what it was called. I'm looking through my computer to see if I still have it downloaded. It took me a while to find it when I first researched it, I just can't think of the name right away. 🙁
 
Couldn't you just insert your ad banner code into the template directly where you want the ad to be displayed?
 
I could, but then it's going to show up for every forum. (Which is what I'm trying to avoid, since there are some forums I don't want ads in.)

So if I just stuck the adsense code into the templates I'd end up needing a more extensive javascript/jQuery code to ensure the ads don't display... which I've never had good luck modifying the adsense or analytics code.

Or alternatively, I'd need another plugin to allow me to use PHP in the templates to have a similar sort of code. And I could do that (probably with a few quick modifications to the code given to me above), but I'm not particularly skilled with PHP so I'd prefer to avoid it if at all possible for now.

Overall, I'd rather have a plugin because in this case it would be easier to install, likely wouldn't need to mess with the PHP and would still allow me to easily choose which forum (or forums).
 
You could use My Advertisements and use the PHP in Templates to display the ads in certain forums. It's annoying using 2 plugins, but works flawlessly.
 
Back
Top Bottom