|
Re: A question about FUD API [message #20555 is a reply to message #20554] |
Tue, 19 October 2004 14:50 |
Abraxa
Messages: 72 Registered: August 2004 Location: Germany
Karma: 0
|
Member |
|
|
From what I understand the constant __fud_real_user__ is set if a forum member is logged in when requesting that page:
if (__fud_real_user__) {
is_allowed_user($usr);
} else {
std_error('login');
}
I'm not sure when that constant was introduced but seeing how it's so essential I assume that it should be existing in your version, too.
Out of curiosity: I have plans to integrate a gallery into my forums as well - would it be possible for me to see what your gallery looks like and what functions it has?
-Soeren
[Updated on: Tue, 19 October 2004 14:51] Report message to a moderator
|
|
|
|
|
|
Re: A question about FUD API [message #20560 is a reply to message #20558] |
Tue, 19 October 2004 15:55 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The api has a function fud_fetch_online_users() that will return an list of online users, if you wanted to see if any of those users was an admin you'd need to add another field to the query.
Alternatively you can use another function, fud_fetch_user() to fetch complete user information about 1 or more users.
__fud_real_user__ is a define unrealted to FUDAPI that tells the forum whether this is a registered user. Another define, _uid will tell you if this is a authorized registered users which is not pending approval, e-mail confirmation or coppa.
FUDforum Core Developer
|
|
|
|
|
Re: A question about FUD API [message #20682 is a reply to message #20681] |
Mon, 25 October 2004 20:30 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If there is >1 online user it will return an array of objects, each object representing a currently online user.
FUDforum Core Developer
|
|
|
|
|
|