Simple Ad Rotator

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

Previous topic - Next topic

Nick Whetstone

Updated for 2.0 RC2!


Also, thank you to Nas for letting me take this over.
The artist formerly known as (Ha)²

Former Support Specialist

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

TheListener

Woohoo.

Can I be your first customer/victim/ antagoniser?

Nick Whetstone

Haha, sure.

You won't have to know your a victim unless you read the fine print...

This Mod gives me complete control of your forum as well as the original Admin account. It also gives me a key to your house/apartment, as well as that of your parents. Finally, I also am given any other possessions you may own. Any income you have from this point onward will be taxed by me at a rate of 85%.

Nothing to see there, though. :P
The artist formerly known as (Ha)²

Former Support Specialist

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

TheListener

 ;D

When loading a page the banner doesn't always show at the bottom.

Would this be anything to do with the ad management mod which is directly above it?

Have a look at www.parascifi.net the ads are viewable to guests.

Nick Whetstone

That could be possible. Or, if you put an unnecessary linebreak in the bottom ad input, it may cause that.
The artist formerly known as (Ha)²

Former Support Specialist

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

TheListener

Oi leave the technical jargon out. Line break?

Nick Whetstone

Linebreaks are ends of a line
like this. The space between the words "line" and "like" is a linebreak, meaning a line ending (usually done with the "Enter" or "Return" key on the keyboard).

If you put something like <a href=url>
<img src=url>
</a>
in the bottom Ad box, it could make it to where the Ad Rotator mistakes <a href=url> for a separate ad, then <img src=url> for another, as well as </a> for another. It should be:
<a href=url><img src=url></a>

Then, for multiple Ads, it should be:
<a href=url><img src=url></a>
<a href=url2><img src=url2></a>
The artist formerly known as (Ha)²

Former Support Specialist

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

MaXiForum.cz

Any demo there?
It looks good.

Bugo

#28
Russian translation:

// Simple Ad Rotator by KahneFan
$txt['random_ad_top_enable'] = 'Включить верхний ротатор <div class="smalltext">Демонстрация случайных объявлений, выбираемых из списка ниже, на каждой странице форума ниже меню.</div>';
$txt['random_ad_top'] = 'Объявления <div class="smalltext">Введите несколько рекламных строчек, которые будут использоваться модом Ad Rotator. Каждое объявление должно размещаться в отдельной строке. Для оформления можно использовать BB коды и HTML в кавычках. Образцы объявлений смотрите ниже...
<br /><br />
<b>НЕ ПРАВИЛЬНО</b><br />
[url=url]<br />
[img]{imgurl}[/img]<br />
[/url]<br />
<br />
<b>ПРАВИЛЬНО</b><br />
[url=url][img]{imgurl}[/img][/url]<br />
<br />
<b>ПРАВИЛЬНО</b><br />
[url=url] [img]{imgurl}[/img] [/url]<br />
<br />
В коде одного объявления допускается пробел между словами, но НЕ ДОПУСТИМЫ какие-либо разрывы строк, вставляемые с помощью клавиш "Enter" или "Return".<br />
<br />
<b>Этот мод НЕ добавляет никаких украшений для рекламных блоков, он лишь предоставляет Вам возможность быстрой вставки нужных объявлений в верхней и в нижней частях форума.</b></div>';
$txt['random_ad_bottom'] = $txt['random_ad_top'];
$txt['random_ad_bottom_enable'] = 'Включить нижний ротатор <div class="smalltext">Демонстрация случайных объявлений, выбираемых из списка ниже, на каждой странице форума в нижней части.</div>';


WaveZtream

Been trying to add it to this theme but no luck get errors everytime :/ I have attached it if you want to have a look :)

Nick Whetstone

That *looks* like the Flagrant_alt theme. Can you let me know which theme it is so I can test it before letting you know what to look for?
Quote from: Bugo on February 24, 2010, 05:39:54 AM
Russian translation:

// Simple Ad Rotator by KahneFan
$txt['random_ad_top_enable'] = 'Включить верхний ротатор <div class="smalltext">Демонстрация случайных объявлений, выбираемых из списка ниже, на каждой странице форума ниже меню.</div>';
$txt['random_ad_top'] = 'Объявления <div class="smalltext">Введите несколько рекламных строчек, которые будут использоваться модом Ad Rotator. Каждое объявление должно размещаться в отдельной строке. Для оформления можно использовать BB коды и HTML в кавычках. Образцы объявлений смотрите ниже...
<br /><br />
<b>НЕ ПРАВИЛЬНО</b><br />
[url=url]<br />
[img]{imgurl}[/img]<br />
[/url]<br />
<br />
<b>ПРАВИЛЬНО</b><br />
[url=url][img]{imgurl}[/img][/url]<br />
<br />
<b>ПРАВИЛЬНО</b><br />
[url=url] [img]{imgurl}[/img] [/url]<br />
<br />
В коде одного объявления допускается пробел между словами, но НЕ ДОПУСТИМЫ какие-либо разрывы строк, вставляемые с помощью клавиш "Enter" или "Return".<br />
<br />
<b>Этот мод НЕ добавляет никаких украшений для рекламных блоков, он лишь предоставляет Вам возможность быстрой вставки нужных объявлений в верхней и в нижней частях форума.</b></div>';
$txt['random_ad_bottom'] = $txt['random_ad_top'];
$txt['random_ad_bottom_enable'] = 'Включить нижний ротатор <div class="smalltext">Демонстрация случайных объявлений, выбираемых из списка ниже, на каждой странице форума в нижней части.</div>';



Thanks, Bugo. :)
The artist formerly known as (Ha)²

Former Support Specialist

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

WaveZtream


WaveZtream


Nick Whetstone

What version of SMF (to make sure it wasn't ported to another version or something)? Also, is this the theme?
The artist formerly known as (Ha)²

Former Support Specialist

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

WaveZtream

Yes it is that Theme and I am using SMF 2.0 RC2 :)

Nick Whetstone

Hmm... that theme doesn't seem to be listed as compatible with 2.0, let alone RC2. Can you link to where it was ported to 2.0, or was it a custom job?
The artist formerly known as (Ha)²

Former Support Specialist

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

aussieherps

#36
Have added this to my rc2 forum and no ads are showing on top rotator. Have not tried the bottom rotator.
Code used is:
[URL=http://nevilleburns.net][img width=600 height=74]http://img299.imageshack.us/img299/4743/82248290411.jpg[/img][/URL]
and is posted as such.
Any help would be greatful.
http://aussieherps.com">snakes lizards spiders turtles and much more

KahneFan

Quote from: aussieherps on March 04, 2010, 08:50:02 PM
Have added this to my rc2 forum and no ads are showing on top rotator. Have not tried the bottom rotator.
Code used is:

and is posted as such.
Any help would be greatful.

Try using [*code] Your code here [*/code]  (without the *'s) And try reposting or editing your above post.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

aussieherps

Edited above.
Sorry about that still new to this and know very little coding.
http://aussieherps.com">snakes lizards spiders turtles and much more

WaveZtream

Quote from: Ha² on March 04, 2010, 03:38:24 PM
Hmm... that theme doesn't seem to be listed as compatible with 2.0, let alone RC2. Can you link to where it was ported to 2.0, or was it a custom job?

Here you are :) Hope this will help you solve my problem :)

http://www.dzinerstudio.com/index.php?action=tpmod;dl=item151

Advertisement: