News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Bring back banner / ad management mods

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

Previous topic - Next topic

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: