News:

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

Main Menu

SMF ad placement, like on SimpleMachines.org

Started by ApplianceJunk, September 01, 2011, 05:31:00 PM

Previous topic - Next topic

ApplianceJunk

I'm trying to find out how to place a banner ad in SMF 2.0 default theme, just like they do here at simplemachines.org

I can't seem to find a ad placement mod that has that location, so I'm guessing It will have to be hard coded into a template, but not sure where.

Thanks,

IchBin™

Insert your code right after the template_menu() call in the code.
// Show the menu here, according to the menu sub template.
template_menu();
IchBin™        TinyPortal

ApplianceJunk

Is that line of code in index.template.php or someplace else?

Thanks for the reply



adoborepublic

I'm trying this suggestion but I'm getting a parse error. I tried installing the adsense code at both the default and core theme but got an error message - "Parse error: syntax error, unexpected '<' in index.template.php"

Thanks.

Advertisement: