Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
Sessions
qikstudios



Joined: 26 Feb 2008
Posts: 342

Posted: 02/16/09 03:01 
Hello - I am integrating a chat scipt - I need to know where and how the sessions are created and how to echo the username to the script - how can I echo directly from a php file the username?

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 02/16/09 12:44 

represent:
Hello - I am integrating a chat scipt - I need to know where and how the sessions are created and how to echo the username to the script - how can I echo directly from a php file the username?


create a file called "test.php" in your Jamroom directory (or whatever you want to call it) and do this:


Code

<?php
require_once('include/jamroom-include.inc.php');
$_user = sessionVerify();
echo $_user['user_nickname'];
?>


then call it:

http://yoursite.com/test.php

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.