Avatar Module Setup - Version 2.x
---------------------------------

To use this module, the following must be done:

- File Uploads must be enabled in Phorum's 'General Settings'. You need to make sure to allow at least one image filetype, such as .gif, .jpg, or .png.
  You can allow all of them.

- In Phorum's "Custom Profiles" option, create a field called "mod_avatar".

- In the /mods/avatar directory, there are two files that have to be copied.
   - mod_avatar.php must be copied to /include/controlcenter inside your Phorum directory
   - cc_mod_avatar.tpl must be copied into the folder for every template you are using

- Templates must be configured to show avatars. Suggested template changes are included below, feel free to alter them to suit your needs.


cc_menu.tpl (wherever you want the link to the avatar editing page to appear in the control center)
-------------------
{IF mod_avatar->enabled}&bull;<a class="PhorumNavLink" href="{mod_avatar->url}">{LANG->mod_avatar->EditAvatars}</a><br />{/IF}


post_form.tpl and edit.tpl (underneath the "special" dropdown is a good spot to put these)
--------------------------
{IF mod_avatar->show}
<tr>   
    <td>{LANG->mod_avatar->Avatar}:&nbsp;</td>
    <td><select name="mod_avatar">
    <option value="0">&lt; {LANG->mod_avatar->NoAvatar} &gt;</option>
{LOOP mod_avatar_files}
    <option value="{mod_avatar_files->avatarid}"{IF mod_avatar_files->default} SELECTED="SELECTED"{/IF}>{mod_avatar_files->label}</option>
{/LOOP mod_avatar_files}
    </select>
    </td>
 </tr>
{/IF}


read.tpl (I put this just above the subject line, the avatar will sit on the right side of the post in that case, but you can put it anywhere)
-------------------
{IF MESSAGES->mod_avatar}
<img src="{MESSAGES->mod_avatar}" alt="{LANG->mod_avatar->Avatar}" align="right" />
{/IF}

profile.tpl (if you want the users default avatar to appear in their profile, put this same code somewhere)
-----------------------------
{IF PROFILE->mod_avatar_url}
<img src="{PROFILE->mod_avatar_url}" alt="{LANG->mod_avatar->Avatar}" align="right" />
{/IF}

read_threads.tpl (I put this just above the subject line, the avatar will sit on the right side of the post in that case, but you can put it anywhere)
---------------------------
{IF MESSAGE->mod_avatar}
<img src="{MESSAGE->mod_avatar}" alt="{LANG->mod_avatar->Avatar}" align="right" />
{/IF}