Add an option to attach your ravelry username to your profile.

        Patch by kareila. 

diffs (94 lines):

diff -r 53fc4397240f -r 67f528165b9a bin/upgrading/proplists.dat
--- a/bin/upgrading/proplists.dat       Thu Oct 14 13:12:05 2010 +0800
+++ b/bin/upgrading/proplists.dat       Thu Oct 14 13:17:56 2010 +0800
@@ -934,6 +934,14 @@ userproplist.public_key:
   multihomed: 0
   prettyname: PGP or GPG public key
 
+userproplist.ravelry:
+  cldversion: 4
+  datatype: char
+  des: Ravelry user account name
+  indexed: 0
+  multihomed: 0
+  prettyname: Ravelry user account name
+
 userproplist.renamedto:
   cldversion: 4
   datatype: char
diff -r 53fc4397240f -r 67f528165b9a cgi-bin/DW/Logic/ProfilePage.pm
--- a/cgi-bin/DW/Logic/ProfilePage.pm   Thu Oct 14 13:12:05 2010 +0800
+++ b/cgi-bin/DW/Logic/ProfilePage.pm   Thu Oct 14 13:17:56 2010 +0800
@@ -856,6 +856,17 @@ sub external_services {
         };
     }
 
+    if ( my $ravelry = $u->prop( 'ravelry' ) ) {
+        my $ravelry = LJ::eurl( $ravelry );
+        push @ret, {
+            type => 'ravelry',
+            text => LJ::ehtml( $ravelry ),
+            url => "http://www.ravelry.com/people/$ravelry";,
+            image => 'ravelry.png',
+            title_ml => '.service.ravelry',
+        };
+    }
+
     return @ret;
 }
 
diff -r 53fc4397240f -r 67f528165b9a htdocs/img/profile_icons/ravelry.png
Binary file htdocs/img/profile_icons/ravelry.png has changed
diff -r 53fc4397240f -r 67f528165b9a htdocs/manage/profile/index.bml
--- a/htdocs/manage/profile/index.bml   Thu Oct 14 13:12:05 2010 +0800
+++ b/htdocs/manage/profile/index.bml   Thu Oct 14 13:17:56 2010 +0800
@@ -57,7 +57,7 @@ body<=
         qw/ country state city timezone
           icq aolim yahoo msn url jabber
           google_talk skype gizmo
-          twitter delicious
+          twitter delicious ravelry
           urlname gender last_fm_user
           opt_hidefriendofs opt_hidememberofs
           sidx_bdate sidx_bday sidx_loc
@@ -441,6 +441,7 @@ body<=
                            ["gizmo", $ML{'.chat.gizmo'}, 40],
                            ["twitter", $ML{ '.services.twitter' }, 40],
                            ["delicious", $ML{ '.services.delicious' }, 40],
+                           ["ravelry", $ML{ '.services.ravelry' }, 40],
                            ["last_fm_user", $ML{'.services.last_fm'}, 255],
                           )
 
@@ -698,7 +699,7 @@ body<=
               opt_whatemailshow comm_theme
               icq aolim yahoo msn url jabber
               google_talk skype
-              twitter delicious
+              twitter delicious ravelry
               urlname gender last_fm_user
               opt_hidefriendofs opt_hidememberofs
               sidx_bdate sidx_bday
diff -r 53fc4397240f -r 67f528165b9a htdocs/manage/profile/index.bml.text
--- a/htdocs/manage/profile/index.bml.text      Thu Oct 14 13:12:05 2010 +0800
+++ b/htdocs/manage/profile/index.bml.text      Thu Oct 14 13:17:56 2010 +0800
@@ -201,6 +201,8 @@
 
 .services.last_fm=Last.fm Username
 
+.services.ravelry=Ravelry Username
+
 .services.twitter=Twitter Username
 
 .show.birthday.day2=Show only month and day
diff -r 53fc4397240f -r 67f528165b9a htdocs/profile.bml.text
--- a/htdocs/profile.bml.text   Thu Oct 14 13:12:05 2010 +0800
+++ b/htdocs/profile.bml.text   Thu Oct 14 13:17:56 2010 +0800
@@ -406,6 +406,8 @@
 
 .service.delicious=Delicious
 
+.service.ravelry=Ravelry
+
 .service.twitter=Twitter
 
 .syn.header=Feeds
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to