Invitations Counter

5.0
German Michael Zülsdorff 5 years ago

Invitations Counter


[ Details | Download | Support ]

Comments
Comments are disabled for this project!
German Michael Zülsdorff Replied 5 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.

German Michael Zülsdorff Replied 5 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

in Balamurali Govindan Replied 5 years ago

Great Component. One minor requirement.

If an account got created and deleted, the invitations count doesn't decrement.

Breton Elias Hilario dos Santos Replied 5 years ago

This will be very good if it works so we can remunerate whoever we invite to the network.

Breton Elias Hilario dos Santos Replied 5 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.

in 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.

German 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.

German 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?

in Balamurali Govindan Replied 5 years ago

Thank You Z-Man. Awesome.

in Balamurali Govindan Replied 5 years ago

Thank You Z-Man. I will test this and let you know.

Counter to be displayed for the invited user is the only functionality to be added.

Component

Developer: Michael
License GPL v2
Type: Site admin
Requires OSSN Version : 7.1
Latest Version:
Last Updated
Repository Url View Repository

Versions