Tuesday 21 May 2013

Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP


This tutorial helps and teaches you how to build a simple but powerful Private Messaging System which is similar to that of Facebook with amazing features such as the following:

(1) Log-in System.

(2) Option to Compose and Send New Messages.

(3) Option to search for a desired user or friend for messaging purpose.

(4) Displaying of users in the system which could also be referred to as Friends List.

(5) Sending of messages without page refresh.

(6) Displaying of newly sent message(s) without page refresh.

(7) Show short titles or descriptions for sent and received messages - similar to Facebook,

(8) Show sent and received message status such as (Read or Unread) - similar to Facebook,

(9) Set current user or friend communicating with to selected even when the page is reloaded - similar to Facebook.

(10) File attachments with File Identification.

(11) Download attached files with photo enlargement - similar to Facebook.

(12) Hide and show send message button - similar to Facebook.

(13) Press enter key to send messages - similar to Facebook.

 (14) View all conversations had with friends or users.

(15) Nice view of date and time messages are or were sent.

(16) Delete messages without page refresh.

(17) Nice confirmation box for message deletion and log out, etc.

The system supports all browsers and the script is written in a way that any one can easily understand and customize with good programming code comments to ease usability.

To disable the current log-in for this system so as to use your existing log-in systems, just create a cookie session with the following variables:

Below is a JQuery Code Example but you can as well do it with PHP depending on what you prefer.

$.cookie('session_username', 'Logged-in session username goes in here');
$.cookie('session_fullname', 'Logged-in session fullname goes in here');
$.cookie('friends_username', 'Logged-in session username goes in here again');
$.cookie('friends_fullname', 'Logged-in session fullname goes in here again');

That's all. Once you have created the cookie session with the above variables during the log-in process of your existing system, the page where the private message system is placed will not prompt for a second log-in again and the system will as well identify the logged-in user.

------------------------------------------------------------------------      SCREEN SHOTS     ------------------------------------------------------------------------

Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP



Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP



Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP


Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP


Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP



Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP





Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP




Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP




Private Messaging System v5 similar to Facebook using Ajax, Jquery and PHP



15 comments:

  1. I don't even know how I ended up here, but I thought this post was great. I do not know who you are but definitely you are going to a famous blogger if you aren't already ;) Cheers!


    My site; Classic porn for sexy girl on the seashore

    ReplyDelete
  2. This is a topic that's close to my heart... Thank you! Exactly where are your contact details though?


    my web site Stacee Coombe

    ReplyDelete
  3. Pretty! This has been an incredibly wonderful post.

    Many thanks for providing these details.

    Feel free to surf to my homepage; barbie in the pink shoes

    ReplyDelete
  4. I blog frequently and I seriously appreciate your information.
    This great article has truly peaked my interest. I will
    take a note of your blog and keep checking for new details about once a week.
    I subscribed to your RSS feed as well.

    Here is my web page ... dog food storage

    ReplyDelete
  5. Nice weblog here! Also your site a lot up fast! What host are you using?
    Can I get your affiliate hyperlink for your host?
    I want my site loaded up as quickly as yours lol

    Look at my site: calvin klein jeans

    ReplyDelete
  6. Awesome things here. I am very glad to peer your post.
    Thank you a lot and I am looking ahead to touch you.
    Will you kindly drop me a mail?

    Take a look at my weblog: high waisted dance shorts

    ReplyDelete
  7. This excellent website definitely has all the information I wanted about
    this subject and didn't know who to ask.

    Feel free to surf to my homepage disney princess enchanted journey

    ReplyDelete
  8. This is a good tip especially to those new to the blogosphere.
    Short but very precise information… Many thanks for sharing this one.
    A must read article!

    Review my webpage :: tie dye fabric

    ReplyDelete
  9. Excellent post. I'm dealing with a few of these
    issues as well..

    My web page; allegra k

    ReplyDelete
  10. If you want to grow your knowledge only keep visiting
    this web site and be updated with the latest information posted here.


    my webpage :: tie dye leggings

    ReplyDelete
  11. My brother recommended I would possibly like this web site.

    He was once entirely right. This submit truly made my day. You can not imagine simply how much time I had spent
    for this information! Thank you!

    my blog post ... pokemon fire red walkthrough

    ReplyDelete
  12. It's a shame you don't have a donate button! I'd certainly donate to this brilliant blog!

    I guess for now i'll settle for book-marking and adding your RSS
    feed to my Google account. I look forward to brand new updates and will share this site
    with my Facebook group. Talk soon!

    My blog ... tie dye pants

    ReplyDelete
  13. I'm gone to tell my little brother, that he should also go to see
    this webpage on regular basis to get updated from hottest news.


    Feel free to visit my web blog toy story buzz lightyear

    ReplyDelete
  14. We absolutely love your blog and find a lot of your post's to be just
    what I'm looking for. Do you offer guest writers to write content for you personally?
    I wouldn't mind composing a post or elaborating on a number of
    the subjects you write with regards to here. Again, awesome site!



    Here is my page :: high waisted swimsuit

    ReplyDelete
  15. fantastic submit, very informative. I'm wondering why
    the other experts of this sector don't realize this.

    You should proceed your writing. I'm sure, you've a great readers' base already!


    My web page star wars clone wars movie

    ReplyDelete