S
S
Sergey Novikov2014-02-18 13:26:07
IPB
Sergey Novikov, 2014-02-18 13:26:07

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.
70MM0.png
For enamel prescribed

<a href='mailto:{$member['email']}'>{$member['email']}</a>

For reputation
<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>

But it does not work there for some reason
I do not understand what it is connected with. Tell me please.

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question