]> git.mxchange.org Git - friendica-addons.git/commitdiff
fix membersince for new profile html
authorfriendica <info@friendica.com>
Wed, 8 Feb 2012 04:18:42 +0000 (20:18 -0800)
committerfriendica <info@friendica.com>
Wed, 8 Feb 2012 04:18:42 +0000 (20:18 -0800)
membersince.tgz
membersince/membersince.php

index fb44b00813fdeb8d2734bbc9e47ffca6f39fe7bd..1250e394425d2eaeda645fe2ad6c7afed27e6c60 100755 (executable)
Binary files a/membersince.tgz and b/membersince.tgz differ
index 25d1207c2ff8dfcd8ec2f1df26c8f9cc5d1b7b8d..dc284125fe2359036d9325b15da3b1caebac10a9 100755 (executable)
@@ -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('</div>' . "\n" . '<div id="advanced-profile-name-end"></div>',sprintf( t(' - Member since: %s') . EOL, datetime_convert('UTC',date_default_timezone_get(),$a->profile['register_date'])) . '</div>' . "\n" . '<div id="advanced-profile-name-end"></div>',$b); }
\ No newline at end of file
+function membersince_display(&$a,&$b) { 
+$b = preg_replace('/<\/dl>/',"</dl>\n<dl><dt>" . t('Member since:') . '</dt><dd>' . datetime_convert('UTC',date_default_timezone_get(),$a->profile['register_date']) . '</dd></dl>' ,$b, 1); 
+//$b = str_replace('</div>' . "\n" . '<div id="advanced-profile-name-end"></div>',sprintf( t(' - Member since: %s') . EOL, datetime_convert('UTC',date_default_timezone_get(),$a->profile['register_date'])) . '</div>' . "\n" . '<div id="advanced-profile-name-end"></div>',$b); 
+}
\ No newline at end of file