Actor Photos
From TMM Wiki
Jump to navigationJump to searchThis article applies to CARMA 1.3.2.2 and greater
CARMA can display a photo of your actors on pages featuring that actor.
Upload Photos
You need to upload photos for your actors before CARMA can display them. Go to Actors Admin, add or edit an actor, upload the photo into the Photo field, and click Save.
carma_actor_photo_name Template Function
See also: carma_actor_photo_name
You can display just the actor photo on any page using the carma_actor_photo_name template function. For example:
Template Code
{carma_list count=500 list="actors" order="name ASC"} {foreach from=$carma_list.actor item=actor} {$actor.name}<br> {if $actor.photo} <img src="view_image.php?actorid={$actor.actorid}&width=300&height=300"><br> {else} [no photo]<br> {/if} <hr> {/foreach}
HTML Code After Smarty Runs
Actor 1<br> <img src="view_image.php?actorid=1&width=300&height=300"><br> <hr> Actor 2<br> <img src="view_image.php?actorid=2&width=300&height=300"><br> <hr> ...
Other Template Functions
All of the following template functions take an photo parameter which displays the actor photo alongside their usual output.