Jump to content

Republic of Chan

Clients
  • Posts

    3
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Republic of Chan got a reaction from Daniel F in 0 views, many replies   
    Ah that's solved it , thanks.

    When I upgraded to PHP 8.1 the cron path needed to be updated.
  2. Like
    Republic of Chan reacted to Dexter_X in Current ranks – and – Reputation   
    Hi, 
    The reputation system is still "alive", it is just not displayed anymore in the author's pane (left side of a post). We've restored it back by modifying the template in the theme. It is a little "tricky" because there is three places where you need to do it in your theme forums/front/topics/postContainer template file : 
    . to restore reputation badges/levels, around original line 110, add the following code after the </li> :
    {{if $comment->author()->reputationImage()}} <li data-role='reputation-image' class='ipsPadding:half'> <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''> </li> {{endif}} so you'll obtain something that looks like this, considering surrounding code :
    </ul> </li> {{if $comment->author()->reputationImage()}} <li data-role='reputation-image' class='ipsPadding:half'> <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''> </li> {{endif}} {{endif}} {{if $comment->author()->member_id}} so, it is important to place the new code after both </ul> and </li> ending the counters line.
     
    . To restore the reputation counter, add the following code around original line 96, just after the <ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats"> :
    <li data-role='reputation-badge'> {template="reputationBadge" group="global" app="core" params="$comment->author()"} </li> so you'll obtain something that looks like (considering surrounding code) :
    <ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats"> <li data-role='reputation-badge'> {template="reputationBadge" group="global" app="core" params="$comment->author()"} </li> {{if isset( $comment->author_solved_count )}} <li>  
    Edit for mobile display (add back reputation counter on mobile devices display) :
    . To restore the reputation counter in mobiles display, add the following code around original line 57, inside the <h3> just after the {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE, $comment->isAnonymous()"} and before the </h3>
    &nbsp; <span class="ipsType_medium">{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span> so you'll obtain something that looks like (considering surrounding code) : 
    <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center'> {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE, $comment->isAnonymous()"} &nbsp; <span class="ipsType_medium">{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span> </h3>  
    Save your template file, reload your topic : job done !
×
×
  • Create New...