The "Top Link" Link With The Most Clicks!

Everything related to CCount PHP click counter
Post Reply
acilegnaj
Posts: 16
Joined: Sat Jan 03, 2015 10:42 pm

The "Top Link" Link With The Most Clicks!

Post by acilegnaj »

Can you add the link with the most clicks to the version 2.01. This was not carried over. You can send me the corrected file and I can insert it myself.
Klemen
Site Admin
Posts: 10114
Joined: Fri Feb 11, 2005 4:04 pm

Re: The "Top Link" Link With The Most Clicks!

Post by Klemen »

Click on the "Click (Total)" table column and links will be sorted by number of clicks :wink:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
acilegnaj
Posts: 16
Joined: Sat Jan 03, 2015 10:42 pm

Re: The "Top Link" Link With The Most Clicks!

Post by acilegnaj »

Yes, thanks for the reply. Works great.
Mike63740
Posts: 2
Joined: Mon Jan 05, 2015 12:51 pm

Re: The "Top Link" Link With The Most Clicks!

Post by Mike63740 »

Ccount 2.0.2 is a great script. I searched hard for a script like this. I have been using it since December, 2014.

Is it still not possible to have Ccount to sort the links by Clicks (total) automatically, rather than the Added Date of the link?

Every time I log into Ccount, it automatically sort links by the date they were added. I want it to sort links by Clicks (total) automatically when logging in.

Thanks.
Open-source software has been changing lives since 1998.
Klemen
Site Admin
Posts: 10114
Joined: Fri Feb 11, 2005 4:04 pm

Re: The "Top Link" Link With The Most Clicks!

Post by Klemen »

The tablesorter plugin is very flexible and allows this.

Open file "admin/admin_header.inc.php" in an editor and find line:

Code: Select all

theme : "bootstrap",
Just below that line add

Code: Select all

sortList: [[2,0]] ,
The first digit is column index (starting from 0, so 2 actually means "sort by 3rd column").

The second digit meaning is 0 = ascending, 1 = descending

So if you wanted to automatically sort by unique clicks (4th column) in descending order you would use

Code: Select all

sortList: [[3,1]] ,
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Mike63740
Posts: 2
Joined: Mon Jan 05, 2015 12:51 pm

Re: The "Top Link" Link With The Most Clicks!

Post by Mike63740 »

Perfect!

Code: Select all

SortList: [[2,1]], 
works just fine.

I love this script and hope support continue. I will play my part in supporting this script, because it is free and very valuable.

Thank you. :)
Open-source software has been changing lives since 1998.
Post Reply