****Meez Module****
// $Id: README.txt,v 1.2.4.1 2007/12/22 19:38:17 greggles Exp $
**Description:
This module provides integration with the Meez avatar/profile site. Meez is a
system for creating a centralized avatar that you can use on multiple sites.
Visit http://www.meez.com/ for more details.
This module uses a profile field to hold the Meez username for the user. By
default the module uses profile_meez for the name of the profile field but
you can change that on the settings page.
The module does not actually load the Meez avatar files onto your server.
Instead it stores the URL of the files on the Meez server. This way any updates
to the avatar happen as soon as they are published on Meez.
By default the module loads the URLs for all of the available avatars. You can
configure it to only load a subset of the avatars for example if you only need a
headshot and not the full body nor animation Meez.
**Install and Usage:
Pre-installation:
1. Enable profile module
2. Create a single line text field profile field to hold the Meez username. The
default name is profile_meez but you can call it whatever you want.
Basic case:
1. Enable the module on the admin/modules page
2. Optionally Visit admin/settings/meez and set the profile field and the list
of avatars that should be imported.
3. You MUST alter your theme to include the meez avatar.
A simple example of the theme integration would be to add this to your template.php:
function phptemplate_user_meez($account,$version) {
if ($account->avatars[$version]->src) {
$picture = $account->avatars[$version]->src;
}
if (isset($picture)) {
$alt = t("@user's profile", array('@user' => $account->name ? $account->name : variable_get('anonymous', t('Anonymous'))));
$substringopen = "";
$picture = $substringopen.$substringsrc.$substringalt.$substringtitle;
if (!empty($account->uid) && user_access('access user profiles')) {
$picture = l($picture, "user/$account->uid", array('title' => t("View @user's profile.", array('@user' => $account->name))), NULL, NULL, FALSE, TRUE);
}
return "