Page 1 of 1
Google adsense in the end of my news

Posted:
Wed Oct 04, 2006 11:54 pm
Author: febern
Hello!
Finnally i got the permission to use google adsense on my site.
My question is:
Is that possible to use my google adsense html code in the end of my news?
How can i put there my own code? <img>
Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 6:26 am
Author: jwernerny
I put the google adsense code into an IM Portal block. You can create a new block under Admin, IM Portal, Block Management. In there, just give it a name, plop in your html code, and check the "HTML" button.
Look here for an example of the blocks in action:
http://www.snowtire.info/forum/- John
Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 7:33 am
Author: febern
"jwernerny";p="16126" wrote:I put the google adsense code into an IM Portal block. You can create a new block under Admin, IM Portal, Block Management. In there, just give it a name, plop in your html code, and check the "HTML" button.
Look here for an example of the blocks in action:
http://www.snowtire.info/forum/- John
This is not the answer for that i've asked.

Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 7:38 am
Author: Dragonsys
"febern";p="16127" wrote:"jwernerny";p="16126" wrote:I put the google adsense code into an IM Portal block. You can create a new block under Admin, IM Portal, Block Management. In there, just give it a name, plop in your html code, and check the "HTML" button.
Look here for an example of the blocks in action:
http://www.snowtire.info/forum/- John
This is not the answer for that i've asked.

I think you would just have to paste the HTML code at the bottom of each of your posts, manually. You will have to enable HTML in the ACP first though.
Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 7:48 am
Author: BMD
If it's possible to use html in your signature..... use that to add the AdSense code
Just set up an account for adding news items and attach the Sig.
Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 9:51 am
Author: febern
Well guys html is allowed, i just checked.
if i put this code:
Code removed to remove error on page... Michaelo

Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 11:04 am
Author: Dragonsys
Quote Removed to remove error on page Michaelo
Sorry, i forgot that Ad-Sense uses Javascript. Javascript is not allowed in posts. Look at the top of this page and you can see what it does to phpbb. You really should edit that post and put the script into the code bbcode.
There is a way around it however. You can use a .php file which displays the ads, and then use .htaccess on your sever to redirect an img file to the php script.
This does open a path for hackers however.
You might want to search phpbb.com and see if there is a MOD which allows Javascript
Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 11:17 am
Author: febern
"Dragonsys";p="16132" wrote:"febern";p="16131" wrote:Well guys html is allowed, i just checked.
if i put this code:
[code]<_script_><google_ad_client></_script_><_script_ type="text/javascript" src="http]
The result is:
<_script_><google_ad_client></_script_>
<_script_>
</_script_>

Sorry, i forgot that Ad-Sense uses Javascript. Javascript is not allowed in posts. Look at the top of this page and you can see what it does to phpbb. You really should edit that post and put the script into the code bbcode.
There is a way around it however. You can use a .php file which displays the ads, and then use .htaccess on your sever to redirect an img file to the php script.
This does open a path for hackers however.You might want to search phpbb.com and see if there is a MOD which allows Javascript
Hm i would try it. just because im interesting how does it works in action. Can u tell me what should i do exactly, please?
Re: Google adsense in the end of my news

Posted:
Thu Oct 05, 2006 12:28 pm
Author: Dragonsys
Here is the code, you would just have to edit it to fit your needs:
http://www.dragonsys.org/portal/viewtopic.php?t=62

Posted:
Fri Oct 06, 2006 11:18 am
Author: Michaelo
Guys, just a couple of notes... On your site don't use email address in posts, instead use email_name_at_site_name.com, members can simply replace the _at_ with @...
There are literally hundreds of email grabbers searching for email addresses...
Re using script in post and sigs... don't do it, it will leave your site open to hacking scripts...
Fix posted for 1.4.0 and 1.4.1 in security forum
Mike

Posted:
Fri Oct 06, 2006 11:31 am
Author: Dragonsys
"Michaelo";p="16179" wrote:Re using script in post and sigs... don't do it, it will leave your site open to hacking scripts...
Right, which is way I had the Red warning in my post above, that it will open a path for hackers.

Posted:
Fri Oct 06, 2006 12:30 pm
Author: Michaelo
Gotcha! <img>