maybe you forgot to refresh your theme, also try to clear your browser cachemut2nt wrote:question: I dont see the bar i just see the text
Progress to next rank:
30%
maybe you forgot to refresh your theme, also try to clear your browser cachemut2nt wrote:question: I dont see the bar i just see the text
Progress to next rank:
30%
Code: Select all
File edits
includes/functions_display.php
Find
* @param string &$rank_img_src the rank image source is stored here after execution
Add After
* @param int &$percent_complete the percentage of the way a user is to the next rank, where -1 means "not applicable"
Success
Find
function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)
In-Line Find
, &$rank_img_src
In-Line After, Add
, &$percent_complete
Success
Find
if (!empty($user_rank))
Add Before
if (!is_int($percent_complete) || $percent_complete < 0 || $percent_complete > 100)
{
$percent_complete = -1;
}
Success
Find
else if ($user_posts !== false)
{
Add After
$next_rank_post_count = -1;
Success
Find
if ($user_posts >= $rank['rank_min'])
Add Before
if ($user_posts < $rank['rank_min'])
{
$next_rank_post_count = $rank['rank_min'];
}
else
Success
Find
$rank_title = $rank['rank_title'];
Add Before
if ($percent_complete == -1 && $next_rank_post_count > -1)
{
$rank_difference = $next_rank_post_count - $rank['rank_min'];
$user_progress = $user_posts - $rank['rank_min'];
$percent_complete = round(($user_progress / $rank_difference) * 100);
}
Success
includes/ucp/ucp_pm_viewmessage.php
Find
'RANK_IMG' => $user_info['rank_image'],
Add After
'PERCENTAGE_PROGRESS_NUM' => $user_info['percentage_progress'],
'PERCENTAGE_PROGRESS' => sprintf($user->lang['PERCENTAGE_PROGRESS'], $user_info['percentage_progress']),
Success
Find
get_user_rank($user_row['user_rank'], $user_row['user_posts'], $user_row['rank_title'], $user_row['rank_image'], $user_row['rank_image_src']);
In-Line Find
, $user_row['rank_image_src']
In-Line After, Add
, $user_row['percentage_progress']
Success
language/en/common.php
Find
?>
Add Before
$lang = array_merge($lang, array(
'PERCENTAGE_PROGRESS' => '%s%%',
'PROGRESS_TO_NEXT_RANK' => 'Progress to next rank:'
));
Success
memberlist.php
Find
get_user_rank($row['user_rank'], $row['user_posts'], $rank_title, $rank_img, $rank_img_src);
In-Line Find
$rank_img_src
The In-Line Find specified by the MOD could not be found.The Find specified by the MOD could not be found
Find
get_user_rank($data['user_rank'], (($user_id == ANONYMOUS) ? false : $data['user_posts']), $rank_title, $rank_img, $rank_img_src);
In-Line Find
$rank_img_src
In-Line After, Add
, $percentage_progress
Success
Find
'RANK_IMG_SRC' => $rank_img_src,
Add After
'PERCENTAGE_PROGRESS_NUM' => $percentage_progress,
'PERCENTAGE_PROGRESS' => sprintf($user->lang['PERCENTAGE_PROGRESS'], $percentage_progress),
Success
styles/prosilver/template/memberlist_body.html
Find
<!-- IF memberrow.RANK_IMG --><span class="rank-img">{memberrow.RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.RANK_TITLE}</span><!-- ENDIF -->
In-Line Find
<!-- ENDIF -->
In-Line After, Add
<!-- IF memberrow.PERCENTAGE_PROGRESS_NUM > -1 --><div class="rank_progress_bar" title="{L_PROGRESS_TO_NEXT_RANK}"><span style="width:{memberrow.PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{memberrow.PERCENTAGE_PROGRESS}</span></div><!-- ENDIF -->
Success
styles/prosilver/template/memberlist_view.html
Find
<!-- IF RANK_IMG --><dd style="text-align: center;">{RANK_IMG}</dd><!-- ENDIF -->
Add After
<!-- IF PERCENTAGE_PROGRESS_NUM > -1 --><dd>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->
Success
Find
<!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE --> <!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt> <dd>{RANK_IMG}</dd><!-- ENDIF -->
Add After
<!-- IF PERCENTAGE_PROGRESS_NUM > -1 --><dt>{L_PROGRESS_TO_NEXT_RANK}</dt><dd><div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->
Success
styles/prosilver/template/ucp_pm_viewmessage.html
Find
<!-- IF RANK_IMG --><dd>{RANK_IMG}</dd><!-- ENDIF -->
Add After
<!-- IF PERCENTAGE_PROGRESS_NUM > -1 --><dd>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->
Success
styles/prosilver/template/viewtopic_body.html
Find
<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
Add After
<!-- IF postrow.PERCENTAGE_PROGRESS_NUM > -1 --><dd>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{postrow.PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{postrow.PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->
Success
styles/prosilver/themes/common.css
Cannot locate file
viewtopic.php
Find
get_user_rank($row['user_rank'], false, $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
In-Line Find
$user_cache[$poster_id]['rank_image_src']
In-Line After, Add
, $user_cache[$poster_id]['percentage_progress']
Success
Find
get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
In-Line Find
$user_cache[$poster_id]['rank_image_src']
In-Line After, Add
, $user_cache[$poster_id]['percentage_progress']
Success
Find
'joined' => '',
Add Before
'percentage_progress' => -1,
The Find specified by the MOD could not be found
Find
'joined' => $user->format_date($row['user_regdate']),
Add Before
'percentage_progress' => -1,
The Find specified by the MOD could not be found
Find
'RANK_IMG_SRC' => $user_cache[$poster_id]['rank_image_src'],
Add After
'PERCENTAGE_PROGRESS_NUM' => $user_cache[$poster_id]['percentage_progress'],
'PERCENTAGE_PROGRESS' => sprintf($user->lang['PERCENTAGE_PROGRESS'], $user_cache[$poster_id]['percentage_progress']),
Success
styles/subsilver2/template/memberlist_view.html
Find
<!-- IF RANK_IMG -->
<tr>
<td align="center">{RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Add After
<!-- IF PERCENTAGE_PROGRESS_NUM > -1 -->
<tr>
<td>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></td>
</tr>
<!-- ENDIF -->
Success
styles/subsilver2/template/viewtopic_body.html
Find
<!-- IF postrow.RANK_IMG -->
<tr>
<td>{postrow.RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Add After
<!-- IF postrow.PERCENTAGE_PROGRESS_NUM > -1 -->
<tr>
<td>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{postrow.PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{postrow.PERCENTAGE_PROGRESS}</span></div></td>
</tr>
<!-- ENDIF -->
Success
styles/subsilver2/themes/stylesheet.css
Cannot locate file