* */ use Friendica\Core\Addon; use Friendica\Core\L10n; use Friendica\Util\Temporal; require_once 'include/datetime.php'; function membersince_install() { Addon::registerHook('profile_advanced', 'addon/membersince/membersince.php', 'membersince_display'); } function membersince_uninstall() { Addon::unregisterHook('profile_advanced', 'addon/membersince/membersince.php', 'membersince_display'); } function membersince_display(&$a, &$b) { // Works in Vier $b = preg_replace('/<\/dl>/', "\n\n\n
\n
" . L10n::t('Member since:') . "
\n
" . Temporal::local($a->profile['register_date']) . "
\n
", $b, 1); // Trying for Frio //$b = preg_replace('/<\/div>/', "

" . L10n::t('Member since:') . "
" . Temporal::local($a->profile['register_date']) . "
", $b, 1); }