We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ ! ] Member Seniority Tracker
Topic Started: Aug 25 2012, 04:10 PM (557 Views)
lonewolfe2015
Member Avatar
Member
[ *  * ]
Board Address: http://w11.zetaboards.com/The_Javahouse_League/index/
Board Software: Zeta
Description:

Part of what my community intends on doing is using a particular group's seniority as a way of 'upgrading' them within the community going forward. After 14 days of participation as one group, we consider moving them up to a 2nd group. After 6 months, they can be moved to the 3rd group.

Maintaining an accurate hand count could get a bit tedious going forward and remembering to upgrade them promptly, so I was wondering if someone might have an idea on how to create a script which will count the number of days a particular member is a part of a particular group and then make an alert for their name appear somewhere that specific groups can see (perhaps a drop down list next to the Admin CP table which shows the 5 closest to graduation and can be clicked to show a list of people currently being tracked with how many days remaining and their current member group?).

Thanks to anyone willing to take on this challenge.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I could be wrong, but I don't think there's anyway to determine how long they've been apart of a group with JavaScript, it sounds like that would require sever-side code.
Offline Profile Goto Top
 
lonewolfe2015
Member Avatar
Member
[ *  * ]
I was thinking the best way would to have the script start counting the group they see them in. If you can capture their group, everyday the script could run once and tally the members in a specific group, new members start at day 0, members already at 0 but still in the group become day 1, etc.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
lonewolfe2015
Aug 26 2012, 12:55 AM
everyday the script could run once.
Nope, the scripts runs all the time on every page by the user viewing the page. The server doesn't know, nor care, when JS is run as it is run in the browser, which by definition is per user.

Even if a code was created to search every member (which isn't feasible as it would also be doing so for every user who views your board) that information (Which needs to be stored somewhere, as JS is run by each user so it needs a DB to store that data) could only be acted upon by a user who has access to change member groups (with the only option being Auto Member Tools as ACP access is not possible with JS) so even if a user was overdue for a group change did log in, they would not be changed group unless a mod came online and somehow knew that user was overdue and then automagically changed their group
Edited by Quozzo, Aug 26 2012, 03:32 PM.
Offline Profile Goto Top
 
lonewolfe2015
Member Avatar
Member
[ *  * ]
Admittedly I don't understand JS, but I don't need it to automatically change their groups. Just create a tracking form which can properly alert admins when someone is due for their upgrade if they are to be accepted.

If that's not possible, then oh well, worth a thought. We'll have to pin a thread somewhere and manually edit a table as we go and try and get the members to remind us of their graduation times too.

Thanks though, both of you.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Your best option would probably be to setup a timer and have it countdown until the time is up and it will alert administrators when they need to change their group. What you are wanting is to basically have a timer countdown how long a user has been apart of a group, which I don't see possible with JavaScript because there's no way of knowing when they changed groups, that data would need to be stored for multiple users, that's where PHP/MySQL comes in. Overall, the ways this would work best is essentially too complex for JavaScript to handle.
Offline Profile Goto Top
 
lonewolfe2015
Member Avatar
Member
[ *  * ]
Understood, thanks Cory and Quozzo. I'm working with Zeta right now but was last administrating an IPB forum so I'm still getting used to the notion of scripts versus plugins and hooks. We'll keep a manual table in the staff forums and see about our options when/if it becomes too much to maintain.
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
This request was deemed impractical by our code team. This could mean that the feature you have requested is impossible to write, requires PHP and/or hosting, or requires too many AJAX requests. If you have any questions about why this request is not practical, feel free to contact a member of the code team.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic