fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-10-31 08:18 am

[dw-free] Diigo user tag/external site listing

[commit: http://hg.dwscoalition.org/dw-free/rev/40744a8bb951]

http://bugs.dwscoalition.org/show_bug.cgi?id=3904

Add Diigo to the profile page as well.

Patch by [personal profile] rb.

Files modified:
  • bin/upgrading/proplists.dat
  • cgi-bin/DW/Logic/ProfilePage.pm
  • htdocs/img/profile_icons/diigo.png
  • htdocs/manage/profile/index.bml
  • htdocs/manage/profile/index.bml.text
  • htdocs/profile.bml.text
--------------------------------------------------------------------------------
diff -r 10b29c8c082c -r 40744a8bb951 bin/upgrading/proplists.dat
--- a/bin/upgrading/proplists.dat	Mon Oct 31 15:55:07 2011 +0800
+++ b/bin/upgrading/proplists.dat	Mon Oct 31 16:19:08 2011 +0800
@@ -334,6 +334,14 @@
   multihomed: 0
   prettyname: Etsy user account name
 
+userproplist.diigo:
+  cldversion: 4
+  datatype: char
+  des: Diigo user account name
+  indexed: 0
+  multihomed: 0
+  prettyname: Diigo user account name
+
 userproplist.exclude_from_own_stats:
   cldversion: 4
   datatype: bool
diff -r 10b29c8c082c -r 40744a8bb951 cgi-bin/DW/Logic/ProfilePage.pm
--- a/cgi-bin/DW/Logic/ProfilePage.pm	Mon Oct 31 15:55:07 2011 +0800
+++ b/cgi-bin/DW/Logic/ProfilePage.pm	Mon Oct 31 16:19:08 2011 +0800
@@ -888,6 +888,17 @@
         };
     }
 
+    if ( my $diigo = $u->prop( 'diigo' ) ) {
+        my $diigo = LJ::eurl( $diigo );
+        push @ret, {
+            type => 'diigo',
+            text => LJ::ehtml( $diigo ),
+            url => "http://www.diigo.com/user/$diigo",
+            image => 'diigo.png',
+            title_ml => '.service.diigo',
+        };
+    }
+
     return @ret;
 }
 
diff -r 10b29c8c082c -r 40744a8bb951 htdocs/img/profile_icons/diigo.png
Binary file htdocs/img/profile_icons/diigo.png has changed
diff -r 10b29c8c082c -r 40744a8bb951 htdocs/manage/profile/index.bml
--- a/htdocs/manage/profile/index.bml	Mon Oct 31 15:55:07 2011 +0800
+++ b/htdocs/manage/profile/index.bml	Mon Oct 31 16:19:08 2011 +0800
@@ -55,7 +55,7 @@
         qw/ country state city timezone
           icq aolim yahoo msn url jabber
           google_talk skype gizmo
-          twitter delicious ravelry etsy
+          twitter delicious ravelry etsy diigo
           urlname gender last_fm_user
           opt_hidefriendofs opt_hidememberofs
           sidx_bdate sidx_bday sidx_loc
@@ -437,6 +437,7 @@
                            ["delicious", $ML{ '.services.delicious' }, 40],
                            ["ravelry", $ML{ '.services.ravelry' }, 40],
                            ["etsy", $ML{ '.services.etsy' }, 20],
+                           ["diigo", $ML{ '.services.diigo' }, 16],
                            ["last_fm_user", $ML{'.services.last_fm'}, 255],
                           )
 
@@ -694,7 +695,7 @@
               opt_whatemailshow comm_theme
               icq aolim yahoo msn url jabber
               google_talk skype
-              twitter delicious ravelry etsy
+              twitter delicious ravelry etsy diigo
               urlname gender last_fm_user
               opt_hidefriendofs opt_hidememberofs
               sidx_bdate sidx_bday
diff -r 10b29c8c082c -r 40744a8bb951 htdocs/manage/profile/index.bml.text
--- a/htdocs/manage/profile/index.bml.text	Mon Oct 31 15:55:07 2011 +0800
+++ b/htdocs/manage/profile/index.bml.text	Mon Oct 31 16:19:08 2011 +0800
@@ -199,6 +199,8 @@
 
 .services.etsy=Etsy Username
 
+.services.diigo=Diigo Username
+
 .services.last_fm=Last.fm Username
 
 .services.ravelry=Ravelry Username
diff -r 10b29c8c082c -r 40744a8bb951 htdocs/profile.bml.text
--- a/htdocs/profile.bml.text	Mon Oct 31 15:55:07 2011 +0800
+++ b/htdocs/profile.bml.text	Mon Oct 31 16:19:08 2011 +0800
@@ -407,6 +407,8 @@
 
 .service.delicious=Delicious
 
+.service.diigo=Diigo
+
 .service.etsy=Etsy
 
 .service.ravelry=Ravelry
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org