Most Visit Mods
In IndexU, we already have a block that list the most visited links (Top 10). This mods is similar to the default IndexU has, but we include time period like : Most Visited This Week, Most Visited Last Week, Most Visited This Month, Most Visited in 10 Days, etc. We develop this mods based on suggestion by one of our member here, a very interesting idea.
Members can download this mods for FREE here (you’ll need to login first).
Here is the installation step :
- Unzip and upload the most-visit-mods.zip file to your IndexU folder.
- We need to create new table, you can use PHPMyAdmin or using IndexU Advanced Query Box (Admin Panel > Database > Query) in this regards.
Run the following query : - Edit trackclick.php script.
Change :To :
- Everything is ready now, you can the call the block anywhere within your template (Ex : header.html, footer.html).
Here is some examples of block calls :
-
Show the most visited links in last 10 days :
-
Show the most visited links this week :
-
Show the most visited links this week only for new link that added in the last 100 days :
-
Show the most visited links this month with excluded category ID 100, 150 :
-
Show the most visited links this month in category ID 100, 150 only :
About the blocks parameter :
- title : the block title
- max_item : the number of link to show
- days : number of days period
- period : predefined period range (today, yesterday, thisweek, lastweek, thismonth, lastmonth)
- exclude_category : category to exclude (category ID separated by spaces), this will affect to all it subcategories too
- only_category : only show links from specific category (category ID separated by spaces), this will affect to all it subcategories too
- link_age : only include links that added in certain days period
-
Show the most visited links in last 10 days :
The mods is created based on kosmos template, so for other templates you might need to adjust it a little bit.
That's all.
Comments and feedbacks to improve this mods are welcome.
[24.04.08]
We added the 'only_category' parameter in mods based on our member suggestion.
If you already download the mods before this date, please re-download it again.









April 22nd, 2008 at 7:39 am
under PHPMYADMIN
I get a error when i want to view this table.
I got no index has been created.
Do you forgot something...PRIMARY KEY (`link_id`)
Antony
April 22nd, 2008 at 7:40 am
The table is okay here.
It does not need index or primary key since it is used for logs only.
April 22nd, 2008 at 7:50 am
http://www.hotel-discount.com/hotelsvisits.html
Nice job....
April 22nd, 2008 at 7:51 am
Ok, thanks.
Seems you have put the mods on separate static page, nice one.
April 22nd, 2008 at 8:04 am
Just a request for exclude_category
Can you do something when we want to have only one cat ?
Because i have 1500 cats so it will not be easy to have the stat for paris only.
Antony
April 24th, 2008 at 9:48 am
Ok, we have update the mods and added 'only_category' parameter for the blocks as your suggestion.
Please re-download the mods again.