From 08af41bc9a21be7201d863a90bf38f589698892f Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 7 Feb 2012 20:18:42 -0800 Subject: [PATCH] fix membersince for new profile html --- membersince.tgz | Bin 549 -> 605 bytes membersince/membersince.php | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/membersince.tgz b/membersince.tgz index fb44b00813fdeb8d2734bbc9e47ffca6f39fe7bd..1250e394425d2eaeda645fe2ad6c7afed27e6c60 100755 GIT binary patch literal 605 zcmV-j0;2sNiwFRl_c2cZ1MQSeZ`wc*hB^CJj1bKlWLRu4jwo?eHN7?Mp&yr~vJAVx zD)!o4uaVj)|Gm48Nol3z(u5p3j|8%3XLjECfSl(`t|}o{oOYgwu^|e>P7qF`AeeT> z;VhU<{l?zX@%_l3PNGRTG3Wjym<1gOpGwdnb){1U(8<%)MyQ>T_xP2YaOR($o*qNf z5y=ncfABmix8b*;CB zGB=AW4j21Q!(yv-Ij8il_oG#j)Ak;k8|TD-{m5IT6xKIm_JsH7LFjmF6nh7R8lI+GI(}cB%1X#3LzVg`^MsFpSUP z5%62;A-Z7f|}QkKP(c-@74 zxReX?yLUlye59}0pX2!bF8f*=TjAP9mW2!bF8f*=TjAV=pHDpE&p04M+eBcd%& literal 549 zcmV+=0^0o_iwFQbTA5A&1MQPdkDD+MhB@;qMp3$kh=h<3h|+ATs@q$)J@n(!R>%P- zu@($9CQ`fVf3Hp16{?h#s_w_3^GFD=XFRXw9T%+FGFfwxGT(Y2rkXfjShGbK&t{=D zT|~1e4BGV$D+r=6nuhavtoMVt-nU@!P=fk2wW1QhDrmar^2o)BxN5(Mg5`4g7@8iD zqUV3_dr}>$d#hm#jrsn@;qYkCi zC-W-?mp7e;^+Bm><@>k2pQL5scjx$p4&In-{rI*m*|&yEmXunSL$tWO$(V17D_*n% zOWfzSy=z2jq(X0+6E3vNdG5H^AlaVRipk_qmRAnxiX}8VQXQEQkI*bDg@4Dz&@uhP zv)?Vz)#2xf`ilR>_^Zmaa4wCj%O-aYko nL=Xf)5ClOG1VIo4K@bE%5ClOG1VIo4`D=aw+3oGs04M+eF{ls~ diff --git a/membersince/membersince.php b/membersince/membersince.php index 25d1207c2..dc284125f 100755 --- a/membersince/membersince.php +++ b/membersince/membersince.php @@ -14,4 +14,7 @@ function membersince_install(){ register_hook('profile_advanced','addon/membersi function membersince_uninstall(){ unregister_hook('profile_advanced','addon/membersince/membersince.php','membersince_display'); } -function membersince_display(&$a,&$b) { $b = str_replace('' . "\n" . '
',sprintf( t(' - Member since: %s') . EOL, datetime_convert('UTC',date_default_timezone_get(),$a->profile['register_date'])) . '' . "\n" . '
',$b); } \ No newline at end of file +function membersince_display(&$a,&$b) { +$b = preg_replace('/<\/dl>/',"\n
" . t('Member since:') . '
' . datetime_convert('UTC',date_default_timezone_get(),$a->profile['register_date']) . '
' ,$b, 1); +//$b = str_replace('' . "\n" . '
',sprintf( t(' - Member since: %s') . EOL, datetime_convert('UTC',date_default_timezone_get(),$a->profile['register_date'])) . '' . "\n" . '
',$b); +} \ No newline at end of file