473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem in Private messaging system

Hi,
Ive created a private messaaging system for my project. It works all fine.
I wanted to know how i can keep a count of the read and unread messages.
So that whenever the user logs in he is displayed the number of unread messages.
I also wanted to add the text formating and smiley feature when composing a message.
How can it be done.
Mar 21 '08 #1
1 1226
dlite922
1,584 Expert 1GB
Hi,
Ive created a private messaaging system for my project. It works all fine.
I wanted to know how i can keep a count of the read and unread messages.
So that whenever the user logs in he is displayed the number of unread messages.
I also wanted to add the text formating and smiley feature when composing a message.
How can it be done.
if you designed this, i'm surprised to see a question like this. To that this post might seem like i'm mocking you, but i hope it helps.

In the table that stores your messages, have a column that has a boolean flag. When the user requests to view that message set the flag to Off (read), otherwise it is left On (unread)

When the user views the inbox (or at any time) query the message table for all message for this user with that flag on, and then total of messages

You'll get Total UNREAD and Total number of messages.

Total messages minus total unread = total read messages.

as for the smilies, search google for WYSIWYG editor that has support for smilies and BBCode.

For a powerful editor, i'd use TinyMCE (a little too advanced) but you can easily implent custom buttons (such as insert smilies) if you choose to.

Good luck


DM
Mar 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Nikhil | last post by:
I have an MSMQ dll created in C# when called through a C# windows form application it works fine but when I call it using an ASP page I get an error while trying to send a message attached the...
5
by: Pete Loveall | last post by:
I have a server application that monitors a private local queue for messages. The message sent to it has a label and a response queue defined. It works correctly when the queue is accessed via...
1
by: CLEAR-RCIC | last post by:
I have a piece of code that works in C# but when I convert it to VB.Net I get the following error: "Cannot deserialize the message passed as an argument. Cannot recognize the serialization format."...
3
by: Gerhard Swart | last post by:
Hi all. I'm writing a queue browser that reads queues from a specified machine and then display the data that's on the queue. I am using the MessageQueue Class in .Net(C#). I get the problem...
1
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
9
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
4
by: Risen | last post by:
Hi,All, I read MSDN about MessageQueue,and then I want to write some code to test MessageQueue in Vb.Net 2003. But there are some errors in code,and I don't know which code are incorrect. Who...
4
by: Al_C | last post by:
Is there a control that permits me to run an exe file inside a form? I've tried the process.start approach and it doesn;t seem to do what I expected. There doesn't seem to behave the way I expect...
2
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would...
0
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.