Carma actors search

From TMM Wiki
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_actors_search

  • Purpose: Search actors that match a certain set of parameters
  • Usage: {carma_actors_search min_content=2 hair="blonde" age="18" content_type='video'}
  • Required: none
  • Optional: var, var_total, tpl start, count, data_only, assign, assign_prefix
  • Search Options: name_like, content_type, all_sites, min_age, max_age, min_content, max_content, name, age, race, hair, body, tits, dick, pubic, gender, has_name, has_age, has_race, has_hair, has_body, has_tits, has_dick, has_pubic, has_gender
  • Default Templates Used: actor_search_results
  • Variables created: $actors, $actors_count, $params

Parameters

(Required parameters in bold)

Parameter Description Possible Values Default Value Example
search_type How to search combined, func, default (see Notes section below for details) default search_type="func"
content_type The type of content to retrieve any, gal, video any content_type="gal"
count Show this many comments Any whole number greater than zero 20 (Shows 5 comments) count="5"
start Don't show the comments lower than this number Any whole number, zero or greater 0 (Shows all comments) start=20
any_site Do not limit the search to the current site 1 None. Limits the search to the current site any_site="1"
section Limit the search to a list of sections comma separated list None. Fetches all sections for this site section="1,5,6,8"
tpl Display comments using this template Any valid template name comments_display (Display comments using the comments_display template) tpl="my_template"
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

Search Variables

  • name_like, content_type, all_sites, min_age, max_age, min_content, max_content, name, age, race, hair, body, tits, dick, pubic, gender
  • has_name, has_age, has_race, has_hair, has_body, has_tits, has_dick, has_pubic, has_gender

The normal parameters such as 'name', 'hair', or 'gender' want an actual value to compare them to

{carma_actors_search hair="blonde"}

However, the has_* parameters just need to be set to 1. When these are set it will just make sure the actor has a value for that parameter.

{carma_actors_search has_race=1}


Additional, if you have custom actor attributes you can search for them the same way you would for the age, hair, or name. For example if you had the custom attribute 'hand_content' you could search by either of these to methods:

{carma_actors_searchhand_size='big'}

or

{carma_actors_search has_hand_size=1}


Description

This function is used to trigger a search for actors. It will search the actor data as well as certain actor content. You can choose if it searches only for content currently active on the current site, any content in CARMA or something in between those two. You can choose to hard code the search query to use or to let the surfer make their own search by passing in the parameters from a search form.


Examples

coming soon