holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21112: LJSUP-10988: Add position and social cap...

Committer: akanashin
LJSUP-10988: Add position and social capital to user profile
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-02-07 09:12:13 UTC (rev 21111)
+++ trunk/htdocs/userinfo.bml	2012-02-07 09:29:52 UTC (rev 21112)
@@ -663,11 +663,11 @@
             type => 0,
             sup => 1,
         });
-        my $soc_image = "<img src='$LJ::IMGPREFIX/profile_icons/" . ($position->{result}->{position} != 0  ? 'social-capital.png' : 'korona.png') . "'/>";
-        my $diagram_image = "<img src='$LJ::IMGPREFIX/profile_icons/diagram.png'/> ";
-        my $href_rating = $u->journaltype eq 'C' ? 'ljcom.userinfo.community_rating' : 'ljcom.userinfo.account_rating';
         if (ref $position eq 'HASH') {
             if ($position->{result}->{position} < 2000) {
+                my $soc_image = "<img src='$LJ::IMGPREFIX/profile_icons/" . ($position->{result}->{position}!=0 ? 'social-capital.png' : 'korona.png') . "'/>";
+                my $diagram_image = "<img src='$LJ::IMGPREFIX/profile_icons/diagram.png'/> ";
+                my $href_rating = $u->journaltype eq 'C' ? 'ljcom.userinfo.community_rating' : 'ljcom.userinfo.account_rating';
                 $body .= "<ul>" .
                          "<li>" .
                          $diagram_image .

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