]> git.mxchange.org Git - friendica-addons.git/commitdiff
membersince added to repo
authorFriendika <info@friendika.com>
Tue, 18 Oct 2011 06:36:14 +0000 (23:36 -0700)
committerFriendika <info@friendika.com>
Tue, 18 Oct 2011 06:36:14 +0000 (23:36 -0700)
membersince.tgz [new file with mode: 0644]
membersince/membersince.php [new file with mode: 0644]
twitter.tgz

diff --git a/membersince.tgz b/membersince.tgz
new file mode 100644 (file)
index 0000000..fb44b00
Binary files /dev/null and b/membersince.tgz differ
diff --git a/membersince/membersince.php b/membersince/membersince.php
new file mode 100644 (file)
index 0000000..25d1207
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * Name: MemberSince
+ * Description: Display membership date in profile
+ * Version: 1.0
+ * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
+ * 
+ */
+
+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('</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
index 26527383898f13dc0da9c45989b7987dbcb4ed3d..5c1fb3617374a274149180d77d72b6a5d56140f5 100644 (file)
Binary files a/twitter.tgz and b/twitter.tgz differ