PDA

View Full Version : Adding Adsense - differently..


dpakman91
07-18-2005, 04:09 PM
i searched and found the post on how to add adsense or similar conextual ads to the footer or header, but what if i want to add it to the right or left of every page? which file would i edit and how would i go about doing that?

trailblaza
07-18-2005, 04:55 PM
it's all in how you code your header & footer templates...

like for it to show up on the right.. you'd have to do this with tables by enclosing your link directory in the left <td> cell of a table... and the adsense in the right <td> cell

lj.

dpakman91
07-18-2005, 06:13 PM
Content visible to registered users only.

alright, that doens't sound bad. in order to do that, do i need to modify header, footer, or main.css?

trailblaza
07-18-2005, 07:20 PM
for sure, you'll have to edit both the header & footer... you shouldn't have to edit any CSS

lj.

dpakman91
07-18-2005, 07:39 PM
Content visible to registered users only.

ok thanks, i hate to be a pain, but could you give me an example of what code i might put in a left <td>, so then i can make another for my ad code?

David
07-18-2005, 07:43 PM
I assume you want something like this:
http://www.dance-forums.com/directory/
I'll take a look at the code...one moment

David
07-18-2005, 07:46 PM
Here is my code for header.tpl

{code removed}

dpakman91
07-18-2005, 08:19 PM
hmm, for some reason mine is looking like this

David
07-18-2005, 09:12 PM
It appears to me that you have the align="right" attribute both on the td and the table