Invitations Counter

5.0
German Michael Zülsdorff 3 years ago

Invitations Counter


[ Details | Download | Support ]

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

us Mary Greg Replied 3 years ago

Who can make this component an end use item?

in Balamurali Govindan Replied 3 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 3 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.

us Mary Greg Replied 3 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)

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

Component

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

Versions