A plugin similar to 'Text Ads'

jdab

Madly Diligent
Joined
Aug 29, 2010
Messages
9,642
Reaction score
1
FP$
21
I'm looking for a MyBB plugin that will allow me to add 3 or 4 affiliate images with text just under the boards, similar to ForumPromotion's. Anyone know of a good one?
 
If you can't find one you can just make a simple html table but you wont be able to add/edit/remove affiliates through the acp it'll have to be a manual file edit.
 
I did made a plugin for that, but haven't release it. Will find it in my PC. 🙂
 
kavin said:
I did made a plugin for that, but haven't release it. Will find it in my PC. 🙂
Okay thanks kavin!
 
Im looking for the same thing for my forums to 🙂
 
Then how do I add this to the plugins on my site?
 
Krymzn said:
Then how do I add this to the plugins on my site?

1) Extract the zip archive.
2) Upload the inc/plugins/textads.php file to your-forum-root/inc/plugins/
3) Admin CP -> Configuration -> Plugins -> Press Install & activate near Text ads.
4) Go to Admin CP -> Configuration -> Text ads. Set the ads settings there. 🙂
 
JosephC said:
If you can't find one you can just make a simple html table but you wont be able to add/edit/remove affiliates through the acp it'll have to be a manual file edit.

Yeah you can.

If you look at mine:
http://www.pokemongts.com/index.php

At the very bottom, there's a section of "Affiliates" & "Top Sites".
All those code exists in a "affiliates" template under "Global Templates" in the Templates section of MyBB.

Unfortunately, it appears that MyBB's forums are having issues, making it really difficult for me to pull up the information on how to do this.

But it's rather easy, to create all the custom pages you want, or get the custom data you want to load on the existing pages.


EDIT:

Okay, if you want to create your own custom page, I found the instructions here:
http://mybbsource.com/thread-3204.html

If you want to link in your own custom data, you create a new template the same way, but only put in the data you want to load.
You don't need the html tags, the title, or the header stuff.

Only the data you want.
It's a good idea to use table codes here.

You can even put the word "Test" to start with.
Let's say you named the template "test_code1".

Now what you need to do is load the code into a page, so you can summon it from any template.
Most of the ones I use, I just put into the "global.php" file, you can find that in the root folder.

This line would need to go inside there:
eval("\$test_code1= \"".$templates->get("test_code1")."\";");

I put all mine just below:
Code:
// Prepare the main templates for use
unset($admincplink);

Now, in the templates where you want the code to go, place this there:
Code:
{$test_code1}

Pretty easy.
Just replace test_code1 with whatever you want to call it.
If you're using advanced PHP codes, then you'll need a PHP Conditions plugin;
http://mybbhacks.zingaburga.com/showthread.php?tid=260

Work on using all this, it gives you a lot more flexibility to do & create what you want.
 
Back
Top Bottom