Welcome to WebmasterWorld Guest from 184.108.40.206
2)So I run a game site, and I want to have php based comment system under every game or other content. I want it to be suited for all audiances but at the same time it wont require registering. So I need a good language filter. Considering that and the AdSense ads, do you think i should filter obscene words $%#&# or just discard every comment suspected of being offensive.
3)All the comments can't be displayed on one site, cause with time it might clough up, so it needs some choose-a-page links. But like I said the comments are displayed under every content n ads, so do you think a ...game1.php?page=2 should open open a new blank page with only the comments or the whole page with content and ads thus possibly reducing the CTR (P.S. I'd rather not use frames)
4)Remind me pls the figuers of hom much ads you can have on one page. As I recall it was something like 3banner and 1link type ad but I'm not sure.
blah blah php code
// adsense code
continue php code
or if it really needs to be dynamically inserted,
rather than line by line...
And as long as you're not modifying the adsense code in any way (ie, you're just pasting it straight in to the page), there's no problem with doing this.
I used a new line for each line of the adsense scipt cause i think looks much clearer and is much easier to edit (i.e.colors) but I guess it really doesnt need that many echo's XD
But yeah, thx for the response :)
FYI, if the content within the echo statement contains no PHP code, you should use single quotes instead of double quotes. With single quotes, PHP just outputs the content between the quotes, with double quotes, PHP evaluates the content between the quotes, parsing it for PHP code, which is slower.
First of all, as already pointed out the use of double quotes puts you at risk of having php changing something inside the script, which is against TOS and might break something.
I prefer to treat the copied js as a "black box" thing, without changing anything inside it.
If I have different variants of the ads (colors, channels, format etc.), I save the copied js in several small files and then include them in my php with include 'filename.php'.
In some cases, I found it useful to have a full library of js snippets, select the correct one via software and then include $filename.
I was curious if removing this would jeopardize me in any way? I fail to see how it could be relevant, but I dont really want to find myself banned over something insignificant.