Customizing SMF > SMF Coding Discussion
Last registered member
(1/1)
NIAB:
What's the correct code/command to get the alst registered member?
Arantor:
For what purpose, exactly? What you want to use it for, where you want to use it etc. will affect where you go to get that information.
NIAB:
To show the latest member registered on my custom page. All I need is the $context['etc'] or w.e it is
Arantor:
While you're inside SMF itself you can use $context['common_stats']['latest_member'] and its contents, of which you get the member id, the username, the link to profile and a snippet of HTML prebuilt to provide a link to the profile.
NIAB:
Ah, thanks very much :)
Navigation
[0] Message Index
Go to full version