+use Friendica\Core\Hook;
+use Friendica\DI;
+use Friendica\Util\DateTimeFormat;
+
+function membersince_install()
+{
+ Hook::register('profile_advanced', 'addon/membersince/membersince.php', 'membersince_display');
+}
+
+function membersince_display(Friendica\App $a, &$b)
+{
+ if ($a->getCurrentTheme() == 'frio') {
+ // Works in Frio.
+ $doc = new DOMDocument();
+ $doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8'));
+
+ $elm = $doc->getElementById('aprofile-fullname');
+
+ $div = $doc->createElement('div');
+ $div->setAttribute('id','aprofile-membersince');
+ $div->setAttribute('class','col-lg-12 col-md-12 col-sm-12 col-xs-12 aprofile');
+
+ // The seperator line.
+ $hr = $doc->createElement('hr','');
+ $hr->setAttribute('class','profile-separator');
+
+ // The label div.
+ $label = $doc->createElement('div', DI::l10n()->t('Member since:'));
+ $label->setAttribute('class', 'col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted');