News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Valid User check function

Started by The One, July 01, 2006, 11:37:49 AM

Previous topic - Next topic

The One

Is there any function which checks if a given username is a registered user or not?
The problem is choice

Rudolf

in Subs-Members.php
bool isReservedName(string nameint ID_MEMBER 0bool is_name true)
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

The One

Actually I need to find out if a user is currently logged in and performing some action on the board. Only if they are not doing so do I need to check if I need to log them in or not.

What are the global variables that contain the present user information?
The problem is choice

Rudolf

The $context array
for the user - $context['user']
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

The One

Where is this array declared and what are the contents of the user array in $context (i.e $context['user'] array)?
The problem is choice

Advertisement: