Here is the scope of work.
1. Change alert message to read “You must invite at least N friends to read your messages” instead of “You must send at least N messages to read your messages”. I am re-purposing the send message limit rule.
2. Change button in alert message to redirect to [url removed, login to view] instead.
3. Currently, when I am forced to send a message before I can read my message, there is a flag in the database that prevents me from reading the message. After I send the message, the flag is updated to allow me to read. I want the [url removed, login to view] module to do the same. When the visitor has invited N friends, I would like the application to update the flag.
When they invite a friend, it should send an invite request along with a notification. Please refer to existing code to see this addition that I made to issue a notification. After I invite, I should be redirected to message.php. If I have not invited enough friends, it will give me an alert and tell me how many more friends I need to invite.