variables login

Can someone tell me what the the PHP session variables for dolphin 6.1.6 are?The chat we are getting building needs 2 variables passed, gender and username.

regards

Dean

Quote · 25 Jan 2010

anyone?...need this quick..

thanks

Dean

Quote · 25 Jan 2010

anyone?.....:(

Quote · 25 Jan 2010

one last bump....Wink

Quote · 25 Jan 2010

To find out the session variables, first locate a base php.  I would recommend using something like the templates/base/scripts/BxBaseProfileView.php file. When designing a custom mod, one of the first thing you have to do is find out what's going on naturally with Dolphin.


Go to the top of the base file get all the variables, etc.

/*

print_r($_SESSION); //This will get display the session variables

print_r($_REQUEST); //This will get some additional variables that are being passed from page to page

print_r($_COOKIE);  //This will display the active cookies

After you do this, you'll see tons of arrays appearing at the top of the page.  Look within the bracket of the array and you should find things like memberID and things like that.  To use one of the session ids or cookies, simply assign the value of the array to a variable.

For example, if I want to be able to use the memberID, I would do something like this:\

$userID = $_SESSION['memberID'];  //This is just an example.  After you assign it, it's up to you how to use it in a function.

*/

Quote · 26 Jan 2010

i looked in the file u said but dont see anything u mentioned..lol

all i need is - username and gender.

Quote · 26 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.