News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Adding Google ads UNDER the first post

Started by spiros, April 01, 2005, 10:54:48 AM

Previous topic - Next topic

spiros

Unless your site is extremely popular (i.e. a portal) Google will NOT crawl new posts immediately. It might even take days or weeks.

Dinagyang

Hehe thanks for this code. I have it for vbulletin as well.

brucebeh


vdubbia

I got the code to work but it only put the ad under the first post and put a 'blank' ad under all the other posts.

Can you clarify how to remove that blank ad under the remaining posts on the boards?

mennou

thanks for te code.. it works like a baby 

hartiberlin

Quote from: wowzer on August 13, 2005, 10:15:07 AM
I got the code to work but it only put the ad under the first post and put a 'blank' ad under all the other posts.

Can you clarify how to remove that blank ad under the remaining posts on the boards?

I have the same problem, that I can not control,
how many ads are delivered in a thread.

Where can one set it this way, that every 5 postings an ad will
be displayed in between ?

Thanks.

Regards, Stefan.

vdubbia

Can someone let us know how to remove the blank ad space that is created under every post after the 1st one with this script?

aabce

Quote from: spiros on May 11, 2005, 04:34:01 PM
Somebody asked me what code I used in order to make a google ad appear on top of the forum, as a message in a board [nofollow] .

Here is the code (default theme, SMF 1.0). I guess you should be able to work out what changes you should make to your own.

// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">



<div class="tborder">
<table summary="English Greek translation forum, help with French, German, Spanish, Italians language questions and terminology as well as technical help with common computer problems and translation memory tools like Trados, Deja Vu and Wordfast" border="0" width="100%" cellspacing="1" cellpadding="5" height="72">
<tr>
<td  colspan="4" class="catbg2" height="18"><img src="http://www.translatum.gr/forum/Themes/default/images/collapse.gif" border="0" />&nbsp;<u><font size="2">Sponsored translation links</font></u>
</td>
</tr>
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="middle"><img src="http://www.translatum.gr/forum/Themes/default/images/off.gif" border="0" /></td>
<td align="left" valign="middle">
<script type="text/javascript"><!--
google_ad_client = "pub-6539986036551354";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_channel ="9841008541";
google_color_border = "EFEFEF";
google_color_bg = "EFEFEF";
google_color_link = "000000";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>


<td valign="middle" align="center" style="width: 12ex; background-color: #DFDFDF">
<p align="center"><font size="1">1 Post in<br>1 Topic</font></td>
<td align="left" width="22%">
<font size="1">Last Post on April 04, 2005,<br>12:00:00 PM<br>in <u>English dictionary</u> by <u>Google</u></font></td>

</tr>
</table>
</div>';
}
function template_main_below()



what files i should edit? iuse SMF 1.1 Beta 3 Public.

please post real source code

Neol

Spiro, can you make the adds appear like normal posts and users? I have seen a phpbb forum that have google adds in that way. ::)

spiros

Quote from: olti on September 08, 2005, 05:06:39 PM
Spiro, can you make the adds appear like normal posts and users? I have seen a phpbb forum that have google adds in that way. ::)

Hello Olti,

I am not sure exactly what you want it to look like. Please provide a link.

Advertisement: