Print Page | Close Window

[MOD] Google Ads Between Posts

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20744
Printed Date: 28 March 2026 at 2:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: [MOD] Google Ads Between Posts
Posted By: nycmovies
Subject: [MOD] Google Ads Between Posts
Date 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.




Replies:
Posted By: Demon
Date 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.


Posted By: nycmovies
Date 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


Posted By: Demon
Date 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.


Posted By: nycmovies
Date 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.


Posted By: Demon
Date 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.


Posted By: nycmovies
Date 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.


Posted By: jsaren
Date 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>



Posted By: Demon
Date Posted: 20 July 2006 at 12:52pm
lol, pretty self-explanitory.

-------------
So Sayith the Demon.


Posted By: Sam-O
Date Posted: 20 November 2006 at 5:20pm
hi just tried this myself and it works great, thing is i want it to appear after every 4 posts? how would i do this?


Posted By: Sam-O
Date Posted: 20 November 2006 at 5:22pm
its ok, i figured it out


Posted By: Ancient_one
Date Posted: 23 November 2006 at 2:23pm
Just upgraded from Ver 7 and very impressed with the changes to the latest forum.  I have paid for the release key and now I need advice (and bear with me please, HTML was a struggle - I am just too old to learn ASP!).
 
I want to include my own Adsense code in the same places as Web_Wiz had their own Adsense advertisments before I used the removal code.  I just want them same size and centred on the header and footer.  If someone can name me the files to modify and the code, I really will be greatful.
 
Kind regards,
 
Bob


-------------
www.Age-Net.co.uk


Posted By: Ancient_one
Date Posted: 02 December 2006 at 5:37pm
Can I bounce this one again please?  My new forum is working well so I don't want to screw anything up by trying to edit the wrong files and I imagine several of you must have already added your own Adsense code.
 
Many thanks,
 
Bob


-------------
www.Age-Net.co.uk


Posted By: WebWiz-Bruce
Date Posted: 02 December 2006 at 7:44pm
Unless you have purchase an licence key to remove the built in ads you can NOT add your own adsense code to the forum pages.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Ancient_one
Date Posted: 04 December 2006 at 9:26am
Sorry boRg.  I should have made it clear that the first thing I did was to pay for the release key, just as I did for the Ver.7 which my forum used previously.  I am a bit old fashioned like that - believe in paying my way and supporting those who make software like this available to us.
 
Kind regards,
 
Bob


-------------
www.Age-Net.co.uk


Posted By: webpromo
Date Posted: 04 December 2006 at 7:20pm
Originally posted by -boRg- -boRg- wrote:

Unless you have purchase an licence key to remove the built in ads you can NOT add your own adsense code to the forum pages.
 
So without purchasing this product can I not add my banners?
That sucks, I might as well just use PHPBB.


Posted By: Ancient_one
Date Posted: 06 December 2006 at 2:43pm

Well I first posted this on the 23rd. of November.  Surely amongst all you ASP experts there is someone who can point the way for me?

Thanks,
 
Bob 


-------------
www.Age-Net.co.uk


Posted By: bims
Date Posted: 07 December 2006 at 12:50am
Originally posted by webpromo webpromo wrote:

 
So without purchasing this product can I not add my banners?
That sucks, I might as well just use PHPBB.


Guess you might as well then... Wink

Common dude, the man's got to eat... not including the hours put into developing and supporting such a solid application. I believe it only costs £59 to remove it.. if you have a busy site and run adsense you can make that back in no time.


Posted By: barnettski
Date Posted: 09 December 2006 at 2:22am
i agree with http://forums.webwiz.net/member_profile.asp?PF=11556&FID=19 - Ancient_one
 
surely instead of removing ads with the license key there must be a way of swapping the ads for our own? If the ads are already built into the system how do we get at them without having to add our own adverts to the header.asp page? Does the unlock key remove the advert code from the asp pages themselves  (as in delete the code directly rather than use an if statement) as I cant find the code.
 
Any help would be greatly appreciated.
 
PLEASE NOTE!! - I have purchased the unlock key long ago and am running multiple (paid for) forums.
 
Thanks in advance.
 
B.


Posted By: ToJaRo
Date Posted: 09 December 2006 at 5:34pm
sam-o, how did you get your ads to repeat every 4th post?  Can you post the code?  I am not sure if you changed the original code in the post or just repeated the google code in the forum_posts.asp and changed the statement.
 
Thanks 


-------------
ToJaRo
http://www.thesoupbone.com - The SoupBone Community


Posted By: MortiOli
Date Posted: 10 December 2006 at 3:17pm
To show the ads after every 4th post, apply the below code, but change the If (intThreadNo-1) MOD 9 = 0 Then to If (intThreadNo-1) MOD 4 = 0 Then
 
Just change the MOD x number to tweak how often the ads show in forum_posts.asp
 
 
Originally posted by Demon Demon wrote:

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.


Posted By: -vm-
Date Posted: 03 January 2007 at 1:10am
Does this mod/script require certain permissions to display the Google ads? I've d-Loaded the Google preview script and still not able to verify the ads are showing up.

Forum Link http://vtvlive.com/x/m/default.asp - Virtual Media

Thanks & Happy New Year
V



-------------
http://www.vtvlive.com - The Virtual Broadcasting Network


Posted By: WebWiz-Bruce
Date Posted: 03 January 2007 at 9:18am
You need to upgrade your forum to version 8.05 you can then simply swap the Google Ads for your own ads on the paid version by editing the new includes/google_adsense_inc.asp file putting in your own Google Adsense publisher number.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: bims
Date Posted: 14 January 2007 at 6:51pm
I'm struggling to understand how the new google include page works. I have the paid version, do i include the page where i would like to include my ads? Is it still possible to display the google ads after x posts?


Posted By: MortiOli
Date Posted: 10 April 2007 at 4:50pm
Following on from the code given by Demon how would I get my custom ads (licence purchased), to show under every last post of a topic?]
 
The following code will make the ads show after every 10th post, but obviously if a topic has less than 10, an advert won't show under the last post.  Any ideas?
 
<% 
If (intThreadNo-10) MOD 10 = 0 Then
     %>

AD CODE
 
<%
End If
%>
 
So basically I'm trying to make the ads show under the first post of each page, and under the last post of each page.



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