Re: Google AdSense

Tobi wrote:
Rickard wrote:

Well, it started out alright, but these last few days, the amount of clicks has been very low sad

That may be because 90% of the ads shown are in swedish. smile

Most likely, yes. However, I have yet to discover a solution to that problem.

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

Re: Google AdSense

You could ask people to click a link on it once in a while because I think the adds only work if there clicked?
Sorry I could be wrong the adds on my site never make more than 3bux a week and only cos I click them hmm
but yea perhaps just above the footer would get more hits?

Free games/arcade at dlngle.com

Re: Google AdSense

you CANNOT ask people to click links, google will shoot you tongue

Re: Google AdSense

They shoot you for clicking on your own ads too tongue

55

Re: Google AdSense

Hey is there any way to automate the colors going into the AdSense ad? It becomes tiresome to have to update the colors in the Google script everytime I add a new style to my installation.

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

56 (edited by Limber 2006-04-22 10:09)

Re: Google AdSense

Connorhd wrote:

google will shoot you tongue

OT: Reminds me so much of this
http://www.limber.se/arla_haren.jpg
big_smile

(For you non-swedish guys, it's a spoof of the back side of Arla (dairy producers in Sweden) milk cartons (with often informative texts about milk farmers or whatever)).

It says:

Milk
Amount of fat 3%

1. The Arla hare

Did you know that if you don't drink your milk every day, the Arla hare will come and shoot you in the head or sometimes in the stomach.

Edit: missed a paranthesis. omg it's like LISP up there

Aftonbörsens skapare. Var med och starta något roligt och stort du med!

57

Re: Google AdSense

Mako,

This is what I use, let's call it myads.php and place it in /include/user. Then in /include/template/main.tpl add a line under footer:  <pun_include "myads.php">

<?php

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

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

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

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

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

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

?>
<div style="TEXT-ALIGN: center">
    <script type="text/javascript">
    <!--
    google_ad_client = "pub-1234567890123456";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    google_color_border = "<?php echo $bd_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>

Just add a switch line for each new style you add to your site.

58

Re: Google AdSense

Sorry I wasn't clear enough. I'm already using that script. It's the exact same script that Rickard made. My question is that I am wonderg if it's possible to make the colors automated. I have a _ton_ of smilies installed, and it becomes really tiresome to add a new switch for every one, not to mention the amount of unnecessary code that gets in there.

hcgtv wrote:

Mako,

This is what I use, let's call it myads.php and place it in /include/user. Then in /include/template/main.tpl add a line under footer:  <pun_include "myads.php">

<?php

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

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

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

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

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

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

?>
<div style="TEXT-ALIGN: center">
    <script type="text/javascript">
    <!--
    google_ad_client = "pub-1234567890123456";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    google_color_border = "<?php echo $bd_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>

Just add a switch line for each new style you add to your site.

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

59 (edited by hcgtv 2006-04-22 22:28)

Re: Google AdSense

Mako wrote:

Sorry I wasn't clear enough. I'm already using that script. It's the exact same script that Rickard made.

It's not really the exact same script, I made some changes to it.

Hope you find a solution.

Re: Google AdSense

How can I get an ad in the header? Everytime I attempt to ad it to the header include it gets put above the start of the html tag..?

61

Re: Google AdSense

hehe the header.php file where you need to put it

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

62

Re: Google AdSense

?>
<div id="advertisement" class="block">
    <h2><span><?php echo $lang_common['Advertisement'] ?></span></h2>
    <div class="box">
        <div class="inbox">
            <div><p><center>put your stuff here.</center></p></div>
        </div>
    </div>
</div>
<?php

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Google AdSense

quaker wrote:

?>
<div id="advertisement" class="block">
    <h2><span><?php echo $lang_common['Advertisement'] ?></span></h2>
    <div class="box">
        <div class="inbox">
            <div><p><center>put your stuff here.</center></p></div>
        </div>
    </div>
</div>
<?php

Thanks for the help, how would I put this in the header though. either above or below the h1 and p tag. I can reposition it with css.

Re: Google AdSense

Old thread..But how come there are no ads anymore?

If you do what you've always done, you'll get what you've always gotten.

Re: Google AdSense

Papillon wrote:

Old thread..But how come there are no ads anymore?

On this board? They didn't yield enough revenue to be worth the eyesore they added, so Rickard removed them.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Google AdSense

pogenwurst wrote:

On this board? They didn't yield enough revenue to be worth the eyesore they added, so Rickard removed them.

Oh okay.

If you do what you've always done, you'll get what you've always gotten.