Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Google adsense in topic.asp
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

kolucoms6
Average Member

845 Posts

Posted - 24 May 2007 :  14:33:12  Show Profile  Reply with Quote
www.ulcindia.com/topic.txt<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 24 May 2007 :  15:49:52  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 24 May 2007 :  17:07:06  Show Profile  Reply with Quote

Awesome...

Great and working perfectly..<
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 24 May 2007 :  18:52:05  Show Profile  Visit bobby131313's Homepage  Reply with Quote


How come when I copy and paste from that code block I get no whitespace and linebreaks?

<

Switch the order of your title tags
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 24 May 2007 :  19:57:20  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
If that happens to me I paste it into Wordpad and save it. It usually prevents the problem.

If that doesn't work, go here.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 24 May 2007 :  20:51:57  Show Profile  Reply with Quote

Is it possible to show ads in between 1st and 2nd reply and then between 5th and 6th and then again between 9th and 10th and like wise ??
<
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 24 May 2007 :  21:14:18  Show Profile  Visit bobby131313's Homepage  Reply with Quote

Thanks Podge!

<

Switch the order of your title tags
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 May 2007 :  04:29:15  Show Profile  Reply with Quote
quote:
Originally posted by bobby131313
How come when I copy and paste from that code block I get no whitespace and linebreaks?
Because Podge forgot to include the code tag within the scrollcode tag

Like so:

[scrollcode][code]code[/code][scrollcode]

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 25 May 2007 :  04:57:53  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
I assumed that [scrollcode] and [code] were the same apart from the scrolling bit.

<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 25 May 2007 :  06:20:17  Show Profile  Visit HuwR's Homepage  Reply with Quote
quote:
Originally posted by Podge

I assumed that [scrollcode] and [code] were the same apart from the scrolling bit.




yes, I thought I had fixed that, will take a look in the sourcecode<
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 25 May 2007 :  09:44:24  Show Profile  Visit bobby131313's Homepage  Reply with Quote
quote:
Because Podge forgot to include the code tag within the scrollcode tag





<

Switch the order of your title tags
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 25 May 2007 :  10:31:09  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Bring it on!

<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 25 May 2007 :  10:55:11  Show Profile  Visit bobby131313's Homepage  Reply with Quote


Hee hee...



<

Switch the order of your title tags
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 26 May 2007 :  11:25:26  Show Profile  Visit MarkJH's Homepage  Reply with Quote
Looking good! Though, how would I make this work only when at least one reply has been made to the topic? I don't want it to show a one post topic with an advert underneath.<

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 26 May 2007 :  11:48:02  Show Profile  Visit MarkJH's Homepage  Reply with Quote
I must be getting clever in my old age...

In Podge's code, look for this:

	'############# Google Adsense #############
	if bolShowAdd = true then
 		adsense(CColor)    	'Show the Google ad
   		bolShowAdd = false	'Turn off ads shown further down the page. You can change this to true if needed.
	end if


To make the ads only visible to guests, add the mlev = 0 bit below to the code. To only display an ad after a topic has been replied to, add the iReplyCount <> "" bit below to the code. With both parts added, your code should look like this:

	'############# Google Adsense #############
	if bolShowAdd = true and mlev = 0 and iReplyCount <> "" then
 		adsense(CColor)    	'Show the Google ad
   		bolShowAdd = false	'Turn off ads shown further down the page. You can change this to true if needed.
	end if


Hope this helps somebody. <

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/

Edited by - MarkJH on 26 May 2007 11:49:26
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07