Current time: 02-10-2012, 06:57 AM Hello There, Guest! (LoginRegister)




MySubscriptions, Donation Bar, MyDownloads, MyAchievements and support for our free and paid plugins. All that for $7!

Advertise Here!
Are you looking to advertise on this forum? Please read this announcement thread.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook style jQuery chat!
03-15-2010, 06:23 AM
Post: #1
Facebook style jQuery chat!
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!
Find all posts by this user
Quote this message in a reply

03-15-2010, 08:45 AM
Post: #2
RE: Facebook style jQuery chat!
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']; 

[Image: s.png]
Find all posts by this user
Quote this message in a reply
03-15-2010, 08:57 AM
Post: #3
RE: Facebook style jQuery chat!
Is part of SMF forums... I had not realized the script put the link here this, http://anantgarg.com/2009/05/13/gmail-fa...uery-chat/

And with regard to lines of code, $username = $mybb->user['username']; where I find...
Find all posts by this user
Quote this message in a reply
03-15-2010, 09:03 AM
Post: #4
RE: Facebook style jQuery chat!
(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-fa...uery-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

[Image: s.png]
Find all posts by this user
Quote this message in a reply

03-15-2010, 12:31 PM
Post: #5
RE: Facebook style jQuery chat!
I explain only seen me for what we still need to know if I can help us adapt this chat in my forum MyBB...
Find all posts by this user
Quote this message in a reply
03-16-2010, 12:20 AM
Post: #6
RE: Facebook style jQuery chat!
Sorry but I don't understand you.

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

[Image: s.png]
Find all posts by this user
Quote this message in a reply
04-07-2010, 09:02 PM
Post: #7
RE: Facebook style jQuery chat!
Still being worked on this ?

Automated post exchange, it's really that easy !
Find all posts by this user
Quote this message in a reply

08-05-2010, 08:33 PM
Post: #8
RE: Facebook style jQuery chat!
I was just trying to add this to my site.
Anyone else done it?
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)