[dw-free] Add Ravelry as a profile external site
[commit: http://hg.dwscoalition.org/dw-free/rev/67f528165b9a]
http://bugs.dwscoalition.org/show_bug.cgi?id=2830
Add an option to attach your ravelry username to your profile.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2830
Add an option to attach your ravelry username to your profile.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/proplists.dat
- cgi-bin/DW/Logic/ProfilePage.pm
- htdocs/img/profile_icons/ravelry.png
- htdocs/manage/profile/index.bml
- htdocs/manage/profile/index.bml.text
- htdocs/profile.bml.text
-------------------------------------------------------------------------------- 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 --------------------------------------------------------------------------------