ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r15453: LJSUP-4422: Aliases for LJ users

Committer: ssafronova
LJSUP-4422: Aliases for LJ users
LJSUP-4552: change one alias max length to 400 bytes
corrected patch

U   trunk/cgi-bin/LJ/Widget/IPPU/AddAlias.pm
U   trunk/htdocs/friends/edit.bml
Modified: trunk/cgi-bin/LJ/Widget/IPPU/AddAlias.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/IPPU/AddAlias.pm	2009-07-09 08:57:24 UTC (rev 15452)
+++ trunk/cgi-bin/LJ/Widget/IPPU/AddAlias.pm	2009-07-09 09:58:50 UTC (rev 15453)
@@ -34,7 +34,8 @@
     $body .= $class->html_text(
                 name  => 'alias',
                 id    => 'Widget[IPPU_AddAlias]_alias',
-                size  => 30,
+				class => 'alias-value',
+                size  => 60,
 				maxlength => 200,
                 value => $opts{alias},
                 raw   => "autocomplete='off'",

Modified: trunk/htdocs/friends/edit.bml
===================================================================
--- trunk/htdocs/friends/edit.bml	2009-07-09 08:57:24 UTC (rev 15452)
+++ trunk/htdocs/friends/edit.bml	2009-07-09 09:58:50 UTC (rev 15453)
@@ -108,9 +108,9 @@
 
             $ret .= "</th><th width='30%' style='text-align:left;'>$ML{'.editfriends.name'}</th>";
 
-			if ($remote->in_class('paid') || $remote->in_class('perm')) {
-            	$ret .= "<th style='text-align:left;'>$ML{'.editfriends.alias'}</th>";
-			}
+            if ($remote->get_cap('aliases')) {
+                $ret .= "<th style='text-align:left;'>$ML{'.editfriends.alias'}</th>";
+            }
             
             $ret .= "<th width='5%'>$ML{'.editfriends.friend'}</th></tr>";
 
@@ -138,22 +138,22 @@
                 $ret .= "<td$colors  style='text-align:left;'>" . LJ::ehtml($f->{'name'}) . "</td>\n";
 
                 my $who_u = LJ::load_user($who);
-				if ($remote->in_class('paid') || $remote->in_class('perm')) {
-                	$ret .= "<td style='text-align: left;'>";
-                	if ($who ne $authas) {
-                    	$ret .= LJ::html_text({
- 								size => "30",
-								maxlength => "200",
-                            	name => "useralias_" . $who_u->{userid},
-                            	id   => "useralias_$who",
-                            	value => LJ::ljuser_alias($f->{username}),
-                        		});
-                		} else { 
-                    	$ret .= " ";
-                		}
+                if ($remote->get_cap('aliases')) {
+                    $ret .= "<td style='text-align: left;'>";
+                    if ($who ne $authas) {
+                        $ret .= LJ::html_text({
+                                size => "30",
+                                maxlength => "200",
+                                name => "useralias_" . $who_u->{userid},
+                                id   => "useralias_$who",
+                                value => LJ::ljuser_alias($f->{username}),
+                                });
+                    } else { 
+                        $ret .= " ";
+                    }
                         
-                		$ret .= "</td>";
-				}
+                    $ret .= "</td>";
+                }
 
                 $ret .= "<td align='center'>";
                 # non-checked checkboxes for "friend-of". checking these boxes adds the user

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