Page 1 of 1

counter (version 1.1) not working in Chrome only

Posted: Sun Dec 17, 2023 2:35 pm
by Sematary
Script URL: https://doomwadstation.net/doom3tc/ccount/
Version of script: 1.1
Hosting company: midphase.com
URL of phpinfo.php: NA
URL of session_test.php: NA
What terms did you try when SEARCHING for a solution: Chrome

Write your message below:
I thought there was a problem with the counter but it turns out it only doesn't work in Chrome.
It is a very old version but is obviously functional.
I did download the newer version but am reticent to install since 1. I don't know if it will resolve the issue and 2. I don't want to lose the counts I already have.

Here is an example: https://www.doomwadstation.net/bloodwor ... works.html
Checked it out in Edge and Firefox and the counter works fine but in Chrome it doesn't display the number of clicks nor does the download work.

I'm not exactly what you would call knowledgeable when it comes to php (I'm not).
But, since Chrome is the most used browser it seems that I either have to dump the counter or get it to work.
Is there a change I can make to the current code to make it function in Chrome or would I need to update to newer code? And, can I update without having to start from scratch?

Re: counter (version 1.1) not working in Chrome only

Posted: Sun Dec 17, 2023 3:11 pm
by Klemen
The problem most likely is your website is server over https:// but all the links to the counter (including display.php) are over http://

Change http:// to https:// in all the counter links and try again.

Re: counter (version 1.1) not working in Chrome only

Posted: Sun Dec 17, 2023 3:37 pm
by Sematary
Maybe I'm doing something wrong here but I tried this.
Edited clicks.txt to reflect https instead of http (just tried this with one download) - https://www.doomwadstation.net/bloodwor ... works.html
that didn't work.
Edited the actual link in the web page to https://www.doomwadstation.net/doom3tc/ ... .php?id=23
Still only displays normally in anything but Chrome. However, the download itself works, I'm just not seeing the actual count in Chrome but it still displays in other browsers. Very confusing

Re: counter (version 1.1) not working in Chrome only

Posted: Sun Dec 17, 2023 6:22 pm
by Sematary
Well, at least the downloads work again. Thankyou for that. Unfortunately it seems that because the ability to display the number of times a download has been done depends on Java and Java is not supported in Chrome any longer, that functionality is gone but at least I can see it in other browsers. My real concern was the inability to download in Chrome so I'm glad you helped me solve that. :-)

Re: counter (version 1.1) not working in Chrome only

Posted: Sun Dec 17, 2023 6:56 pm
by Sematary
Forgot about this code at the top of the page. made the change https vs http and all is good in life again. lol
<script language="Javascript" src="https://www.doomwadstation.net/doom3tc/ ... isplay.php">
Thankyou so much