Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nick Whetstone on April 17, 2009, 10:35:59 AM

Title: Simple Ad Rotator
Post by: Nick Whetstone on April 17, 2009, 10:35:59 AM
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+)


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1774) | Comment On This Mod (http://www.simplemachines.org/community/index.php?topic=305246.0)

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.
Title: Re: Simple Ad Rotator
Post by: Sudhakar Arjunan on April 17, 2009, 02:36:38 PM
Good Mod Kahnefan.

I will use it over my forum.
Title: Re: Simple Ad Rotator
Post by: iceman~ on April 20, 2009, 06:35:24 AM
Nice ... Thank's KahneFan.
Was looking for something like this ...
Will try it ...
Title: Re: Simple Ad Rotator
Post by: evilfud on June 05, 2009, 07:09:26 PM
I cant seem to get this to work can you explain exactly how a sample 2 ads would look in the code box?
Title: Re: Simple Ad Rotator
Post by: KahneFan on June 06, 2009, 12:13:08 AM
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.
Title: Re: Simple Ad Rotator
Post by: Kevin Deguara on June 08, 2009, 02:05:20 PM
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
Title: Re: Simple Ad Rotator
Post by: KahneFan on June 08, 2009, 04:51:12 PM
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.
Title: Re: Simple Ad Rotator
Post by: xmusic on June 16, 2009, 05:20:21 PM
need for version 1.1.9 also sir
Title: Re: Simple Ad Rotator
Post by: den15b on June 18, 2009, 08:35:49 AM
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]
Title: Re: Simple Ad Rotator
Post by: 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.
Title: Re: Simple Ad Rotator
Post by: den15b on June 18, 2009, 09:58:36 AM
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.
Title: Re: Simple Ad Rotator
Post by: Marcus Forsberg on June 23, 2009, 10:31:15 AM
I have taken over this modification. :)

Thans to KahneFan for all your work with this.
Title: Re: Simple Ad Rotator
Post by: KahneFan on June 23, 2009, 10:33:56 AM
Thank you for letting me take it over, then you taking it back over :D
Title: Re: Simple Ad Rotator
Post by: leftezi on July 06, 2009, 11:30:34 PM
Is it working only with default theme?
Title: Re: Simple Ad Rotator
Post by: Marcus Forsberg on July 07, 2009, 12:06:01 AM
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.
Title: Re: Simple Ad Rotator
Post by: TheListener on October 27, 2009, 01:21:45 AM
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?
Title: Re: Simple Ad Rotator
Post by: KahneFan on October 27, 2009, 08:33:03 AM
In regards to the blank, be sure you have...

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

With no blank in between like...

<ad>
<ad>
<ad>

<ad>
Title: Re: Simple Ad Rotator
Post by: TheListener on October 27, 2009, 05:25:07 PM
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?

Title: Re: Simple Ad Rotator
Post by: More-to-life on February 21, 2010, 11:38:54 AM
Will this work on RC2?
Title: Re: Simple Ad Rotator
Post by: TheListener on February 21, 2010, 05:58:06 PM
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
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on February 22, 2010, 10:13:16 AM
Updated for 2.0 RC2!


Also, thank you to Nas for letting me take this over.
Title: Re: Simple Ad Rotator
Post by: TheListener on February 22, 2010, 10:18:54 AM
Woohoo.

Can I be your first customer/victim/ antagoniser?
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on February 22, 2010, 10:22:19 AM
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
Title: Re: Simple Ad Rotator
Post by: TheListener on February 22, 2010, 10:24:50 AM
 ;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.
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on February 22, 2010, 10:27:17 AM
That could be possible. Or, if you put an unnecessary linebreak in the bottom ad input, it may cause that.
Title: Re: Simple Ad Rotator
Post by: TheListener on February 22, 2010, 10:28:23 AM
Oi leave the technical jargon out. Line break?
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on February 22, 2010, 10:32:53 AM
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>
Title: Re: Simple Ad Rotator
Post by: MaXiForum.cz on February 23, 2010, 02:10:15 PM
Any demo there?
It looks good.
Title: Re: Simple Ad Rotator
Post by: 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>';

Title: Re: Simple Ad Rotator
Post by: WaveZtream on February 26, 2010, 04:46:45 AM
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 :)
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on February 26, 2010, 08:50:33 AM
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. :)
Title: Re: Simple Ad Rotator
Post by: WaveZtream on February 26, 2010, 10:15:07 AM
Theme is called Darkbreak :)
Title: Re: Simple Ad Rotator
Post by: WaveZtream on February 28, 2010, 03:35:04 AM
Any luck figuring it out?
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on March 01, 2010, 10:00:12 AM
What version of SMF (to make sure it wasn't ported to another version or something)? Also, is this (http://custom.simplemachines.org/themes/index.php?lemma=486) the theme?
Title: Re: Simple Ad Rotator
Post by: WaveZtream on March 01, 2010, 11:47:08 AM
Yes it is that Theme and I am using SMF 2.0 RC2 :)
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone 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?
Title: Re: Simple Ad Rotator
Post by: 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:
[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.
Title: Re: Simple Ad Rotator
Post by: KahneFan on March 04, 2010, 08:59:50 PM
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:
(http://img299.imageshack.us/img299/4743/82248290411.jpg) (http://nevilleburns.net)
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.
Title: Re: Simple Ad Rotator
Post by: aussieherps on March 04, 2010, 09:18:02 PM
Edited above.
Sorry about that still new to this and know very little coding.
Title: Re: Simple Ad Rotator
Post by: WaveZtream on March 05, 2010, 09:44:56 AM
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
Title: Re: Simple Ad Rotator
Post by: WaveZtream on March 09, 2010, 03:48:59 PM
*bump* any luck? :D
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on March 09, 2010, 04:06:41 PM
Sorry for the delay... try this:
/Themes/Darkbreak/index.template.php
Code (find) Select
// Show the navigation tree.
theme_linktree();
Code (Replace with) Select
// Begin Simple Ad Rotator - Top Ad
if (!empty($modSettings['random_ad_top']) && !empty($modSettings['random_ad_top_enable']))
{

// Seperate the quotes from each other.
$quotes_top = explode("\n", $modSettings['random_ad_top']);

// Number of different quotes
$num_quotes_top = count($quotes_top)-1;

// A random number
$number_top = mt_rand(0,$num_quotes_top);

echo'' .parse_bbc($quotes_top[$number_top]). '';
}
// Show the navigation tree.
theme_linktree();
Code (Find) Select
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
Code (Replace with) Select

   global $modSettings;
// Begin Simple Ad Rotator - Bottom Ad
if (!empty($modSettings['random_ad_bottom']) && !empty($modSettings['random_ad_bottom_enable']))
{

// Seperate the quotes from each other.
$quotes_bottom = explode("\n", $modSettings['random_ad_bottom']);

// Number of different quotes
$num_quotes_bottom = count($quotes_bottom)-1;

// A random number
$number_bottom = mt_rand(0,$num_quotes_bottom);

echo'' .parse_bbc($quotes_bottom[$number_bottom]). '';
}
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!


Let me know how that looks. No guarantee that it'll look pretty like that. :P

If you need help styling it, feel free to say so.
Title: Re: Simple Ad Rotator
Post by: WaveZtream on March 09, 2010, 04:26:55 PM
Thx for the help that worked like a charm :D
Title: Re: Simple Ad Rotator
Post by: aussieherps on March 09, 2010, 07:29:04 PM
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:
[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.
Any help with this one or advice would be appreciated....
Title: Re: Simple Ad Rotator
Post by: Nick Whetstone on March 09, 2010, 07:33:37 PM
Have you made sure the "Enable top rotator" box is ticked and that there are no line breaks? Also, did the Mod fail any tests on installation?
Title: Re: Simple Ad Rotator
Post by: aussieherps on March 22, 2010, 06:32:25 AM
Can't remember if there was any fails. if there were I would have parsed them for install....I think thats what you call it.
Yes the rotator has all been set up with the top box ticked, just no ads showing.
Doesn't bother me too much as if I just post ads in the same area the Ad mod rotates them regularly on refreshed pages.
Title: Re: Simple Ad Rotator
Post by: EGCoopey on March 29, 2011, 12:48:26 AM
what would prevent a ad from showing up 1 out of 3 hard refreshes? i am running 3 rotating ads and they only show up randomly. Sometimes nothing shows up, sometimes only the lower shows up, sometimes they both upper and lower will show up.

Running RC5 on Krilliun Theme.
Title: Re: Simple Ad Rotator
Post by: TheListener on March 29, 2011, 01:32:17 AM
Are they on different lines ie

Like this

and not like this when
you added the nexr ad?
Title: Re: Simple Ad Rotator
Post by: tassie73 on July 12, 2011, 06:48:02 AM
Hi,

i am using the DarkMark theme and am trying to get the mod to run, but with no luck..... If I replace all the stuff as in the darkbreak theme, will it work?

Cheers

Chris
Title: Re: Simple Ad Rotator
Post by: katiespickles on August 28, 2011, 02:56:29 PM
I have all kinds of errors....
?????  :'(
Title: Re: Simple Ad Rotator
Post by: TheListener on August 28, 2011, 04:42:08 PM
Quote from: katiespickles on August 28, 2011, 02:56:29 PM
I have all kinds of errors....
?????  :'(

Unless you plan on using the Core theme then you only have one error.

The error is a test failed which means you have to manually edit the file.
Title: Re: Simple Ad Rotator
Post by: katiespickles on August 28, 2011, 10:00:24 PM
Quote from: Brack1 on August 28, 2011, 04:42:08 PM
Quote from: katiespickles on August 28, 2011, 02:56:29 PM
I have all kinds of errors....
?????  :'(

Unless you plan on using the Core theme then you only have one error.

The error is a test failed which means you have to manually edit the file.

I'm using Headline, so I have 3...?
Title: Re: Simple Ad Rotator
Post by: TheListener on August 28, 2011, 10:10:56 PM
What is headline?
Title: Re: Simple Ad Rotator
Post by: katiespickles on August 28, 2011, 10:17:42 PM
Quote from: Brack1 on August 28, 2011, 10:10:56 PM
What is headline?

A theme
charlestonmomswap.com/forum
Title: Re: Simple Ad Rotator
Post by: TheListener on August 28, 2011, 10:24:35 PM
Unless headline uses the core them then no you don't have 3 errors.

Also nobody can help if the forum is not open to guests in fact if I were a guest I would not stay any longer than  a second if I had to register at a forum before viewing it.
Title: Re: Simple Ad Rotator
Post by: TheListener on August 28, 2011, 10:28:15 PM
Er I need to wear glasses

Katie you are indeed correct there were more than 1 edit.

( hey is is 3:30am)

Do you know how to leave your index.template file as an attachment so someone can have a look for you?

:-[ :-[ :-[

Title: Re: Simple Ad Rotator
Post by: katiespickles on August 28, 2011, 10:59:07 PM
No I don't :((( I'll poke around & see what I can find

and it's all private because there will be personal info up. I'm moving 1500 people from a Facebook group over to here, so hopefully they'll stick around for more than a minute or two ;)
Title: Re: Simple Ad Rotator
Post by: bloodsong on September 02, 2011, 11:09:18 AM
heyas guys!

   thanks for the great mod/s --  random quote and the ad rotator!  the old random quote didnt work with my 2.0 board, so i'm using this one, now.  it's really nice!

but...

   i always have to tinker.   i don't know css/php, exactly.  i have firebug, and i guess a lot.

   what i would like to do is get the ad rotator centered and NOT go across the whole width of the header.  i've been doing this the low-tech way by using a centered table with a fixed width directly on the 'ad' line.  then i wanted to put it under the site logo/search and the user info/login stuff.   annnnnnd, i'm having problems.

1:  if i use the table-in-ad-line (in the control panel) method, the text turns brown, when i want it to be the standard body colour of dark powder blue.  i tried making a new class called "quote" with that colour in the css, but that didn't help. (and added div class="quote" to the ad line code.)

2:  when i use the table below the login header stuff, just above the first br class = "clear", the entire rest of the forum layout is wrong.  that is, the table it uses is the wrong width.  and i don't know why it is 'losing' its proper width.

3:  when i take OUT the table code below the login/header stuff, the rest of the page displays the proper width.  and my text is the proper colour.  however, it starts above the site slogan, continues below the news/search line, and takes up the whole width of the header.


   if i want the ad centered, with a fixed width, in the header under the login and stuff, just above the location tree line; can i change the ad rotator php code to accomplish that?  or is that some kind of java going on in there? i DEFINITELY cannot touch java.  can i apply any kind of wrapper to the ad rotator?  height, width, text colours...?  or does that all have to go in the data area for each 'ad' line?

   any ideas?  oh, i am using a modified cataclysm theme.  i dont think the theme bothered it; everything worked right.  i just dont understand why using a table in the quote caused the forum body table to flake out.
Title: Re: Simple Ad Rotator
Post by: bloodsong on September 10, 2011, 09:35:52 AM
heyas!

  never mind, i got it set up the way i wanted!  i just used a good old old-school TABLE!  ;D  and i used it for the user info, the rotator, and the slogan/search.  and finally got the slogan/search to not go wiggy when someone isn't logged in.  much better than that align left align right stuff :X


   super cool mod; i love it!!

you can see it here if you want:
http://bldsong.net/dabz/index.php
Title: Re: Simple Ad Rotator
Post by: wole8029 on April 17, 2012, 01:36:55 PM
hello please how can i get this to work in my smf 2.0.1
Title: Re: Simple Ad Rotator
Post by: TheListener on April 17, 2012, 01:38:42 PM
Quote from: wole8029 on April 17, 2012, 01:36:55 PM
hello please how can i get this to work in my smf 2.0.1

Have a look at the Mod Emulate link in my signature.
Title: Re: Simple Ad Rotator
Post by: TheListener on April 17, 2012, 01:42:41 PM
Quote from: Old Fossil on April 17, 2012, 01:38:42 PM
Quote from: wole8029 on April 17, 2012, 01:36:55 PM
hello please how can i get this to work in my smf 2.0.1

Have a look at the Mod Emulate link in my signature.

EDIT: The mod WILL work on 2.0.2
Title: Re: Simple Ad Rotator
Post by: wole8029 on April 17, 2012, 02:29:11 PM
so you are saying i should change the emulate version to 2.0 RC2, hope this is safe please...?
Title: Re: Simple Ad Rotator
Post by: TheListener on April 17, 2012, 02:32:00 PM
On my test forum I didn't have to use the emulate.
Title: Re: Simple Ad Rotator
Post by: wole8029 on April 17, 2012, 02:48:01 PM
pls how did you get it to work on smf 2.0.1 ...becos i tried installn and got error...please i need the processes...thanks again old fossill
Title: Re: Simple Ad Rotator
Post by: TheListener on April 17, 2012, 02:48:42 PM
Would you like me to do it for you?
Title: Re: Simple Ad Rotator
Post by: wole8029 on April 17, 2012, 04:06:27 PM
thanks alot for the gesture, but  will just need your steps guide, i shud b able to follow it up and do it myself...thanks
Title: Re: Simple Ad Rotator
Post by: TheListener on April 17, 2012, 06:06:23 PM
Okay the first thing we need to know is what was the error?
Title: Re: Simple Ad Rotator
Post by: wole8029 on April 18, 2012, 02:34:42 AM
neva mind thanks anyway.... i wil use the iframe there already... now i wantto move this iframe to the right . http://fudgemental.com/fudged . here is the prsent code // Show a random news item? (or you could pick one from news_lines...)
  if (!empty($settings['enable_news']))
   echo '
      <h2>', $txt['news'], ': </h2>
      <p>', $context['random_news_line'], '</p>';

  echo '
    </div>
   </div>
   <div class="floatright">   
   </div> <table style="text-align: right; width: 550px;" border="0"
cellpadding="2" cellspacing="5">
  <tbody>
   <tr>
    <td><img style="" alt=""
src="http://fudgemental.com/fudged/image/image.jpg"></td>
    <td><iframe src="http://fudgemental.com/fudged/image/quote.html" width="100%" height="200"
frameborder="0" scrolling="no"></iframe></td>
   </tr>
  </tbody>
</table><br><br>';