Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: ApplianceJunk - elokuu 28, 2011, 09:46:49 IP

Otsikko: SMF 2.0 Default theme index.template.php edits?
Kirjoitti: ApplianceJunk - elokuu 28, 2011, 09:46:49 IP
In the attachment I have to rectangular area marked where i want to place a couple google adsense text link ads in SMF 2.0

I think I would need to place the google adsense code in the index.template.php file.

Could someone tell me the place to insert the code in the index.template.php so they show up correctly?

Thanks,

Otsikko: Re: SMF 2.0 Default theme index.template.php edits?
Kirjoitti: ApplianceJunk - syyskuu 01, 2011, 05:44:02 IP
Anyone?
Otsikko: Re: SMF 2.0 Default theme index.template.php edits?
Kirjoitti: IchBin™ - syyskuu 01, 2011, 08:26:57 IP
AJ, I'd suggest you take a look at firebug (link in my sig). When you use it, it will show you what code is associated with the elements on the page. Then you can go into the code and search for bits of that code to find it. For the top part you need to look for this div and put your code into it.

<div id="top_section">

For the lower box you need to look for this bit of code and put yours inside the div.
<div id="upper_section" class="middletext">

You'll find that it will take a bit of tweaking to get things working the way you want. But firebug makes things much easier to figure out what needs to be tweaked. Youtube has come great tutorials on firebug and how to use it if you need.
Otsikko: Re: SMF 2.0 Default theme index.template.php edits?
Kirjoitti: ApplianceJunk - syyskuu 01, 2011, 08:36:04 IP
I will check out firebug...

I'm I looking for both them div tags in the index.template.php?

Thanks
Otsikko: Re: SMF 2.0 Default theme index.template.php edits?
Kirjoitti: ApplianceJunk - syyskuu 02, 2011, 09:48:31 AP
Firebug is awesome, thanks for the help.