From: friendica Date: Wed, 8 Feb 2012 04:18:42 +0000 (-0800) Subject: fix membersince for new profile html X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=08af41bc9a21be7201d863a90bf38f589698892f;p=friendica-addons.git fix membersince for new profile html --- diff --git a/membersince.tgz b/membersince.tgz index fb44b008..1250e394 100755 Binary files a/membersince.tgz and b/membersince.tgz differ diff --git a/membersince/membersince.php b/membersince/membersince.php index 25d1207c..dc284125 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