Ads in SMF?

Status
Not open for further replies.

MCSY1

New Member
Messages
9
Reaction score
0
Points
0
I've been working on getting the "Advanced" ad on to my site for several hours now and have no luck getting it to work where I want it to. I have tried the downloadable ad package for SMF and it caused even more problems (even when I used "the" FAQ at smfads). It works with the default theme, but my themes are typically based around the YaBB "classic" theme.

Right now, when I paste the PHP code in at the bottom of my template, it puts it on the very top of the page. I've tried Google searches, different message boards, and several other things and can't get it centered on the bottom of the page (under the copyright box) like I want it. Does anyone know how I can do that?

My forum: http://www.r4-g9.exofire.net/forum/ (still under construction)

Thanks!

[Sorry if this is in the wrong board, I wasn't 100% sure where to put it]
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
You will have to edit it into the footer. Since I'm not too familiar with SMF, I'm not sure exactly how you'd do this, but if you can't do it from the admin CP then you should be able to do it by editing the footer file. Chances are, the PHP code won't work in the forum, so use its JavaScript counterpart instead.
 

MCSY1

New Member
Messages
9
Reaction score
0
Points
0
There is no footer file, you have to edit it from the index.template.php file and I've tried it in several different locations on there and still nothing, even with the Javascript ad. I keep getting syntax or template parse errors. :dunno:
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Well, sorry you spent so much time on trying to get the ads installed. If you go to:

http://mods.simplemachines.org/index.php?mod=255

And download the ad management mod and install via the package manager in the admin control panel you can insert the ads in that and be up and running in no time. If you need support for the ad management mod you can go here and ask for me (bigguy) or jerm and we will help you all we can:

http://www.smfads.com/forums/
 

MCSY1

New Member
Messages
9
Reaction score
0
Points
0
I tried the ad management mod already, and just now tried it again and it didn't work for adding anything to the bottom of the page. It can do every other function, just not adding to the bottom. Even with the modified themes that were posted in one of the threads.

Right now I've figured out how to get a new table up around where I want it and have tried inserting both the Java and PHP ad versions and it comes up blank. I have no idea why. Here's what I have on right now:

Code:
    // Don't show a login box, just a break.
    else
        echo '
    <br />';

echo '
    <table cellspacing="0" cellpadding="3" border="0" align="center" width="95%" class="tborder">
     <tr>
          <td align="center">
<? include("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?>
             </td>
        </tr>
        </table>';
 
Last edited:

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
There is another mod called "Global headers and footers" that adds headers and footers to every page that might help you out a bit. Do you possible have anything blocking the ads at all. ???
 

MCSY1

New Member
Messages
9
Reaction score
0
Points
0
Geoff said:
There is another mod called "Global headers and footers" that adds headers and footers to every page that might help you out a bit.
It works perfectly, thank you so much!!

And no, I didn't have anything blocking it... I tried it in both Firefox and IE and the ad mod never did work outside of the default theme, even when I hand-edited the theme files to be compatible.
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
I could have edited them for you no problem. If you would still like me to so you can use the ad mod either get a hold of me via www.smfhelper.com or www.smfads.com But I am glad you got it working. Are you using SMF 1.0.8 or SMF 1.1 RC3 ??
 

MCSY1

New Member
Messages
9
Reaction score
0
Points
0
The footer mod works easily enough that I'll just keep using it, but if I ever need something different I'll check smfads out again. :)

I'm using SMF 1.1 RC3
 
Last edited:
Status
Not open for further replies.
Top