aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_main.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2004-01-11 00:57:29 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2004-01-11 00:57:29 +0000
commit7a70b305876c4d927fadc75994e5c93e0ddfbd4f (patch)
treec9643778b769ff5b2b499f20b272c4c4e1bc2186 /phpBB/includes/ucp/ucp_main.php
parent50e6098eb5db88daff845b5d5a2ccbe80b6bbfa6 (diff)
downloadforums-7a70b305876c4d927fadc75994e5c93e0ddfbd4f.tar
forums-7a70b305876c4d927fadc75994e5c93e0ddfbd4f.tar.gz
forums-7a70b305876c4d927fadc75994e5c93e0ddfbd4f.tar.bz2
forums-7a70b305876c4d927fadc75994e5c93e0ddfbd4f.tar.xz
forums-7a70b305876c4d927fadc75994e5c93e0ddfbd4f.zip
Update for new karma image location/creation
git-svn-id: file:///svn/phpbb/trunk@4751 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_main.php')
-rw-r--r--phpBB/includes/ucp/ucp_main.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php
index 2522b6eb7e..96eddfe3de 100644
--- a/phpBB/includes/ucp/ucp_main.php
+++ b/phpBB/includes/ucp/ucp_main.php
@@ -211,7 +211,7 @@ class ucp_main extends module
$template->assign_vars(array(
'USER_COLOR' => (!empty($user->data['user_colour'])) ? $user->data['user_colour'] : '',
'RANK_TITLE' => $rank_title,
- 'KARMA' => $user->lang['KARMA'][$user->data['user_karma']],
+ 'KARMA' => ($config['enable_karma']) ? $user->lang['KARMA'][$user->data['user_karma']] : '',
'JOINED' => $user->format_date($user->data['user_regdate'], $user->lang['DATE_FORMAT']),
'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit, $user->lang['DATE_FORMAT']),
'POSTS' => ($user->data['user_posts']) ? $user->data['user_posts'] : 0,
@@ -227,7 +227,9 @@ class ucp_main extends module
'OCCUPATION' => (!empty($row['user_occ'])) ? $row['user_occ'] : '',
'INTERESTS' => (!empty($row['user_interests'])) ? $row['user_interests'] : '',
- 'KARMA_IMG' => '<img src="images/karma' . $user->data['user_karma'] . '.gif" alt="' . $user->lang['KARMA_LEVEL'] . ': ' . $user->lang['KARMA'][$user->data['user_karma']] . '" title="' . $user->lang['KARMA_LEVEL'] . ': ' . $user->lang['KARMA'][$user->data['user_karma']] . '" />',
+ 'KARMA_IMG' => ($config['enable_karma']) ? $user->img('karma_center', $user->lang['KARMA'][$user->data['user_karma']], false, (int) $user->data['user_karma']) : '',
+ 'KARMA_LEFT_IMG' => $user->img('karma_left', ''),
+ 'KARMA_RIGHT_IMG' => $user->img('karma_right', ''),
'S_GROUP_OPTIONS' => $group_options,