/[drupal]/contributions/modules/meez/README.txt
ViewVC logotype

Contents of /contributions/modules/meez/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Jul 7 21:59:26 2008 UTC (16 months, 2 weeks ago) by greggles
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +15 -12 lines
File MIME type: text/plain
copying the d5 code to HEAD to prepare for 6.x port
1 ****Meez Module****
2 // $Id: README.txt,v 1.2.4.2 2008/07/07 21:58:07 greggles Exp $
3
4 **Description:
5 This module provides integration with the Meez avatar/profile site. Meez is a
6 system for creating a centralized avatar that you can use on multiple sites.
7 Visit http://www.meez.com/ for more details.
8
9 This module uses a profile field to hold the Meez username for the user. By
10 default the module uses profile_meez for the name of the profile field but
11 you can change that on the settings page.
12
13 The module does not actually load the Meez avatar files onto your server.
14 Instead it stores the URL of the files on the Meez server. This way any updates
15 to the avatar happen as soon as they are published on Meez.
16
17 By default the module loads the URLs for all of the available avatars. You can
18 configure it to only load a subset of the avatars for example if you only need a
19 headshot and not the full body nor animation Meez.
20
21 **Install and Usage:
22 Pre-installation:
23 1. Enable profile module
24 2. Create a single line text field profile field to hold the Meez username. The
25 default name is profile_meez but you can call it whatever you want.
26
27 Basic case:
28 1. Enable the module on the admin/modules page
29 2. Optionally Visit admin/settings/meez and set the profile field and the list
30 of avatars that should be imported.
31 3. You MUST alter your theme to include the meez avatar.
32
33 A simple example of theme integration is to add this to your template.php:
34 function THEMENAME_user_meez($account,$version) {
35
36 if ($account->avatars[$version]->src) {
37 $picture = $account->avatars[$version]->src;
38 }
39 else if (variable_get('user_picture_default', '')) {
40 $picture = variable_get('user_picture_default', '');
41 }
42
43 if (isset($picture)) {
44 $alt = t("@user's profile", array('@user' => $account->name ? $account->name : variable_get('anonymous', t('Anonymous'))));
45 $picture = theme('image', $picture, $alt, $alt, '', FALSE);
46
47 if (!empty($account->uid) && user_access('access user profiles')) {
48 $picture = l($picture, "user/$account->uid", array('title' => t("View @user's profile.", array('@user' => $account->name))), NULL, NULL, FALSE, TRUE);
49 }
50
51 return '<div class="picture">'. $picture .'</div>';
52 }
53 }
54
55 Then in your theme file, such as user_profile.tpl.php you need to call the
56 function like
57
58 <?php
59 theme('user_meez', $account, 'body_sm')
60 ?>
61
62 See http://drupal.org/node/35728 for more details on customizing the user profile.
63
64 **Future Plans
65 Possible enhancements include:
66 1. Syncing with more of the profile fields from Meez in addition to avatar.
67 2. Using a storage location other than the user->data field.
68
69 **Credits:
70 This module was developed by Greg Knaddison (greggles) of pingVision, LLC (www.pingv.com)
71 sponsored by, and drawing from code elements initially developed by, DoSomething.org.
72
73 Send thanks to: http://drupal.org/user/36762/contact
74 Send problems/questions to: http://drupal.org/project/issues/meez

  ViewVC Help
Powered by ViewVC 1.1.2