Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: floor9 on June 04, 2005, 08:00:31 PM

Title: Bring back banner / ad management mods
Post by: floor9 on June 04, 2005, 08:00:31 PM
I searched through the forums and it looks like BannerMod and AdvertAff are both completely dead.

Simply put, what I'd like is a banner management system that provides for banner rotation in the same spot on the site.  As it stands right now, it looks like the only way I can put a banner on my site is to manually insert the code in the template.php file -- which is fine, unless I want to rotate banners from different sources.

In other words, I want to run banners from Junction, AdSense, and my ISP.  I only want one banner impression on each page; I don't want all three banners running at once.  It looked like BannerMod and/or AdvertAff might've done this, but with both of them gone, I guess I'll never find out.  :)

Any chance at a solid ad-management mod for SMF?  I'm familiar with some from phpBB2, but ... well ... we all know why we're here.  :)

Thanks in advance for any consideration!
Title: Re: Bring back banner / ad management mods
Post by: Thantos on June 04, 2005, 08:39:46 PM
I'm almost done with mine.  Just need to put the finishing touches and write the instructions for it.
Look for it in about a week
Title: Re: Bring back banner / ad management mods
Post by: floor9 on June 04, 2005, 08:51:20 PM
Great - can't wait to see it!  I'll keep watching ...
Title: Re: Bring back banner / ad management mods
Post by: joecoolinatl on June 05, 2005, 05:46:33 PM
sweet! im looking for this as well. i just want some controls so i can do similar to the "news" section on the front page. where i can list news and at the same time have a banner show up for my friends sites.  also im trying to figure out if i can stretch that news section in the upper right corner more to the left so i can have a 480x68 pic fit in there
Title: Re: Bring back banner / ad management mods
Post by: tconline on June 06, 2005, 02:19:45 AM
Ooo - can't wait for this one... will definately be needing it.
Title: Re: Bring back banner / ad management mods
Post by: MichiganMinis on June 06, 2005, 02:09:50 PM
How close are you to having this done?
Title: Re: Bring back banner / ad management mods
Post by: cnpldotca on June 07, 2005, 11:33:38 AM
I also cannot wait. It will be a long time coming. :)
Title: Re: Bring back banner / ad management mods
Post by: dtm.exe on June 07, 2005, 11:54:42 AM
Quote from: MichiganMinis on June 06, 2005, 02:09:50 PM
How close are you to having this done?

Quote from: cnpldotca on June 07, 2005, 11:33:38 AM
I also cannot wait. It will be a long time coming. :)

Maybe within the next few days?  As he said on June 4th, look for it in about a week ;).

-Dan The Man
Title: Re: Bring back banner / ad management mods
Post by: Thantos on June 07, 2005, 01:30:02 PM
yikes looks like I better get cracking on writing the documentation.  I will say that it will be after the release of beta 3 so that I can make sure I don't need to change anything concerning the package.  The mod is done so I just have auxiliary matters to attend to
Title: Re: Bring back banner / ad management mods
Post by: Thantos on June 07, 2005, 10:38:55 PM
Ok I've written the instructions so not too much more to do.  I'm posting the current URL for them to wet your whistles :)
http://www.geekoverloaded.com/instructions/banner.php
Title: Re: Bring back banner / ad management mods
Post by: 3fifty on June 08, 2005, 01:06:09 AM
Nice.

I had been using the news fader to rotate banner ads.  Then I switched to PHPadNews which is pretty in depth.  Depending on how in depth yours is I may switch.  It would be nice to have one integrated.
Title: Re: Bring back banner / ad management mods
Post by: kodewulf on June 08, 2005, 04:58:22 AM
I installed phpAdsNew and just stuck the invocation code for the banner into the template.

