e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
321 stars 214 forks source link

Make ajax private-messaging function #39

Open CaMer0n opened 11 years ago

CaMer0n commented 11 years ago

Upon receiving a Private Message from a user (via the PM plugin), the 'envelope' icon on the navigation bar of the admin-area should turn white ('active' CSS class) and display the number of unread messages next to it. Clicking this icon should allow the admin to read the message, and respond immediately without leaving the page. Similar functionality should be available to the front-end also, allowing for 2-way communication similar to Facebook chat/messaging between admin and users.

Will no doubt require the addition of an ajax timed refresh within all.jquery.js

BillyBoy0823 commented 11 years ago

I had done something similar to this with Chatbox II, It uses e107''s security features to protect it well. I could give more details in private of what I learned about security and refresh timings. There was even one VERY active site using it and it worked great with the timings I have as defaults. There were sometimes 10 or so posts within one minute and it handled things well.

Things I had to worry about was;

Too fast at updates with the wrong settings could put people on the banned list. If the server isn't great, It would sometimes show error messages instead of the chats. People trying to somehow post without doing it the right way. e107 security handled.

Maybe we could incorporate the way ChatBox II does it into chatbox, pm, as well as admin page refreshes.

Maybe I should update Chatbox II and comment the heck out of it so whoever takes it on will know what I went through, and why I did what I did, so even though they might do it a different way, they would be aware of some roadblocks I had, and the solutions found.

Just a thought.....

CaMer0n commented 11 years ago

Sounds good!