Topic: Google AdSense

I just wanted to check with you guys what you think about me putting up some Google AdSense ads here on punbb.org. A donation pops in now and then and I really appreciate that, but it doesn't really pay the bills. I was planning on placing an ad at the bottom of the pages so that it doesn't interfere. What do you think?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

2

Re: Google AdSense

i dont think it would interfear. i think it would be a good idea and should help u alot.

Re: Google AdSense

i don't have a problem and anything that gets you more money is good smile

4

Re: Google AdSense

I think it would be just fine, and very reasonable.

In fact, what would also be very helpful is a thread on where to place the code on our forums, too. I've seen it at the top of forums, on the side, at the bottom, and maybe below individual posts. But I don't know exactly where to put the code to have it work in those locatons. Probably some other readers here don't know, either.

Re: Google AdSense

Don't have any problems with it.

But their ad are still in HTML soup aren't they ?

6

Re: Google AdSense

As long as you don't care about the site validating or the sitescore rating no problem.

EDIT:

It seems it might be possible to make the ads valid. I will do some digging around.

EDIT 2:

This page has Google ads and validates as XHTML 1 Strict.
http://www.stylegala.com/archive/hicksdesign.htm

Re: Google AdSense

i don't mind them.

just curious but how much do they pay?

~James
FluxBB - Less is more

Re: Google AdSense

I believe it's pay-per-click.

Re: Google AdSense

yeh and it varies alot between $0.02 and about $2.00 per click for me

10

Re: Google AdSense

I've actually have seen adssence screw up pages before. If you screw around with the code too much, then they wont accept it.

My friend had it on his site, and the way he had coded it, whenever someone posted something, adsence would post a blank copy.

Moral of this post: be careful.

Do, or do not.

Re: Google AdSense

google ads are just:

<script type="text/javascript"><!--
google add settings
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

which is not invalid is it?

12

Re: Google AdSense

may that slow your forums pages, for whose test the speed of punbb.
maybe put it in frot page only.

If your people come crazy, you will not need to your mind any more.

Re: Google AdSense

There. The pages still validate as far as I can see.

Edit: Well, this particular page doesn't because of Dr. Jeckyl's signature, but at least there's nothing wrong with the Google stuff smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Google AdSense

Rickard wrote:

Well, this particular page doesn't [validate] because of Dr. Jeckyl's signature:)

Maybe a signature validator and an "Allow only only XHTML-valid signatures" admin option would be appropriate :-)

15 (edited by joshua 2005-01-26 23:49)

Re: Google AdSense

Don't mind at all. 

(Just wondering why sometimes I see Chinese version of "Ads by Google" here)

Re: Google AdSense

That's odd. I guess it improves over time though. I just signed up.

CodeDuck wrote:
Rickard wrote:

Well, this particular page doesn't [validate] because of Dr. Jeckyl's signature:)

Maybe a signature validator and an "Allow only only XHTML-valid signatures" admin option would be appropriate :-)

Yeah. Do you have one I could use? smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Google AdSense

Rickard wrote:

There. The pages still validate as far as I can see.

Edit: Well, this particular page doesn't because of Dr. Jeckyl's signature, but at least there's nothing wrong with the Google stuff smile

sorry. neutral i'll fix it right up.

now, do you actually have to CLICK the ad for it to count or can i middle click it for a new tab/window? or even right click open in new tab/window?

~James
FluxBB - Less is more

18

Re: Google AdSense

well its a great idea go ahead if it may it the long run helped in the development of punbb and to support you as a personne then there is nothing wrong with it

19

Re: Google AdSense

How funny.  Two of the ads are for phpBB -- as if anyone here is going to be interested in them.  (We could still click it though, to transfer their wealth to Rickard.)

Re: Google AdSense

clicking lots won't help rickard, if you click alot of times then it will stop showing paid adverts and also pay less per click (i'm not saying don't click, just don't go crazy)

Re: Google AdSense

I've gotten two e-mails asking me how I "integrated" the ads into the forums, so here's how:

1. I added the following to main.tpl below the footer:

<pun_include "_google.php">

2. I then created a new PHP script called _google.php (the underscore is just there so I don't include it in a release by mistake or something stupid like that). The script contains this code:

<?php

switch ($pun_user['style'])
{
    case 'Cobalt':
        $bg_color = '2A2A2A';
        $link_color = '60A0DC';
        $text_color = 'D4D4D4';
        break;

    case 'Mercury':
        $bg_color = '2A2A2A';
        $link_color = 'F6B620';
        $text_color = 'D4D4D4';
        break;

    case 'Radium':
        $bg_color = '2A2A2A';
        $link_color = '60C860';
        $text_color = 'D4D4D4';
        break;

    case 'Sulfur':
        $bg_color = 'FFFFFF';
        $link_color = '822100';
        $text_color = '333333';
        break;

    case 'Lithium':
        $bg_color = 'FFFFFF';
        $link_color = '638137';
        $text_color = '333333';
        break;

    default:
        $bg_color = 'FFFFFF';
        $link_color = '005CB1';
        $text_color = '333333';
        break;
}

?>
<div style="TEXT-ALIGN: center">
    <script type="text/javascript">
    <!--
        google_ad_client = "pub-5038618221283072";
        google_ad_width = 728;
        google_ad_height = 90;
        google_ad_format = "728x90_as";
        google_ad_channel ="";
        google_ad_type = "text";
        google_color_border = "<?php echo $bg_color ?>";
        google_color_bg = "<?php echo $bg_color ?>";
        google_color_link = "<?php echo $link_color ?>";
        google_color_url = "<?php echo $link_color ?>";
        google_color_text = "<?php echo $text_color ?>";
        google_alternate_color = "<?php echo $bg_color ?>";
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>

Not very pretty, but it works smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

22

Re: Google AdSense

Awesome. Thanks man.

"You start coding. I'll go find out what they want." - Computer Analyst to Programmer

23

Re: Google AdSense

I think it's OK, but do you really believe the this thing will generate a big deal of money?

Re: Google AdSense

No, but anything is better than nothing.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Google AdSense

Bottom is ok,but plz not at the top