That works very well.  Also, I try to leave things to the experts, and phpAdsNew is definately one of the best adservers available today.  It also doesn't hurt that the project is still alive and kicking... :)
Title: Re: Bring back banner / ad management mods
Post by: floor9 on June 09, 2005, 01:48:26 PM
I just read through the instructions - this looks like exactly what I needed.  I'm a little nervous about my first delve into PHP coding, though, so here's hoping I don't wipe out my site with a single misplaced keystroke.  :)
Title: Re: Bring back banner / ad management mods
Post by: Thantos on June 09, 2005, 01:54:15 PM
I'll be honest:  This mod will be no where near as comprehensive as phpAdsNew.  I wrote the mod to be simple to use and I kept it pretty focused.  Once I release it I will take suggestions on improvements.  If you want something that is as robust as phpAdsNew then use their software.
Title: Re: Bring back banner / ad management mods
Post by: MichiganMinis on June 09, 2005, 02:51:59 PM
Mike, any rough time on the release?
Title: Re: Bring back banner / ad management mods
Post by: Thantos on June 09, 2005, 04:01:02 PM
QuoteI will say that it will be after the release of beta 3 so that I can make sure I don't need to change anything concerning the package.
Title: Re: Bring back banner / ad management mods
Post by: MichiganMinis on June 25, 2005, 12:59:33 PM
Any updates??
Title: Re: Bring back banner / ad management mods
Post by: JayBachatero on July 04, 2005, 01:57:33 AM
you can use midgards banner mod you can get it here http://www.eggdrop.gen.tr/SMF/
Title: Re: Bring back banner / ad management mods
Post by: taz on July 10, 2005, 06:03:57 PM
Would like to see this one also.  I need a good banner Mod for my sites.
Title: Re: Bring back banner / ad management mods
Post by: PooM on July 18, 2005, 04:57:50 AM
Whats happening with this? Seems to be taking longer... :(
Title: Re: Bring back banner / ad management mods
Post by: tconline on July 24, 2005, 11:48:36 PM
Quote from: LiL_J on July 04, 2005, 01:57:33 AM
you can use ******s banner mod you can get it here http://www.******/SMF/

What happened to the link?
Title: Re: Bring back banner / ad management mods
Post by: dtm.exe on July 24, 2005, 11:50:28 PM
Quote from: tconline on July 24, 2005, 11:48:36 PM
What happened to the link?

Here you go 8).

-Dan The Man
Title: Re: Bring back banner / ad management mods
Post by: tconline on July 26, 2005, 01:07:16 AM
Quote from: OIDanTheManIO on July 24, 2005, 11:50:28 PM
Quote from: tconline on July 24, 2005, 11:48:36 PM
What happened to the link?

Here you go 8).

-Dan The Man


Ooooooooooooooo I like this... I like this a LOT!!!

Mmmm - Google AdSense - I'll look into that.
Title: Re: Bring back banner / ad management mods
Post by: dtm.exe on July 26, 2005, 01:12:55 AM
Quote from: tconline on July 26, 2005, 01:07:16 AM
Ooooooooooooooo I like this... I like this a LOT!!!

Mmmm - Google AdSense - I'll look into that.

Glad to hear it :).

-Dan The Man
Title: Re: Bring back banner / ad management mods
Post by: JayBachatero on July 26, 2005, 11:55:21 AM
Quote from: tconline on July 26, 2005, 01:07:16 AM
Quote from: OIDanTheManIO on July 24, 2005, 11:50:28 PM
Quote from: tconline on July 24, 2005, 11:48:36 PM
What happened to the link?

Here you go 8).

-Dan The Man


Ooooooooooooooo I like this... I like this a LOT!!!

Mmmm - Google AdSense - I'll look into that.

the google adsense doesnt work properly
Title: Re: Bring back banner / ad management mods
Post by: tconline on July 27, 2005, 01:56:44 AM
Quote from: LiL_J on July 26, 2005, 11:55:21 AM
Quote from: tconline on July 26, 2005, 01:07:16 AM
the google adsense doesnt work properly
What's wrong with it?
Title: Re: Bring back banner / ad management mods
Post by: tconline on July 31, 2005, 11:50:13 PM
Ok - I have this mod installed for about a week now, and only just got about to setting up a banner for it.

After putting in a random banner and the relevant links nothing happens.

It's in the banner management section - but doesn't appear on the main forum view. at all.


http://games.aanet.com.au/forums
I tried Forcing a refresh and even deleting my cached files - no change - doesn't appear.  Is it possible the banner is trying to insert the code into a non-existant section of site or???
Title: Re: Bring back banner / ad management mods
Post by: dtm.exe on July 31, 2005, 11:58:57 PM
Quote from: tconline on July 31, 2005, 11:50:13 PM
Ok - I have this mod installed for about a week now, and only just got about to setting up a banner for it.

