Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - [MOD] Google Ads Between Posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[MOD] Google Ads Between Posts

 Post Reply Post Reply Page  123 4>
Author
nycmovies View Drop Down
Newbie
Newbie


Joined: 06 June 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote nycmovies Quote  Post ReplyReply Direct Link To This Post Topic: [MOD] Google Ads Between Posts
    Posted: 19 July 2006 at 3:46pm

How can I add Google ads between the 1st and 2nd posts of each page, (in the blue divider area, not under the signature area of the 1st post) and then possibly repeat every 10 posts, so between the 11th and 12th posts and so on? Any help would be great, thanks.



Edited by Demon - 19 July 2006 at 3:55pm
Back to Top
Demon View Drop Down
Mod Builder Group
Mod Builder Group
Avatar
Mod-n-Skin Moderator

Joined: 26 July 2003
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Demon Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 3:54pm
1. In forum_posts.asp find the following lines:
Quote <tr class="postSeparatorTableRow">
<td colspan="2"></td>
</tr>

2. Replace them with these lines:
Quote <tr class="postSeparatorTableRow">
<td colspan="2"><%
If (intThreadNo-1) MOD 9 = 0 Then
     Response.Write(strPostAds)
End If
%></td>
</tr>

3.Save file and upload to server.

PS: I cant post how to remove the ads from the signature section of the first post because that would be advising the violation of the shareware license agreement.
So Sayith the Demon.
Back to Top
nycmovies View Drop Down
Newbie
Newbie


Joined: 06 June 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote nycmovies Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 4:11pm
I paid for the license already, so I don't need to remove any ads. 
 
Another question, where does the google code go above?  Thanks for your help
Back to Top
Demon View Drop Down
Mod Builder Group
Mod Builder Group
Avatar
Mod-n-Skin Moderator

Joined: 26 July 2003
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Demon Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 5:13pm
What google code? Are you talking about adding your own google adsense banner in there?
So Sayith the Demon.
Back to Top
nycmovies View Drop Down
Newbie
Newbie


Joined: 06 June 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote nycmovies Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 6:37pm
Yes, I am trying to add my own google adsense in between the 1st & 2nd posts (in the blue divider) on each page.
Back to Top
Demon View Drop Down
Mod Builder Group
Mod Builder Group
Avatar
Mod-n-Skin Moderator

Joined: 26 July 2003
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Demon Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 6:44pm
Ah, well in that case, read the following...

1. In forum_posts.asp find the following lines:
Quote <tr class="postSeparatorTableRow">
<td colspan="2"></td>
</tr>

2. Replace them with these lines:
Quote <tr class="postSeparatorTableRow">
<td colspan="2"><%
If (intThreadNo-1) MOD 9 = 0 Then
     %>
Your GoogleAd Code Goes Here
<%
End If
%></td>
</tr>

3.Save file and upload to server.
So Sayith the Demon.
Back to Top
nycmovies View Drop Down
Newbie
Newbie


Joined: 06 June 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote nycmovies Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 7:59pm
Thanks Demon, it works perfectly.  You're the man.  My final question is how can I center the ad in the table?  Right now it's aligned left.  Thanks again.
 

*NEVERMIND - figured it out, thanks again for the help.


Edited by nycmovies - 19 July 2006 at 8:09pm
Back to Top
jsaren View Drop Down
Groupie
Groupie
Avatar

Joined: 15 April 2006
Location: China
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote jsaren Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2006 at 12:22pm

<tr class="postSeparatorTableRow">
<td colspan="2"><%
If (intThreadNo-1) MOD 9 = 0 Then
     %> <center>
Your GoogleAd Code Goes Here </center>
<%
End If
%></td>
</tr>

Back to Top
 Post Reply Post Reply Page  123 4>

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.