making Private Messages Private

Post here is you are having problems with any of the tutorials.
Post Reply
whoozy
Posts: 2
Joined: Fri Jul 13, 2012 6:46 pm

making Private Messages Private

Post 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?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: making Private Messages Private

Post 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.
Image
whoozy
Posts: 2
Joined: Fri Jul 13, 2012 6:46 pm

Re: making Private Messages Private

Post 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!
Post Reply