News:

Wondering if this will always be free?  See why free is better.

Main Menu

Simple Ad Rotator

Started by Nick Whetstone, April 17, 2009, 10:35:59 AM

Previous topic - Next topic

Nick Whetstone

Simple Ad Rotator 1.0
Originally created by KahneFan, based on Random Quotes mod by Nas, then taken over by Nas, now taken over by Ha2.
(For SMF 2.0 RC1-1+)



Introduction
This will allow administrators to add a list of rotating ads in the admin panel. A random ad out of these will then be displayed under the menu in the forum.

Administration of this mod is located: ADMIN --> MODIFICATIONS

Separate ads by placing them on a new line with a "return"/"enter"/"line break". Codes for each individual ad must be placed ON THE SAME "LINE" with no line break between the code. Example...

NOT GOOD

<a href=url>
<img src=url>
</a>


GOOD

<a href=url><img src=url></a>


GOOD

<a href=url> <img src=url> </a>


There can be a space between the code, and the entry field may WRAP the code, but there can be no line breaks by using the "enter" or "return" key on your keyboard.

This places NO decoration in/around the ad area, it just gives a clean ad space for you to add coding to each ad as desired.

Tested
Tested on fresh installations of SMF 2.0 RC1

Support
If you need support whit this mod, use the modification thread.

Changelog
23 June 2009
o Taken over by Nas. Thanks to KahneFan for all your work on this.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Sudhakar Arjunan

Good Mod Kahnefan.

I will use it over my forum.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

iceman~

Nice ... Thank's KahneFan.
Was looking for something like this ...
Will try it ...
A wise monkey never monkies with another monkey's monkey

evilfud

I cant seem to get this to work can you explain exactly how a sample 2 ads would look in the code box?

KahneFan

All of a single ad code must be on one line. You can have spaces, but you can not use your enter/return key, until you are ready for the next ad. Side note: I have not figured out a good way to use AdSense with this. This is more for sites who want to put up their own simple banners.

GOOD Example:

<a href="http://link1.com">{text or image code}</a>
<a href="http://link2.com">{text or image code}</a>


Notice each add is on its own separate line.

BAD Example:

<a href="http://link1.com">{text or image code}</a><a href="http://link2.com">{text or image code}</a>


BAD Example:

<a href="http://link1.com">
{text or image code}
</a>
<a href="http://link2.com">
{text or image code}
</a>


Also note: if your text WRAPS its self to another line, it's OK. As long as you don't use your enter/return key to create another line... until you're ready for the next ad.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Kevin Deguara

Looks like a cool mod dude,

Could this also be used with flash images? If so, could anybody point me in the direction of the correct code to make this work?

Thanks in advance,

Kevin

KahneFan

I don't know much about flash. But, as long as you can contain all the necessary code on 1 line, you should be able to make it work. Again though, I'm not flash friendly, so that is untested advice.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

xmusic

need for version 1.1.9 also sir

den15b

#8
Hi

I have a question, can I get the banner to sit in the center of the page instead of starting from the left, It would look better if I could get it to sit centered in the page.

thank you

Denis

[edit] I just worked it out, I didn't realise that you do not use a closed "center" tag.

So it would look like this:

[center][url=http://www.vbucheredo.com?src=vfdlp1][img]http://img4.imageshack.us/img2/1938/bannerad.jpg[/img][/url]

KahneFan

Glad you worked it out :)   I would have used the closed tag at the end as well.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

den15b

Quote from: KahneFan on June 18, 2009, 09:45:39 AM
Glad you worked it out :)   I would have used the closed tag at the end as well.

That is how I originaly did it (used the closed tag at the end), it just wouldn't work, it wouldn't let the link code work.

Marcus Forsberg

I have taken over this modification. :)

Thans to KahneFan for all your work with this.

KahneFan

Thank you for letting me take it over, then you taking it back over :D
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

leftezi

Is it working only with default theme?

Marcus Forsberg

leftezi, you can let the package manger *try* to install it on custom themes. If it can't, you'll have to do it manually.

TheListener

Had a succesful install (  :o )

Had a test following the instructions however every so often no banner appears.

How do I correct this?

Also could banners be placed into a,line rather than on top of each other?

KahneFan

In regards to the blank, be sure you have...

<ad>
<ad>
<ad>
<ad>

With no blank in between like...

<ad>
<ad>
<ad>

<ad>
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

TheListener

The ads were placed as

advert
advert

Would it be because the google ad from the ad management mod is almost in the same position?


More-to-life

UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

TheListener

Quote from: welshbikers on February 21, 2010, 11:38:54 AM
Will this work on RC2?

Works fine on my forum and that uses 2.0 RC2

Advertisement: