Hi, I did something similar to this for the chat I created on my phpBB forum. Basically, there are two thing you want to achieve: Log history and transmis to only one client instead of transmitting to everybody in the channel, am I right?
For the chat history, I suggest that you use MySQL. I don't think Ape support this out of the box. You could keep all the messages in a server side variable, but you'll lose everything once you restart Ape and it's not that usefull that Ape knows everything. When the page is loaded, you get the data from MySQL and voila. If you have MySQL support working within Ape, it's a piece of cake to add in a custom server side command. If you don't have MySQL support like me, you can send the data to MySQL with a background AJAX request. For the one-to-one chat, you can send a custom raw to a specific user from a custom server side command. Have a look at those two pages: http://www.ape-project.org/docs/server/users/getuserbypubid.html http://www.ape-project.org/docs/server/users/user.pipe.html - Louis On Nov 25, 9:47 pm, Rossco <ros...@rossco-designs.com> wrote: > Hi there, > > I need some help with what I'm trying to achieve for a gaming website > I run. What I would like is to have an ajax style shoutbox that will > display usernames from the CMS I use to run the site as well as their > message of course. I can pass the user details through to the class > using class options ({'username' : 'myname', 'userid' : 22}). > > I would like to extend this to allow one to one chatting as well. The > shoutbox will just be on display at the top of the site but the one to > one chats will be initiated by clicking a member who is on a buddy > style list. I would like their to be a history of the shout and one > to one chats held so either a single chat can be resumed and those > visiting the shoutbox will see the last 30 messages say. Does this > require mysql or is it already a function built in to APE? > > I will be using Mootools as it's my choice of library for dom effects > etc. Could someone how I best approach this? I do have some > experience with writing my own mootools scripts and classes but having > looked through the documentation, I'm not quite sure how to do this. > > I am using centOS 5.3, the latest APE which is running fine according > to the status script. > > Any help would be great. > > Thanks -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to ape-project@googlegroups.com To unsubscribe from this group, send email to ape-project+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/