Michael Zülsdorff
5 years ago
Michael Zülsdorff
Replied 4 years ago
Balamurali,
your request to decrement the counter when a member account gets deleted comes implemented with Version 5.0 now.
Besides that, I have renamed the component to something more meaningful and added a ranking page.
Michael Zülsdorff
Replied 4 years ago
Well,
similar to the callback
ossn_register_callback('user', 'created', '......');
this component is already using when an account has been created
you may use
ossn_register_callback('user', 'delete', '......');
combined with a function to decrement the invitations counter of the inviter
when the account of the invited gets deleted
Balamurali Govindan
Replied 4 years ago
Great Component. One minor requirement.
If an account got created and deleted, the invitations count doesn't decrement.
Elias Hilario dos Santos
Replied 4 years ago
This will be very good if it works so we can remunerate whoever we invite to the network.
Elias Hilario dos Santos
Replied 4 years ago
The same resource used in the administration where it tells me how many users I have I could use to count how many guests I had, the mechanism is the same, you just need to change the direction.
Mary Greg
Replied 4 years ago
Who can make this component an end use item?
Balamurali Govindan
Replied 5 years ago
Z-Man true.... but the counter is for the individuals to see and tell us that they crossed 100 to get rewards or membership upgrade or 500 to get more cash rewards.
Since now you are capturing this event via this component, we could also run sqls to generate an easy report.
I am also thinking we will eventually automate this and upgrade them to free premium membership the moment they cross a defined number.
So opportunities are many and every OSSN website can implement its own solution/rewarding mechanism.
The key is capturing this event and storing it, which you have done for all of us. Hurray. BIG Thank You.
Michael Zülsdorff
Replied 5 years ago
Sorry Mary,
but I'm afraid I can't help here. I tried to make this a sample component that shows the development progress step by step. Starting with Balamurali's initial idea as basic component skeleton, then adding the database queries and finally the display part. Almost every single line of code even comes with an explanation - that's all I really can do.
Mary Greg
Replied 5 years ago
Z Man How can i do that not write my name as a inviter for all but write the name of the users who sent those invite ? (v2.5 Mary Edition)
Michael Zülsdorff
Replied 5 years ago
Well,
I don't know the number of your members, but isn't it a little cumbersome ckecking every member page to count the invitations a member made in order to find potential reward candidates?