Difference between revisions of "Actor Photos"

From TMM Wiki
Jump to navigationJump to search
m
Line 1: Line 1:
{{Not Finished}} [[Category:DHNH]]
 
 
{{CARMA1 Manual
 
{{CARMA1 Manual
 
| show_actors_admin_section = true
 
| show_actors_admin_section = true

Revision as of 17:15, 6 November 2008

CARMA
Actors Admin
The Actors Admin
Add Actor
Actor Photos
Actor Documents
Manage Attribute Types
Creating Actor Pages

This 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.