| Author |
Topic Search Topic Options
|
nycmovies
Newbie
Joined: 06 June 2006
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
Demon
Mod Builder Group
Mod-n-Skin Moderator
Joined: 26 July 2003
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 July 2006 at 3:54pm |
1. In forum_posts.asp find the following lines:
<tr class="postSeparatorTableRow">
<td colspan="2"></td>
</tr> |
2. Replace them with these lines:
<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.
|
 |
nycmovies
Newbie
Joined: 06 June 2006
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
Demon
Mod Builder Group
Mod-n-Skin Moderator
Joined: 26 July 2003
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
nycmovies
Newbie
Joined: 06 June 2006
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
Demon
Mod Builder Group
Mod-n-Skin Moderator
Joined: 26 July 2003
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 July 2006 at 6:44pm |
Ah, well in that case, read the following...
1. In forum_posts.asp find the following lines:
<tr class="postSeparatorTableRow">
<td colspan="2"></td>
</tr> |
2. Replace them with these lines:
<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.
|
 |
nycmovies
Newbie
Joined: 06 June 2006
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
jsaren
Groupie
Joined: 15 April 2006
Location: China
Status: Offline
Points: 95
|
Post Options
Thanks(0)
Quote Reply
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>
|
 |