FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Funktions for the regstriation of an User-Session  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Funktions for the regstriation of an User-Session [message #27161] Mon, 29 August 2005 13:12 Go to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
Hello

I have a question:

I would like to know, which funktions are accountable for the regestriation of the user-Session and how can I use them best?

I'm trying myself, but you can maybe help me, so that it's esier for me Smile

Thx

[Updated on: Mon, 29 August 2005 13:12]

Report message to a moderator

Re: Funktions for the regstriation of an User-Session [message #27164 is a reply to message #27161] Mon, 29 August 2005 13:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
users_reg.inc.t has a user_reg class that implements add() and update user methods.

User session handling is done via cookies.inc.t and users.inc.t

There is standalone code available inside the FUD API found inside the scripts/ directory.


FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27166 is a reply to message #27161] Mon, 29 August 2005 14:02 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
ok

But where are these folders?

Its a little bit confuseing, that my folder /forum/ doesnt show anything and I cant change the Folder settings and aktivate that I can see the folders? You understand? I mean my permission is "711"


Thx
Re: Funktions for the regstriation of an User-Session [message #27169 is a reply to message #27166] Mon, 29 August 2005 14:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Use the forum's file manager and you'll see them, they will be in the scripts/ and src/ directories found inside DATA_DIR

FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27170 is a reply to message #27161] Mon, 29 August 2005 14:46 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
ok.


Thank you
Re: Funktions for the regstriation of an User-Session [message #27171 is a reply to message #27161] Mon, 29 August 2005 15:05 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
Ehhh... a question more

How can I use these files best for the regstration of a user-session ?


Re: Funktions for the regstriation of an User-Session [message #27174 is a reply to message #27171] Mon, 29 August 2005 17:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If you want to login or logout a user into the forum the functions best and easiest to use for that purpose can be found inside the forum_login.php file in the scripts/ directory.

FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27177 is a reply to message #27161] Mon, 29 August 2005 18:45 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
Ok, thx first , but what can I change or edit in the file that it works easier and better?

Re: Funktions for the regstriation of an User-Session [message #27180 is a reply to message #27177] Mon, 29 August 2005 19:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
you don't need to change anything, just set values of 2 variables listed at the top and then you can safely use the 2 provided functions.

FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27185 is a reply to message #27161] Mon, 29 August 2005 20:53 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
Im sorry, but i really dont know, which variables you mean. It has something to do with the preview in my editor too:

Quote:

<?php
/* --------- CONFIG OPTIONS START (required) ----------- */
$GLOBALS['PATH_TO_FUD_FORUM_GLOBALS_PHP'] = './GLOBALS.php';
// this value is usually $DATA_DIR/include/theme/default/db.inc, if this is the case
// leave the value empty.
$GLOBALS['PATH_TO_FUD_FORUM_DB_INC'] = '2';
/* --------- CONFIG OPTIONS END (required) ----------- */
?>


Dou you mean that one?

And wich one else?


Re: Funktions for the regstriation of an User-Session [message #27186 is a reply to message #27185] Mon, 29 August 2005 21:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Both of these.

FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27188 is a reply to message #27161] Mon, 29 August 2005 21:05 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
Both of these?

Sorry I dont understand, which one you mean...
Re: Funktions for the regstriation of an User-Session [message #27191 is a reply to message #27188] Mon, 29 August 2005 21:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to put proper values into both of these variables.

FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27192 is a reply to message #27161] Mon, 29 August 2005 21:13 Go to previous messageGo to next message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
yeah, but where is the second variable ??

i dont find it

[Updated on: Mon, 29 August 2005 21:14]

Report message to a moderator

Re: Funktions for the regstriation of an User-Session [message #27194 is a reply to message #27192] Mon, 29 August 2005 21:15 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
$GLOBALS['PATH_TO_FUD_FORUM_GLOBALS_PHP']
$GLOBALS['PATH_TO_FUD_FORUM_DB_INC']

These are the two variables.


FUDforum Core Developer
Re: Funktions for the regstriation of an User-Session [message #27195 is a reply to message #27161] Mon, 29 August 2005 21:17 Go to previous message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma: 0
Junior Member
Ok


Now i understand...thank you for your help
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to ignore smiles
Next Topic: How to stop recording in the table forumsfud_ses ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 10:47:27 GMT 2024

Total time taken to generate the page: 0.02539 seconds