July 2nd, 2009

[livejournal] r15354: Add to '<span class' new user class "lju...

Committer: wisest-owl
Add to '
[Error: Irreparable invalid markup ('<span [...] <pre>') in entry. Owner must fix manually. Raw contents below.]

<div style='font-size: 9pt; margin-bottom: 1em'>Committer: wisest-owl</div>Add to '<span class' new user class "ljuser_*username*"


<pre>U trunk/cgi-bin/LJ/User.pm
</pre><lj-cut text='diff'><pre>Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm 2009-07-02 02:54:32 UTC (rev 15353)
+++ trunk/cgi-bin/LJ/User.pm 2009-07-02 03:03:11 UTC (rev 15354)
@@ -1323,6 +1323,8 @@
$user_html .= "&lt;span class='ljuser ";
$user_html .= "with-alias"
if $alias;
+ ## add class as "ljuser_*username*" for find user on page to change alias
+ $user_html .= " ljuser_".$name;
$user_html .= "' lj:user='$name' style='white-space: nowrap;$strike'&gt;&lt;a href='$profile'&gt;&lt;img src='$imgurl' alt='[info]' width='$width' height='$height' style='vertical-align: bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='$url'";
$user_html .= " title='$alias'"
if $alias;
@@ -6472,6 +6474,8 @@
$user_html .= "&lt;span class='ljuser ";
$user_html .= "with-alias"
if $alias;
+ ## add class as "ljuser_*username*" for find user on page to change alias
+ $user_html .= " ljuser_".LJ::canonical_username($user);
$user_html .= "' lj:user='$user' style='white-space: nowrap;$strike'&gt;&lt;a href='$profile'&gt;&lt;img src='$img/$fil' alt='[info]' width='$x' height='$y' style='vertical-align: bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='$url'$link_color";
$user_html .= " title='$alias'"
if $alias;

</pre></lj-cut>