Page 1 of 1

making Private Messages Private

Posted: Fri Jul 13, 2012 6:50 pm
by whoozy
So ive pretty much followed the whole tutorial.
maybe im slow and i missed it, but i didnt get how the messages are private...
if i enter the conversation_id # in the url, you can basically see any conversation


can some one PLEASE help me with this or atleast lead me in right direction...
do i need to create a function that gets the logged in users id# and only lets them view conversations from the database where their user id is?

Re: making Private Messages Private

Posted: Sat Jul 14, 2012 12:05 pm
by jacek
The validate_conversation_id() function is meant to check the user ID to make sure they are a member. If you can read any conversation you must have missed a bit out.

Re: making Private Messages Private

Posted: Sat Jul 14, 2012 9:34 pm
by whoozy
Yes apparently that was one of the videos I skipped. Already had a sort of messaging system so just grabbed some things.. I'll need to go back and see that function

Thank you!