User Tools

Site Tools


addons:site_stats:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
addons:site_stats:start [2013/01/10 00:28]
geojames
addons:site_stats:start [2015/01/14 23:07] (current)
geojames [Tags With Variables]
Line 48: Line 48:
 These tags have one or more variables that can be passed in to affect the data returned. These tags have one or more variables that can be passed in to affect the data returned.
  
-**{addon author='geo_addons' addon='site_stats' tag='total_views' days='#' listing_type='0,1,2'}** This tag returns the total view count of currently live listings on your site.  The variables you can pass in are:+**{addon author='geo_addons' addon='site_stats' tag='total_views' listing_type='0,1,2'}** This tag returns the total view count of currently live listings on your site.  The variables you can pass in are:
   * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only classified total views will be polled.  If you pass in '2' only auctions will be pulled.  If you do not pass in this variable all listing types will be polled.   * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only classified total views will be polled.  If you pass in '2' only auctions will be pulled.  If you do not pass in this variable all listing types will be polled.
  
Line 60: Line 60:
   * days (optional) - This must be numerical. If any other value type is passed in all registrants logging into the site within the last 24 hours will be returned.  This variable allows you to set the number of days from now into the past to get a login total.  If you set to '10' the software will pull the total number of registrants logging in within the last 10 days.  If this is '0' or no 'days' value is passed in the registrant total in the last 24 hours will be returned.     * days (optional) - This must be numerical. If any other value type is passed in all registrants logging into the site within the last 24 hours will be returned.  This variable allows you to set the number of days from now into the past to get a login total.  If you set to '10' the software will pull the total number of registrants logging in within the last 10 days.  If this is '0' or no 'days' value is passed in the registrant total in the last 24 hours will be returned.  
   * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.   * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.
 +
 +**{addon author='geo_addons' addon='site_stats' tag='number_listings_region_category' region='#' listing_type='0,1,2' category='#'}** This tag returns the total number of listings of a specific listing type from within a category a region or a region and category.  For this tag to return any results the geographic navigation addon must be installed and enabled.  The variable(s) you can pass in are:
 +  * region (required) - This must be numerical. This returns the number of listings within this region and sub-regions.  If you set to '10' the software will pull the total number of listings within region 10 and it's subregions.  If this is '0' or no 'region' value is passed in this tag will return nothing irregardless of the other values passed in.  You can find the region id for any specific region within the GEOGRAPHIC SETUP > REGIONS admin tool.  The region id for a region is the number in parentheses next to that region within the above mentioned admin tool.  
 +  * category (required) - This must be numerical. This returns the number of listings within this category and sub-categories.  If you set to '10' the software will pull the total number of listings within category 10 and it's sub-categories.  If this is '0' or no 'category' value is passed in the category will not be considered in the count returned by this tag.  The category id passed in must be a valid category id for a category within the software.  You can find the category id for any specific category within the CATEGORIES > CATEGORY SETUP admin tool.  The category id for a category is the number in parentheses next to each category name within the above mentioned admin tool.
 +  * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.
 +
 +**{addon author='geo_addons' addon='site_stats' tag='number_listings_category' listing_type='0,1,2' category='#'}** This tag returns the total number of listings of a specific listing type from within a category .  For this tag to return any results the geographic navigation addon must be installed and enabled.  The variable(s) you can pass in are:
 +  * category (required) - This must be numerical. This returns the number of listings within this category and sub-categories.  If you set to '10' the software will pull the total number of listings within category 10 and it's sub-categories.  If this is '0' or no 'category' value is passed in the category will not be considered in the count returned by this tag.  The category id passed in must be a valid category id for a category within the software.  You can find the category id for any specific category within the CATEGORIES > CATEGORY SETUP admin tool.  The category id for a category is the number in parentheses next to each category name within the above mentioned admin tool.
 +  * listing_type (required) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.
  
 ===== Example Usage Within templates ===== ===== Example Usage Within templates =====
Line 65: Line 74:
 <code html> <code html>
 number of registrants in last 24 hours: {addon author='geo_addons' addon='site_stats' tag='number_of_registrants_24hrs'} <br> number of registrants in last 24 hours: {addon author='geo_addons' addon='site_stats' tag='number_of_registrants_24hrs'} <br>
-number of registrants who have placed classifieds in the last 5 days: addon author='geo_addons' addon='site_stats' tag='number_of_users_place_listing_in_last' days='5' listing_type='1'}<br>+number of registrants who have placed classifieds in the last 5 days: {addon author='geo_addons' addon='site_stats' tag='number_of_users_place_listing_in_last' days='5' listing_type='1'}<br>
 number of unique logins the last 12 days: {addon author='geo_addons' addon='site_stats' tag='number_of_logins_last' days='12'}<br> number of unique logins the last 12 days: {addon author='geo_addons' addon='site_stats' tag='number_of_logins_last' days='12'}<br>
 number of registrants in the last 12 hours: {addon author='geo_addons' addon='site_stats' tag='number_of_registrants_last' days='.5'}<br> number of registrants in the last 12 hours: {addon author='geo_addons' addon='site_stats' tag='number_of_registrants_last' days='.5'}<br>
-total views on the site: {addon author='geo_addons' addon='site_stats' tag='total_views'}** +total views on the site: {addon author='geo_addons' addon='site_stats' tag='total_views'}
 </code> </code>
addons/site_stats/start.1357777729.txt.gz · Last modified: 2014/09/25 16:55 (external edit)