Answer the question
In order to leave comments, you need to log in
How to implement the display of the number of reputation?
I need to display the amount of reputation, messages and email from the profile in the header of the site.
For enamel prescribed
<a href='mailto:{$member['email']}'>{$member['email']}</a>
<if test="ourReputation:|:$this->settings['reputation_enabled'] && $this->settings['reputation_show_profile']">
<if test="RepPositive:|:$member['pp_reputation_points'] > 0">
<div class='reputation positive'>
</if>
<if test="RepNegative:|:$member['pp_reputation_points'] < 0">
<div class='reputation negative'>
</if>
<if test="RepZero:|:$member['pp_reputation_points'] == 0">
<div class='reputation zero'>
</if>
<span class='number'>{$this->lang->words['m_reputation']} {$member['pp_reputation_points']}</span>
<if test="RepText:|:$member['author_reputation'] && $member['author_reputation']['text']">
<span class='title'>{$member['author_reputation']['text']}</span>
</if>
<if test="RepImage:|:$member['author_reputation'] && $member['author_reputation']['image']">
<span class='image'><img src='{$member['author_reputation']['image']}' alt='{$this->lang->words['m_reputation']}' /></span>
</if>
</div>
</if>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question