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.”
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.<
'############# 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