News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Bring back banner / ad management mods

Started by floor9, June 04, 2005, 08:00:31 PM

Previous topic - Next topic

floor9

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!

Thantos

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

floor9

Great - can't wait to see it!  I'll keep watching ...

joecoolinatl

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

tconline

Ooo - can't wait for this one... will definately be needing it.

MichiganMinis


cnpldotca

I also cannot wait. It will be a long time coming. :)

dtm.exe

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

Thantos

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

Thantos

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

3fifty

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.

kodewulf

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... :)
hxxp:www.spreadfirefox.com/?q=affiliates&id=31219&t=72 [nonactive]

Need to rant? ==> hxxp:www.simplybadservice.com [nonactive]

floor9

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.  :)

Thantos

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.

MichiganMinis


Thantos

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.

MichiganMinis


JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

taz

Would like to see this one also.  I need a good banner Mod for my sites.

PooM

Whats happening with this? Seems to be taking longer... :(

tconline

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?

dtm.exe


tconline

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.

dtm.exe

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

JayBachatero

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
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert


tconline

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???

dtm.exe

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?

-Dan The Man

tconline

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.

taz


JayBachatero

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>
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

tconline

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?

JayBachatero

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();
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

vdubbia

Am I missing something?  Where is the download link for the package? 

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

aabce

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

ChaosEnergy

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?
Chaos Empire ®

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: