diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-14 19:26:19 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-14 19:26:19 +0000 |
| commit | ab96491249e1e40cf8b32b973dcc4bddf72b6051 (patch) | |
| tree | d42b0b9d746f29e0863dcaa240cea35eb1960e03 /modules | |
| parent | 2962bca7ef36d59a4dd7437a9afeeb2b1800387c (diff) | |
| download | users-ab96491249e1e40cf8b32b973dcc4bddf72b6051.tar.gz users-ab96491249e1e40cf8b32b973dcc4bddf72b6051.tar.bz2 users-ab96491249e1e40cf8b32b973dcc4bddf72b6051.zip | |
fix profile to work with moduleParams
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_user_profile.php | 25 | ||||
| -rw-r--r-- | modules/mod_user_profile.tpl | 2 |
2 files changed, 14 insertions, 13 deletions
diff --git a/modules/mod_user_profile.php b/modules/mod_user_profile.php index 9636854..d9b8560 100644 --- a/modules/mod_user_profile.php +++ b/modules/mod_user_profile.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/modules/mod_user_profile.php,v 1.6 2006/06/08 20:01:00 hash9 Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/modules/mod_user_profile.php,v 1.7 2007/06/14 19:26:19 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,23 +8,24 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: mod_user_profile.php,v 1.6 2006/06/08 20:01:00 hash9 Exp $ + * $Id: mod_user_profile.php,v 1.7 2007/06/14 19:26:19 squareing Exp $ * @package users * @subpackage modules */ -global $gQueryUser, $gBitUser, $gBitSmarty; +global $gQueryUser, $gBitUser, $gBitSmarty, $moduleParams; +extract( $moduleParams ); -if ( !empty($module_params['user_id'])) { - $user = new BitUser($module_params['user_id']); +if( !empty( $module_params['user_id'] )) { + $user = new BitUser( $module_params['user_id'] ); $user->load(); - $gBitSmarty->assign_by_ref('userInfo', $user->mInfo); -} elseif ( !empty($module_params['login']) ) { + $gBitSmarty->assign_by_ref( 'userInfo', $user->mInfo ); +} elseif( !empty( $module_params['login'] )) { $user = new BitUser(); $user->load(null,$module_params['login']); - $gBitSmarty->assign_by_ref('userInfo', $user->mInfo); -} elseif ( !empty( $gQueryUser->mInfo ) ) { - $gBitSmarty->assign_by_ref('userInfo', $gQueryUser->mInfo ); -} elseif( !empty( $gBitUser->mInfo ) ) { - $gBitSmarty->assign_by_ref('userInfo', $gBitUser->mInfo ); + $gBitSmarty->assign_by_ref( 'userInfo', $user->mInfo); +} elseif( !empty( $gQueryUser->mInfo )) { + $gBitSmarty->assign_by_ref( 'userInfo', $gQueryUser->mInfo ); +} elseif( !empty( $gBitUser->mInfo )) { + $gBitSmarty->assign_by_ref( 'userInfo', $gBitUser->mInfo ); } ?> diff --git a/modules/mod_user_profile.tpl b/modules/mod_user_profile.tpl index 365dd42..841af97 100644 --- a/modules/mod_user_profile.tpl +++ b/modules/mod_user_profile.tpl @@ -10,7 +10,7 @@ {if $userInfo.avatar_url} <img src="{$userInfo.avatar_url}" class="thumb" title="{tr}Avatar{/tr}" alt="{tr}Avatar{/tr}"/> {else} - {biticon ipackage="icons" iname="user-offline" iclass="thumb" iexplain="no user avatar uploaded" iforce="icon"} + {biticon ipackage="icons" iname="large/user-offline" iclass="thumb" iexplain="no user avatar uploaded" iforce="icon"} {/if} <br /> {tr}Last login{/tr}: {$userInfo.last_login|bit_short_date} |
