Trigger
Member
Hello,
I'm pretty new to PHP, but I figured this shouldn't be too difficult; I'm having trouble working with XenForo's classes/setup, unable to really find what I need.
In short, I run a Minecraft server which makes use of a handy little plugin called JSONAPI, which allows me to pass arguments to the server securely from any PHP script/application.
I've been following the tutorials section here, borrowing any parts that seem relevant to making a simple add-on, but I've got myself pretty stuck in looping through users.
Essentially I want to loop through all my forum users, checking:
This loop should also then revert players back to the Member group within 5 minutes of their forum upgrade expiring if based on highest rank.
I got XF setup with Eclipse PDT today, but even then I've not been able to see what/where the options I might need are.
If anyone can lend a hand, I'd be most appreciative. (Don't worry about the JSONAPI stuff, that much I know how to do, I have a non-cron standalone script that already upgrades guest players to a member)
Thanks,
Adam
I'm pretty new to PHP, but I figured this shouldn't be too difficult; I'm having trouble working with XenForo's classes/setup, unable to really find what I need.
In short, I run a Minecraft server which makes use of a handy little plugin called JSONAPI, which allows me to pass arguments to the server securely from any PHP script/application.
I've been following the tutorials section here, borrowing any parts that seem relevant to making a simple add-on, but I've got myself pretty stuck in looping through users.
Essentially I want to loop through all my forum users, checking:
- That they have filled in their Minecraft username in the custom user field (id 'minecraft')
- Their highest ranked user group (of which I have 5; Member, Donator, VIP, Staff, Admin)
This loop should also then revert players back to the Member group within 5 minutes of their forum upgrade expiring if based on highest rank.
I got XF setup with Eclipse PDT today, but even then I've not been able to see what/where the options I might need are.
If anyone can lend a hand, I'd be most appreciative. (Don't worry about the JSONAPI stuff, that much I know how to do, I have a non-cron standalone script that already upgrades guest players to a member)
Thanks,
Adam