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

Next revision
Previous revision
addons:site_stats:start [2012/12/28 23:49]
jpark created
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:
-  * days (optional) - This must be numerical. If any other value type is passed in all listings placed within the last 24hrs will be polled.  This is the allows you to set the number of days from which the total views will be polled.  If you set to '10' the software will pull the total total views for listings placed in the last 10 days, total them and return that total.  If '0' is the days value then all views for currently live listings will be totalled. If no 'days' value is passed in all listing total views for listings placed 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 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 61: 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 66: 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.1356738555.txt.gz · Last modified: 2014/09/25 16:55 (external edit)