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
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 |
anyone?...need this quick.. thanks Dean |
anyone?.....:( |
one last bump.... |
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.
/* 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. */ |
i looked in the file u said but dont see anything u mentioned..lol all i need is - username and gender. |