Google adsense in the end of my news

Support for IntegraMOD 140

Moderator: Integra Moderator

Google adsense in the end of my news

PostAuthor: febern » Wed Oct 04, 2006 11:54 pm

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>
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Google adsense in the end of my news

PostAuthor: jwernerny » Thu Oct 05, 2006 6:26 am

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
Last edited by jwernerny on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
jwernerny
Members
Members
 
Posts: 87
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 4:58 am
Cash on hand: 0.00
Location: Fairport, NY

Re: Google adsense in the end of my news

PostAuthor: febern » Thu Oct 05, 2006 7:33 am

"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. :)
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Google adsense in the end of my news

PostAuthor: Dragonsys » Thu Oct 05, 2006 7:38 am

"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.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Google adsense in the end of my news

PostAuthor: BMD » Thu Oct 05, 2006 7:48 am

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.
Last edited by BMD on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

BMD
Members
Members
 
Posts: 84
Likes: 0 post
Liked in: 0 post
Joined: Thu Aug 24, 2006 5:12 am
Cash on hand: 0.00

Re: Google adsense in the end of my news

PostAuthor: febern » Thu Oct 05, 2006 9:51 am

Well guys html is allowed, i just checked.

if i put this code:

Code removed to remove error on page... Michaelo

:-?
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Google adsense in the end of my news

PostAuthor: Dragonsys » Thu Oct 05, 2006 11:04 am

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
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Google adsense in the end of my news

PostAuthor: febern » Thu Oct 05, 2006 11:17 am

"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?
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Google adsense in the end of my news

PostAuthor: Dragonsys » Thu Oct 05, 2006 12:28 pm

Here is the code, you would just have to edit it to fit your needs:
http://www.dragonsys.org/portal/viewtopic.php?t=62
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Michaelo » Fri Oct 06, 2006 11:18 am

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
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: Dragonsys » Fri Oct 06, 2006 11:31 am

"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.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Michaelo » Fri Oct 06, 2006 12:30 pm

Gotcha! <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot]