From: Friendika Date: Tue, 18 Oct 2011 06:36:14 +0000 (-0700) Subject: membersince added to repo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f06bdd7748d9af488cf5eb43266b18139fecfda;p=friendica-addons.git membersince added to repo --- diff --git a/membersince.tgz b/membersince.tgz new file mode 100644 index 00000000..fb44b008 Binary files /dev/null and b/membersince.tgz differ diff --git a/membersince/membersince.php b/membersince/membersince.php new file mode 100644 index 00000000..25d1207c --- /dev/null +++ b/membersince/membersince.php @@ -0,0 +1,17 @@ + + * + */ + +require_once('include/datetime.php'); + +function membersince_install(){ register_hook('profile_advanced','addon/membersince/membersince.php','membersince_display'); } + +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 diff --git a/twitter.tgz b/twitter.tgz index 26527383..5c1fb361 100644 Binary files a/twitter.tgz and b/twitter.tgz differ