Uutiset:

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

Main Menu
Advertisement:

Where to add Google Adsense Code To Top Of Post Page

Aloittaja mechanic, marraskuu 02, 2011, 01:08:47 IP

« edellinen - seuraava »

mechanic

Can some one tell me where and how to add advertising like Adsense to the top of the post page, like the "advertisement"  at the top of this post?

is the file Post.template.php?  if so where can I add the code in the source?

Or is there an advertisement option within the admin panel that will place it??

Thanks in advance

Ricky.

In short, under index.template.php of your forum.. find function

theme_linktree();

Put something like following just above it..
echo '<div align="center"><<<<YOUR AD CODE HERE >>>></div>';


Good Luck !

PS:There are two occurrence of theme_linktree(); in that file, you have to put that code before first occurrence.


Deaks

mechanic I have marked this as solved as you havent gotten back to us, if this is incorrect please let us know also include what you have tried.  Also what SMF version.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: