This is my first attempt at an add-on, so please be gentle with me. I'm pretty new at php so a lot of the code is modified from other examples and the core files so access methods may be a bit sporadic. (thanks goes out to Ryan C. Bonham for his sitemap addon that I used as a template for the listings)
The addon makes various statistics and lists (see below) available from within templates that you can use on your web pages.
{addon_statistics_users} retreives the number of users.
{addon_statistics_agents} retreives the number of agents.
{addon_statistics_listings} retreives the number of total listings.
{addon_statistics_featured} retreives the number of featured listings.
{addon_statistics_mostviews} retreives the most viewed listing (link and number of views).
{addon_statistics_listviews} retreives a list of all listings (link and number of views).
{addon_statistics_listfeatured} retreives a list of all featured listings (link and number of views).
Bookmarks