Page 2 of 2
Posted: Tue Nov 21, 2006 2:44 pm
by RobertGonzalez
phpBB uses PM (phpBB is the forum software that we run here). You could always download the phpBB code and try sifting through it. I will warn you in advance, it is a fairly complex beast if you are not used to PHP, but if you can spot logic, you may well be able to figure out how they set theirs up.
Posted: Tue Nov 21, 2006 2:47 pm
by gfirman
Thanks man, yes thats what I'm trying to do. I have the Registration and Login up and running.
Posted: Tue Nov 21, 2006 2:52 pm
by John Cartwright
it's pretty simple for sending messages to eachother, simply setup a table called messages with
message id, sender_id, recipient_id, message, timestamp
when sending a message simply do an
Code: Select all
mysql_query('INSERT INTO `messages` SET `sender_id` = *sender id*, `recipient_id` = *recipient id*, `message` = \'*message*\', `timestamp` = '. time()) or die(mysql_error());
note: associate the *recipient id* with whomever is sending the message, and insert their respective id number, same goes for *recipient id* except insert recipient user's id.. and so forth with the message
To view messages simply query all messages in that table with the respective `recipient_id` from your users table.