1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-26 17:54:39 +02:00

BBCode enabled profile fields, removed field_name from profile fields, fixed some uninitialised variable issues, some small conversion issues

git-svn-id: file:///svn/phpbb/trunk@5076 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt
2005-01-24 13:14:31 +00:00
parent 61fbde5a72
commit 0a1b040588
14 changed files with 197 additions and 86 deletions

View File

@@ -973,7 +973,7 @@ page_footer();
//
function show_profile($data)
{
global $config, $auth, $template, $user, $ranks, $SID, $phpEx;
global $config, $auth, $template, $user, $ranks, $SID, $phpEx, $phpbb_root_path;
$username = $data['username'];
$user_id = $data['user_id'];
@@ -986,13 +986,16 @@ function show_profile($data)
}
else
{
foreach ($ranks['normal'] as $rank)
if(isset($ranks['normal']))
{
if ($data['user_posts'] >= $rank['rank_min'])
foreach ($ranks['normal'] as $rank)
{
$rank_title = $rank['rank_title'];
$rank_img = (!empty($rank['rank_image'])) ? '<img src="' . $config['ranks_path'] . '/' . $rank['rank_image'] . '" border="0" alt="' . $rank['rank_title'] . '" title="' . $rank['rank_title'] . '" /><br />' : '';
break;
if ($data['user_posts'] >= $rank['rank_min'])
{
$rank_title = $rank['rank_title'];
$rank_img = (!empty($rank['rank_image'])) ? '<img src="' . $config['ranks_path'] . '/' . $rank['rank_image'] . '" border="0" alt="' . $rank['rank_title'] . '" title="' . $rank['rank_title'] . '" /><br />' : '';
break;
}
}
}
}