[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
rb.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3904
Add Diigo to the profile page as well.
Patch by
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
--------------------------------------------------------------------------------
