MyBB-Plugins Forums
Facebook style jQuery chat! - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.4.x (http://forums.mybb-plugins.com/Forum-MyBB-1-4-x)
+---- Forum: General (http://forums.mybb-plugins.com/Forum-General)
+---- Thread: Facebook style jQuery chat! (/Thread-Facebook-style-jQuery-chat)



Facebook style jQuery chat! - AlanB - 03-15-2010

I need to know if anyone can help me bring this spectacular real-time chat ... There is already a person who successfully adapted to the SMF forums doing the following:

1.- Edit load.php and find:
$username = $user_settings['member_name'];
and add after that
$_SESSION['username'] = $username;

2.- Edit index.php and find: “$actionArray = array(

and add these lines
'chatheartbeat' => array('chat.php', 'chatheartbeat'),
'sendchat' => array('chat.php', 'sendchat'),
'closechat' => array('chat.php', 'closechat'),
'startchatsession' => array('chat.php', 'startchatsession'),

3.- Put chat.php in the sources folder

4.- Edit chat.js, and replace each “chat.php” with “index.php”

With that achievement that works to perfection...

I believe that to make the usernames appear in our chat forum where the line should look like in MyBB:

$_SESSION['username'] = {$username}

But others do not get ... someone is on this project?
Greetings!


RE: Facebook style jQuery chat! - Diogo Parrinha - 03-15-2010

What's load.php? Part of SMF or the chat application?

Anyway, I guess:
PHP Code:
$username $user_settings['member_name']; 

Should be:
PHP Code:
$username $mybb->user['username']; 



RE: Facebook style jQuery chat! - AlanB - 03-15-2010

Is part of SMF forums... I had not realized the script put the link here this, http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/

And with regard to lines of code, $username = $mybb->user['username']; where I find...


RE: Facebook style jQuery chat! - Diogo Parrinha - 03-15-2010

(03-15-2010, 08:57 AM)AlanB Wrote: Is part of SMF forums... I had not realized the script put the link here this, http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/

And with regard to lines of code, $username = $mybb->user['username']; where I find...

Sorry I don't get you. Don't you know how to find it? Am I supposed to know? Or do you mean something else? Tongue


RE: Facebook style jQuery chat! - AlanB - 03-15-2010

I explain only seen me for what we still need to know if I can help us adapt this chat in my forum MyBB...


RE: Facebook style jQuery chat! - Diogo Parrinha - 03-16-2010

Sorry but I don't understand you.

Moved to General Help anyway. This is not a plugin request


RE: Facebook style jQuery chat! - Laeresh - 04-07-2010

Still being worked on this ?


RE: Facebook style jQuery chat! - maxexcloo - 08-05-2010

I was just trying to add this to my site.
Anyone else done it?