SiteBar and “Recently Added”, “Recently Visited” and “Most Visited” virtual folders
As I have mentioned in the past, I have moved from Spurl to SiteBar for my bookmark management. I host SiteBar on my own server. Generally, I am very happy with it.
I have quite a hierarchical tree of my links in SiteBar. However, one piece of functionality that I missed a lot in SiteBar compared to Spurl, was the ability to see and click on URLs that I recently visited, or recently added, or that I visit the most often. I had this on my TODO list for eons.
At the same time, after my move to Kaspersky Lab, I wanted to check how easy it is to work with PHP compared to Perl. At the same time, having the abovementioned functionality became very important as well. So I thought: why not combine the two together, and add missing functionality to SiteBar, while exploring PHP a bit further for work purposes?
So here you go: the result of around 1 hour of poking around SiteBar and PHP. Here is how to use it:
- Replace your “/var/www/your-site/sitebar/inc/tree.inc.php with the downloaded from here (of course, it’d make sense to backup your old one, just in case)
- In your SiteBar, go to “Maintain Trees”, then create the following 5 trees (or less, if you don’t need all the functionality; the names and case are important):
- “Recently Added” – for recently added URLs
- “Recently Visited” – for recently visited URLs
- “Most Visited” – for most visited URLs
- “Dead” – for dead links
- “Unverified” – for those links that haven’t been checked
- After you do that, every folder of those is going to display top 30 relevant links in your whole collection
So hopefully someone else also finds it useful. Have fun!
P.S. By the way, yes, my opinion is that PHP is as easy as Perl, and implies a more structured approach and, therefore, a tiny bit easier to read.
Comments(0)