Welcome to the bug tracker of MyNotebook
FS#11 - Create a way to link notes
|
DetailsThere should be a way to link notes, so that people can read a special
note. |
This task depends upon
|
DetailsThere should be a way to link notes, so that people can read a special
note. |
This is difficult, because the link can be send to several people but only the person you send the link to is supposed to read it. Maybe you don't want the person to be able to read the note forever, so there should be some timelimit, or a reminder.
There has to be an easy way to create this link, too.
If you have got some ideas, post them here.
1. Add a property "Public" Or "Private"
2. A public user can view and search your public notes
3. A timer for a note if neccessary. after which the note will become private again.
A link could be
http://mynotebook/viewnote.php?id=aID
which can simply return an error page if the note is private
maybe in the future the notebook will be multi-user and then you can send your note to another user in the notebook.
Right now I'm working on some idea to create the link from an id+timestamp+password. As soon as it's testet I post it here
Create a String that contains the ids of the notes, a timestamp and a checksum. This could look like: 12 31 2-872618273-271. Then this string gets AES encrypted using the mcrypt library. After encrypting convert the result into a hex string. This is String is included in the link you send to people.
This makes it possible to:
- make a note available to the public until a special date
- create several links for different notes which have the same expiration date
- you cannot manipulate the string in the url since it will lead to a invalid decoded string.
This can be used to encrypt the content of a note in the database, too. Of course without the hex-part!