Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Placing Google Ads between posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Placing Google Ads between posts

 Post Reply Post Reply
Author
midnight24 View Drop Down
Newbie
Newbie


Joined: 19 July 2005
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote midnight24 Quote  Post ReplyReply Direct Link To This Post Topic: Placing Google Ads between posts
    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.
 
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
rx7tt View Drop Down
Groupie
Groupie


Joined: 25 October 2004
Location: United States
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote rx7tt Quote  Post ReplyReply Direct Link To This Post 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
Mobile Gear.biz-Ringtones, games, videos, links and more...
Wireless Forums
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.