Print Page | Close Window

Placing Google Ads between posts

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=17565
Printed Date: 13 April 2026 at 9:53pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Placing Google Ads between posts
Posted By: midnight24
Subject: Placing Google Ads between posts
Date Posted: 16 December 2005 at 10:13am

I have noticed on several forums that google ads are placed in between posts - for example, when you click on a topic - they show the first 2 or 3 posts, then there is a google ad, then posts 4, 5, etc.

Any help would be great.  Thanks.
 
example : http://www.sherdog.net/forums/showthread.php?threadid=315770 - http://www.sherdog.net/forums/showthread.php?threadid=315770



Replies:
Posted By: dpyers
Date Posted: 16 December 2005 at 9:14pm
I think you'd have more luck posting this as a request in the mods forum.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: rx7tt
Date Posted: 19 December 2005 at 1:54pm
Midnight24,

Here is the simple way I did it on my forum in version 7.9. With an unmodified forum_posts.asp change line 864 from:

        Response.Write(vbCrLf & "        <td colspan=""2"" align=""center"" background=""" & strTablePostsBgImage & """ bgcolor=""" & strTablePostsSeporatorColour & """><span style=""font-size: 2px;"">&nbsp;</span></td>")

to:

        Response.Write(vbCrLf & "        <td colspan=""2"" align=""center"" background=""" & strTablePostsBgImage & """ bgcolor=""" & strTablePostsSeporatorColour & """>")
        If intRecordLoopCounter = 3 Then ' Change the 3 to the number of records you want the add to display after

        ' *****************************
        ' Your add code here
        ' *****************************

        Else
          Response.Write("<span style=""font-size: 2px;"">&nbsp;</span>")
        End If
        Response.Write("</td>")

You can also add multiple adds in one page by adding an 'Else If' in the same way.

Let me know if you have any questions.
-Scott


-------------
http://www.mobilegear.biz - Mobile Gear.biz -Ringtones, games, videos, links and more...
http://www.mobilegear.biz/forum/ - Wireless Forums



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net