Page 1 of 1

Help me please

Posted: Thu Feb 18, 2021 6:30 pm
by giosafat
Script URL:
Version of script: Click Counter ccount212
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello, I am Salvatore, I am writing because I have a little difficulty with the click counter 2.1.2 plugin.

I want to insert a click counter, which keeps track of the number of times a link is visited.

I've downloaded click counter 2.1.2 from the internet in php, everything works, but the click count is in the control panel of the plugin, while I would like to pull out the line that displays the count in order to put it under the controlled link

on a site of mine that doesn't use word press it works fine, but if i try it on a site that uses word press, the click count value is not displayed.

can you help me?

at this link you can see my page where i would like to put the click counter

https://cinemacristiano.altervista.org/radio/

Let me know if you can help me

Thanks

P.S. Sorry for my bad English

Re: Help me please

Posted: Fri Feb 19, 2021 11:22 am
by Klemen
To be able to display click count, you will need to include the required javascript (Admin panel > Instructions > Step 1) in your wordpres header.

I am not familiar with Wordpress so not sure how to do that, but try finding instructions (or ask at a Wordpress forum) how can you insert custom Javascript code into the header.

Re: Help me please

Posted: Mon Feb 22, 2021 8:16 am
by giosafat
Hi,
I have inserted in header.php the code
<script src="http://operedirosa.altervista.org/display.php"></script>
but still nothing is displayed
I want to specify that display.php is contained on the web space of http://operedirosa.altervista.org
while the code that displays the click count is located on another web space this can give problems?

here the code that hosts the click output
<td width="227">
<a href="http://operedirosa.altervista.org/click.php?id=1" target="_blank" title="film" rel="noopener"><input name="button" value="Jesus" style=" color:#FCFCFD; background-color: #1151D3;" type="submit"></a>
</td>

this instead the page that should visualize the number of the clicks
https://cinemacristiano.altervista.org/film-su-gesu/

this is the header.php code of the template where I inserted the script
<html <?php language_attributes(); ?>>

<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<script src="http://operedirosa.altervista.org/display.php"></script>
<?php wp_head(); ?>
</head>

I can not get the spider out of the hole, I feel discouraged
can you help me?
Thanks

Re: Help me please

Posted: Mon Feb 22, 2021 4:48 pm
by Klemen
If I look at

Code: Select all

https://cinemacristiano.altervista.org/film-su-gesu/
I see it doesn't work because you call

Code: Select all

https://operedirosa.altervista.org/display.php
But this URL doesn't work - it works with http:// but not with https://

But you can't include http on https page because it will show an error.