Page 1 of 1

New Guy using gcount

Posted: Mon Apr 09, 2012 1:12 am
by marine5683
I installed gcount version 1.2 from the simple scripts directory on bluehost.com. I am relatively a new guy when it comes to a lot of this stuff so over look the dumb questions, please.

Does gcount concatenate digits into a frame and display the counter in the usual fashion??

On the my page with the counter I do not get a counter frame but if I right click on the graphic that is created and chose to 'open image in a new tab' I get text "document.write ('$')" where '$' is a graphic image for example 4.gif.

My website is created using webeasy pro. This program has a visitors counter image and a property for the image for a embedded image path. I have this path set to the the following...http://www.chosinreservoirdet968.org/gc ... page=index
I am using all the defaults, web1 etc. in the graphcount.php file. The only thing changed in this file is the path.

I have also tried the javascript src= approach and the result is the same.
The index.log file is written to and the count is incremented so the log file has the correct permissions.

Everything appears to be correct but I am not getting the counter graphics like I thought I would.

Any assistance would surely be appreciated.

Thanks

Re: New Guy using gcount

Posted: Mon Apr 09, 2012 10:59 am
by Klemen
The "web1" folder is missing inside your "styles" folder hence the images cannot be displayed (don't exist).

Try downloading GCount from the original website and manually installing it (the new 1.3 version is also much more reliable than 1.2):
http://www.phpjunkyard.com/php-graphica ... ounter.php

Re: New Guy using gcount

Posted: Mon Apr 09, 2012 12:13 pm
by marine5683
I downloaded the gcount13 zip file. I copied the new styles subdirectory via binary ftp transfer to my gcount directory on the isp server. The 'web1' sub-directory is included below the 'styles' directory.

Using Notepad I modified the $base_url variable in the gcount.php file and using a ftp ascii transfer I copied the file to my isp server. To save time recompiling the web site I renamed gcount.php to graphcount.php.

Still the same result. There is something simple I am missing here. Below is a copy of the first few lines of the graphcount.php file.

// URL of the folder where script is installed. INCLUDE a "/" at the end!
$base_url = 'http://www.chosinreservoirdet968.org/gcount/';

// Default image style (font)
$default_style = 'web1';

// Default counter image extension
$default_ext = 'gif';

If I knew how to include a screen shot in this reply I would include a copy of the directory from the isp server.

I'm sorry to be such a pain in the you know what with Free sw. I used to work in support of a software package and understand how hard it is to trouble shoot problems remotely.

Re: New Guy using gcount

Posted: Mon Apr 09, 2012 12:34 pm
by marine5683
Okay I think this will work so you can see the screen shot of my directory on my lsp

[url = http://www.chosinreservoirdet968.org/gc ... ost_fm.jpg]

Re: New Guy using gcount

Posted: Mon Apr 09, 2012 7:27 pm
by Klemen
This page gives correct result to me now:
http://www.chosinreservoirdet968.org/gc ... page=index

So all that's left is adding this Javascript to your index page:

Code: Select all

<script language="Javascript" src="http://www.chosinreservoirdet968.org/gcount/graphcount.php?page=index"><!--
//--></script>
Then refresh the index page and it should show the count.

Re: New Guy using gcount

Posted: Mon Apr 09, 2012 8:50 pm
by marine5683
Yes Sir it works as designed.

Apparently there are three different methods of accomplishing this task in Web Easy. The first two methods which were the only two I was award of did not work. The third method of assign a custom script as an object property works just fine.

I also padded some zero's and incremented the counter to reflect all unique visitors since the site has been up. We have a couple of guys that love watching the counter after a new newsletter posting or some other event.

I want to say THANK YOU in capital letters for helping me out with this. I kept doing the same thing over and over again with the same result.

You can consider this problem solved.