We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to use 3rd Party Chat in Oxwall (get username variable) | Forum

John
John Jun 11 '14
I would like to add in a 3rd party chat software to my oxwall powered website, but the chat requires me to set a username for the user. Currently i am using $_SESSION['username'] which used to work on my old non-oxwall powered website but it doesn't work on this.


How would i go about grabbing the username variable, and if possible, how can i insert it into my custom page code?


Thankyou for your time.

ross Team
ross Jun 11 '14
Topic was moved from General Questions.
Steve
Steve Jun 11 '14
I too would like to know the method for doing this.
Dave
Dave Jun 13 '14
Hi john this how i use my chat integration with oxwall hope this helps

OW::getSession()->start();
$application = OW::getApplication();

if ( OW_PROFILER_ENABLE || OW_DEV_MODE )
{
    UTIL_Profiler::getInstance()->mark('before_app_init');
}

$application->init();
The Forum post is edited by Dave Jun 13 '14
Dave
Dave Jun 13 '14
I need to know what chat you are trying to use as i use 2 chats irc and also i use avchat  so i might be able to help

cheers