1. Used this link to set up a UserPoints Store: Drupal 7 - How to Set up a Simple UserPoints Store
https://www.drupal.org/node/2365859
2. Need help finishing one thing
2.a When user flags item
2.b some code starts working and logs the fact that this specific user just flagged this specific page(content)
2.c Once this information is logged somewhere.
2.d the page(content) that the user see's as [Already Flagged] needs to automatically unflag.
2.e So that user can flag it again if he wishes.
If you look in the link above it can be understood that flagging a item(page/content) deducts points from the UserPoints system. As soon as the user presses [flag this] they get the option to type in the quantity they would like to "purchase" or flag. I need this quantity logged too.
In short, this is an example of how it should log:
User | Time/Date | Quantity | Page
id2 | 8/18/2016 | 3 | /node/9
id7 | 2/13/2016 | 1 | /node/5
id4 | 4/28/2016 | 1 | /node/1
I hope it makes sense. It would make more sense if you take a look at the info in the link.
Comments
Comment #2
joachim commentedSorry, I don't really understand what you're asking for. Can you explain more clearly, and in simple steps please?
(BTW: please don't use the tags field for random keywords!)
Comment #3
DezignsNow commentedComment #4
joachim commentedSo you want to immediately unflag something that the user flags, and yet also record that the user did the flagging of it?
I daresay you could code something to do that, but it seems rather perverse. The flagging is the record. When you unflag, it's gone. What you want isn't Flag, but something else which records single clicks to a link and keeps the link in the same state.