Extension talk:WikiUserInfo

From MediaWiki.org
Jump to navigation Jump to search

registration date in wiki format[edit]

This returns the registration date in wiki format, e.g. "12:03, 26 January 2011" or whatever one's user preference is.

	static function userregistration($parser, $user)
	{
		global $wgLang, $wgUser, $wgOut;
		if(!$wgUser->isAllowed('showuseroption') && !$wgUser->isAllowed('lookupuser')) {
			$wgOut->permissionRequired('showuseroption');
			return;
		}
		$user = WikiUserInfo_MediaWiki::getUser($parser, $user);
		$reg  = $user->getRegistration();
		$regdate = $wgLang->timeanddate( wfTimestamp(TS_MW, $reg), true );
		return $regdate;
	}

--Subfader 22:52, 27 January 2011 (UTC)

is this extension still maintained?[edit]

I'm wondering if the patch above, and genders will be added. If it's not being maintained I'd be willing to pick it up, and check it into the MW SVN/git repos.--Olivier Beaton 16:50, 7 December 2011 (UTC)

Archive?[edit]

Hello. This extension has been unmantained for some time and probably does no longer work with recent versions of MediaWiki. I propose to archive this extension. Regards. —MarcoAurelio (talk) 11:40, 11 September 2017 (UTC)