Brad Padgett
Well-known member
I'm trying to create a "Most Users Ever Online" add-on. If I manage to pull it off I plan to release it as a free release to the community.
I need the run-down on when I should take the initiative to create a table vs whether I should create a column in one of the tables instead.
I've actually come fairly far to see in my phpstorm IDE that src\XF\Repository\SessionActivity.php is the file I'll need to add a proxy class too in order to do this. I can simply add a proxy class based on the XF proxy system and use the Finder so that it will dump out the total users online.
My simple question is this. What table should I add the column to or should it be a separate table? Last question is do you suggest I use the proxy class system for the entity/finder and when are you able to know when it's needed and when you should extend a class without it?
I'm actually quite happy I found the right file for the add-on. You can view the php code and see that the majority of the file is for the online users record.
Any help you can provide with this is highly valued. If I can manage to learn how to do this one add-on I can do many more in the future.
And @Chris D I know your quite busy to respond to everyone's postings but I wanted to tag you just in case your able to help.
I need the run-down on when I should take the initiative to create a table vs whether I should create a column in one of the tables instead.
I've actually come fairly far to see in my phpstorm IDE that src\XF\Repository\SessionActivity.php is the file I'll need to add a proxy class too in order to do this. I can simply add a proxy class based on the XF proxy system and use the Finder so that it will dump out the total users online.
My simple question is this. What table should I add the column to or should it be a separate table? Last question is do you suggest I use the proxy class system for the entity/finder and when are you able to know when it's needed and when you should extend a class without it?
I'm actually quite happy I found the right file for the add-on. You can view the php code and see that the majority of the file is for the online users record.
Any help you can provide with this is highly valued. If I can manage to learn how to do this one add-on I can do many more in the future.
And @Chris D I know your quite busy to respond to everyone's postings but I wanted to tag you just in case your able to help.