After putting in a random banner and the relevant links nothing happens.

It's in the banner management section - but doesn't appear on the main forum view. at all.


http://games.aanet.com.au/forums
I tried Forcing a refresh and even deleting my cached files - no change - doesn't appear.  Is it possible the banner is trying to insert the code into a non-existant section of site or???

How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)

-Dan The Man
Title: Re: Bring back banner / ad management mods
Post by: tconline on August 01, 2005, 12:40:37 AM
Hrmmm - I'm pretty ******e at coding... :-D

Think you can point me (show me how to do it) in the right direction?

Using the ElemenT theme... all we've done is change the color's of images around.
Title: Re: Bring back banner / ad management mods
Post by: taz on August 01, 2005, 09:43:28 AM
Will this work with SMF 1.1 Beta 3?
Title: Re: Bring back banner / ad management mods
Post by: JayBachatero on August 02, 2005, 09:57:30 PM
here it was taken from the .mod file form the banner mod
<edit file>
$themedir/index.template.php
</edit file>

<search for>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
</search for>

<replace>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

topBanner();
//googleads();
}
</replace>

<search for>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
</search for>

<replace>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

googleads();
bottomBanner();
</replace>
Title: Re: Bring back banner / ad management mods
Post by: tconline on August 03, 2005, 02:25:25 AM
Quote from: LiL_J on August 02, 2005, 09:57:30 PM
here it was taken from the .mod file form the banner mod
<edit file>
$themedir/index.template.php
</edit file>

<search for>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
</search for>

<replace>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

topBanner();
//googleads();
}
</replace>

<search for>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
</search for>

<replace>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

googleads();
bottomBanner();
</replace>


Scuse my lame knowledge - but what does that part do?
Is that so the banner appears at the bottom of the code?
Title: Re: Bring back banner / ad management mods
Post by: JayBachatero on August 05, 2005, 09:58:30 PM
ok open the index.template.php file of the theme you want to add the banner to.

This is to add the banner in the top.
search for:

   <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
   }


replace with:
   <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
      topBanner();
      //googleads();
   }


basically what you are adding is
      topBanner();
      //googleads();


Now for the bottom banner.
Search for:

   function template_main_below()
   {
      global $context, $settings, $options, $scripturl, $txt;


Replace with:
   function template_main_below()
   {
      global $context, $settings, $options, $scripturl, $txt;

      googleads();
      bottomBanner();


on this part what you are adding is
      googleads();
      bottomBanner();
Title: Re: Bring back banner / ad management mods
Post by: vdubbia on September 05, 2005, 08:51:36 AM
Am I missing something?  Where is the download link for the package? 
Title: Re: Bring back banner / ad management mods
Post by: JayBachatero on September 06, 2005, 12:40:08 AM
http://www.simplemachines.org/community/index.php?topic=37807.msg312729#msg312729
Title: Re: Bring back banner / ad management mods
Post by: aabce on September 08, 2005, 03:48:24 PM
Quote from: kodewulf on June 08, 2005, 04:58:22 AM
I installed phpAdsNew and just stuck the invocation code for the banner into the template.

That works very well.  Also, I try to leave things to the experts, and phpAdsNew is definately one of the best adservers available today.  It also doesn't hurt that the project is still alive and kicking... :)


could you paste the code hot to do it?

i use SMF 1.1 Beta 3 Public
Title: Re: Bring back banner / ad management mods
Post by: ChaosEnergy on September 11, 2005, 05:32:07 PM
I added it to my 1.05 forum

when I choose top banner, i get top and bottom
when I say bottom, it seems to be only bottom

but when i change the other 2 types, i dont see anything...

could there be an issue with 1.05?
Title: Re: Bring back banner / ad management mods
Post by: JayBachatero on September 11, 2005, 06:04:50 PM
Quote from: ChaosEnergy on September 11, 2005, 05:32:07 PM
I added it to my 1.05 forum

when I choose top banner, i get top and bottom
when I say bottom, it seems to be only bottom

but when i change the other 2 types, i dont see anything...

could there be an issue with 1.05?

its an issue with the mod itself.