This usually goes hand-in-hand with some privacy. In most cases you
will only want users who are buddies to be able to send messages to
each other. In other words, you would need a buddy system, which will
complicate things a bit more but would make your application a little
bit more robust.

If A and B are buddies, they can send private messages to each other.
If not, an invitation to be a buddy is first required along with
acceptance. That way you would be building a community of users who
based on certain criteria would eventually become buddies.

If you don't mind all your users sending messages to whoever they want
to, then it's no problem. However, sooner or later you will likely
receive a complaint from some of your users about other members
sending them messages, etc...

Hope that helps.

Regards,

Alfredo

On Wed, Mar 25, 2009 at 1:16 PM, andruu <andru.w...@gmail.com> wrote:
>
> Create a table called messages with a from_user_id column that relates
> back to the user sending the message, a to_user_id which will relate
> to the user who is receiving the message. then a body field for the
> actual message.
>
> Should be quite simple.
>
> On Mar 25, 8:41 pm, "Dave Maharaj :: WidePixels.com"
> <d...@widepixels.com> wrote:
>> Does anyone know of a good setup where users can send messages back and
>> forth to other users? Something like a email app but only its not sent to an
>> actual email, just a message on the site its self.
>>
>> Thanks
>>
>> Dave
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to