Objective:
Create a button in our email for evaluate the articles.
The button must redirect to our joomla site, log the user automatically and sent to the specific article or application for evaluation.
Use Case:
Initial Requirement:
1. User receives email with a specific article and application.
Flow:
2. User click in button “Will do”
3. User is redirected to [login to view URL]
4. System autologin the user without interaction with the user.
5. System redirects the user to the article or application sent in the email.
6. System logs the access of the user in the database.
7. The part of the page where is located the rating system is showed to the user.
Final result.
8. User is registered in the system and is able to rating the item.
9. System log the user access with the following information:
a. User_id
b. Item_id
c. url
d. datetime
Format:
For enable access to the link a php function will be called with the aim of get the customized email.
$link_to_item = get_item_url($user_id, $item_id);
$link_to_item (string):
• Must be something like:
href://[login to view URL]
• We will introduce this link inside the html tag like:
Link to item
get_item_url() (php function)
• Php function with the necessary code for get the link desired
$user_id
• Identification number of the user retrieved from id value of #__users table
$item_id
• Identification number of item retrieved from id value of #__k2_items table
Requirements:
User interaction from the email to the item in our website must be one click.
User must be logged when he is sent to the item.
Delivery:
The following information must be delivered:
• Php file with the code
• Extra files nedded for give the funcionality
• Documentation of installation
• Documentation with explanation of the files/code.
The server information will be provided on demand.