holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21814: LJSUP-11961: Display social capital for ...

Committer: akanashin
LJSUP-11961: Display social capital for all users and communities
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-04-26 11:56:12 UTC (rev 21813)
+++ trunk/htdocs/userinfo.bml	2012-04-26 12:44:32 UTC (rev 21814)
@@ -691,7 +691,7 @@
 
         $body .= "<ul class='rating-details'>";
 
-        if (ref $position eq 'HASH') {
+        if (ref $position eq 'HASH' && ( $u->journaltype eq 'C' || LJ::SUP->is_sup_enabled($u) )) {
                 $soc_image = "<img src='$LJ::IMGPREFIX/profile_icons/" . ($position->{result}->{position}!=0 ? 'social-capital.png?v=17298' : 'korona.png?v=17319') . "'/>";
                 $soc_capital = int($position->{result}->{value}/1000);
                 $soc_capital = $soc_capital < 10 ? ' <10 ' : LJ::commafy($soc_capital);

Tags: akanashin, bml, holyandrew, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments