Carma most viewed

From TMM Wiki
Revision as of 12:04, 17 December 2008 by Trinidadr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
CARMA
  Template Functions
CARMA Template Functions
carma_actor_photo_name
carma_comments_display
carma_comments_form
carma_count
carma_favorite
carma_gal_custom
carma_get_extended
carma_list
carma_list_favorites
carma_list_gals
carma_list_third_party_content
carma_list_videos
carma_login_log
carma_most_viewed
carma_newest
carma_news
carma_poll
carma_retrieve_sections
carma_search
carma_actors_search
carma_show_gal
carma_show_video
carma_top_actors
carma_top_rated
carma_upcoming
print_page_numbers
Template Function Aliases
carma_comment_display
carma_display_comment
carma_display_comments
carma_extended
carma_extended_data
carma_get_extended_data
carma_list_all
Common Parameters
assign
assign_prefix
count
data_only
display_on_assign
start
tpl

carma_most_viewed

  • Purpose: Display the most viewed content
  • Usage: {carma_most_viewed count=5 section=1 type=any}
  • Required Parameters: none
  • Optional Parameters: count, section, site, type, tpl, easy_keys, data_only, assign_prefix, assign, display_on_assign, actors, locations, categories, groups, memberid
  • Default Templates Used: most_viewed_items
  • Variables created: $carma_most_viewed_content, $params

Parameters

(Required parameters in bold)

Parameter Description Possible Values Default Value Example
count Show this many comments Any whole number greater than zero 5 (Shows 5 comments) count=20
start Don't show the comments lower than this number Any whole number, zero or greater 0 (Shows all comments) start=20
section Get items from these sections A comma-separated list of section I.Ds. or a single section I.D. None. Use all sections section="123"
site Display content from the site with this site I.D. A valid site I.D. None. Displays content from all sites site="123"
type Which type of items to display gal, video, any any type="gal"
memberid Calculate most viewed content using only the current member's views 1 None. Uses all members' views memberid="1"
tpl Display comments using this template Any valid template name Comments_display (Display comments using the comments_display template) tpl="my_template"
easy_keys Use continuous keys instead of keys based on the gallery's id in the $carma_content array 1 None. Does not use continuous keys easy_keys="1"
data_only Put the comments in an array 1 None. Displays comments data_only=1
assign_prefix Prefix output variables with this word. (Click link for details) Any valid Smarty variable name None. (No prefix is used) assign_prefix="myvar"
assign Name of the Smarty variable that stores the output Any valid Smarty variable name None. Output is displayed, not stored assign="my_var"
display_on_assign Display comments even when the assign parameter (above) is used 1 None If assign is used, no comments are displayed display_on_assign="1"
actors Get information about actors 1 None. Does not get this information actors="1"
locations Get information about locations 1 None. Does not get this information locations="1"
categories Get information about categories 1 None. Does not get this information categories="1"
groups Get information about groups 1 None. Does not get this information groups="1"