logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Dreamweaver General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-26-2015, 06:08 PM   #1
Tiger
 
Join Date: Sep 2015
Posts: 15
Thumbs up Can some make a tut on Private Message?

Hey all, I've made my own private message inbox (for my members) but it's not secure asin, other can change the url to see others inbox lol.

So, If anyone out there could make a little secure tutorial i'd really appericate it! THANKS
Tiger is offline   Reply With Quote
Old 09-26-2015, 11:15 PM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

That would be an interesting project.
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 09-26-2015, 11:23 PM   #3
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

The basic requirements are that messages need tobe stored in a database. They are then accessed by the intended member.
I quickly yahoogled for a tutorial for you and found one but it is using depreciated mysql so needs updating .
Let me see if i have time for this
http://www.webestools.com/scripts_tu...iscussion.html
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 09-27-2015, 06:29 PM   #4
Tiger
 
Join Date: Sep 2015
Posts: 15
Default

Quote:
Originally Posted by edbr View Post
The basic requirements are that messages need tobe stored in a database. They are then accessed by the intended member.
I quickly yahoogled for a tutorial for you and found one but it is using depreciated mysql so needs updating .
Let me see if i have time for this
http://www.webestools.com/scripts_tu...iscussion.html
Thank's im looking right now, If it work's i'll do an Tutorial
Tiger is offline   Reply With Quote
Old 09-27-2015, 06:48 PM   #5
Tiger
 
Join Date: Sep 2015
Posts: 15
Default

It works, But still has the problem of users being able to read someone messages by changing the URL Id lol, Any suggestions?
Tiger is offline   Reply With Quote
Old 09-28-2015, 01:36 AM   #6
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

As i said in your other post refering to this, dont use $_GEt.
join a message table to the members table linked by unique ID
you can the no a select count on new message to show if that memer has new message, then retrieve in a message page , obviously restricted to that member.
on retrieval the message record will need to be updated to subtracy form the new message field and added 1 to the read message field.
the link i sent you hopefully will set you on the path
Also you didnt state if you are using PDO or mysqli
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 09-28-2015, 07:43 PM   #7
Tiger
 
Join Date: Sep 2015
Posts: 15
Default

Quote:
Originally Posted by edbr View Post
As i said in your other post refering to this, dont use $_GEt.
join a message table to the members table linked by unique ID
you can the no a select count on new message to show if that memer has new message, then retrieve in a message page , obviously restricted to that member.
on retrieval the message record will need to be updated to subtracy form the new message field and added 1 to the read message field.
the link i sent you hopefully will set you on the path
Also you didnt state if you are using PDO or mysqli
Not sure how to do that, But i've found another solution to my problem. Thanks anyway
Tiger is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com