Counter background

Post your Click counter digestion problems here
Post Reply
nsanyi23
Posts: 3
Joined: Tue May 03, 2011 8:54 pm

Counter background

Post by nsanyi23 »

Script URL: http://best-pariuri-online.com/counter/ ... &style=fdb
Version of script: 1.2
Hosting company: MX hosting
URL of phpinfo.php: http://best-pariuri-online.com/Bwin.php
URL of session_test.php: http://best-pariuri-online.com/Bwin.php
What terms did you try when SEARCHING for a solution: counter background, counter back

Write your message below: Hello I want to implement in the "graphcount.php" an unic background in a position for my counter!

This is my html code that I want to include in script: "<div align="center" style="background-image: url(/barca-counter.png); height: 120px; width: 120px;"><br><br><br><br><br>"

Thanks!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Counter background

Post by Henrie »

Hello nsanyi23,

You should try the following

Code: Select all

<div align="center" style="background-image: url(barca-counter.png); height: 121px; width: 128px;">
<br><br><br><br>
<script language="Javascript" src="graphcount.php?page=test"><!--
//--></script>
</div>
And don't forget to read the readme file to change the setting right in the graphcount.php file

offcourse change the page=test to the file name you choose for the file which stores the count.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
nsanyi23
Posts: 3
Joined: Tue May 03, 2011 8:54 pm

Re: Counter background

Post by nsanyi23 »

Thanks for reply, but I want to include this code in graphcount.php!
In this way I want to reduce the code , so I want to use only the script to show my conter with the background!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Counter background

Post by Henrie »

Ah, than i misunderstood you.

Than this is what you want:

In graphcount.php Version: 1.1 find:

Code: Select all

    /* Print out Javascript code and exit */
    $len = strlen($count);
    for ($i=0;$i<$len;$i++) {
        echo 'document.write(\'<img src="'.$base_url . $style_dir . substr($count,$i,1) . '.' . $ext .'" border="0">\');';
    }
    exit();
and replace it with:

Code: Select all

    /* Print out Javascript code and exit */
    $len = strlen($count);
    echo 'document.write(\'<div style="background-image: url(barca-counter.png); width: 128px; height: 121px; text-align:center;"><span style="line-height:70px">&nbsp;</span><br />\');';
    for ($i=0;$i<$len;$i++) {
        echo 'document.write(\'<img src="'.$base_url . $style_dir . substr($count,$i,1) . '.' . $ext .'" style="border:none;">\');';
    }
    echo 'document.write(\'</div>\');';
    exit();
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
nsanyi23
Posts: 3
Joined: Tue May 03, 2011 8:54 pm

Re: Counter background

Post by nsanyi23 »

Thanks a lot Henrie! :wink:
Post Reply