The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
can we have 'online' symbols next to mods' names at the bottom of the index
Would it be possible to stick an online indicator next to the moderators' names at the bottom of the various forum pages? Like, in the little box that says "Moderators?"
Also, could we move that box to the top of the page, rather than the bottom?
RamiusJoined: July 19, 2000Administrator, ClubPAadmin
edited July 2007
I took a look at it. There is no way I can see to accomplish this through the standard templates and plugins system. The closest I could get would be to indicate whether or not the moderators of that forum are currently browsing that forum. And I would have to incur an additional query for that, which I'm not too keen on.
It looks promising if I were to modify the getimodcache code to pull the invisible, lastvisit, and lastactivity fields, then I could probably use a plugin (hooked to forumdisplay_moderator) to call fetch_online_status passing in the $moderator variable. But since that requires a patch to the code, it requires extra work which I cannot do right now. Which is why I'm documenting the process, so I can refresh my memory later.
Just_Bri_ThanksSeething with ragefrom a handbasket.Registered User, ClubPAregular
edited July 2007
Any chance of tying it in to that query you had disable for a bit the other day; where the forums check to see if someone is a mod?
Just_Bri_Thanks on
...and when you are done with that; take a folding
chair to Creation and then suplex the Void.
0
RamiusJoined: July 19, 2000Administrator, ClubPAadmin
edited July 2007
showthread is a totally different execution stream from forumdisplay.
Within showthread, the user data is already populated with online-statuses, but the "who is a moderator of this forum" info was not being populated. So the plugin I wrote for that went and got the moderator information. I'm actually not positive yet if that one results in a query. I believe that in most cases it is able to pull it out of the cache. I really need to instument that some time, to be sure.
Within forumdisplay, we already know who is a moderator (it is shown at the bottom of the page), but we don't know their online status. The fetch_online_status function is also of no help because the $moderators data structure does not carry the required data fields.
But thanks for asking, because talking about it here made me realize that storing the online-status within the moderators cache will not be helpful, because something as variable as online-status isn't something that is really cachable. I'll have to find a different plan of attack.
*The table where the online-status fields reside is already being queried when the moderator cache is being filled, but only a couple select fields are being pulled, and the online-status field is not one of them.
Posts
nuh-uh
It looks promising if I were to modify the getimodcache code to pull the invisible, lastvisit, and lastactivity fields, then I could probably use a plugin (hooked to forumdisplay_moderator) to call fetch_online_status passing in the $moderator variable. But since that requires a patch to the code, it requires extra work which I cannot do right now. Which is why I'm documenting the process, so I can refresh my memory later.
chair to Creation and then suplex the Void.
Within showthread, the user data is already populated with online-statuses, but the "who is a moderator of this forum" info was not being populated. So the plugin I wrote for that went and got the moderator information. I'm actually not positive yet if that one results in a query. I believe that in most cases it is able to pull it out of the cache. I really need to instument that some time, to be sure.
Within forumdisplay, we already know who is a moderator (it is shown at the bottom of the page), but we don't know their online status. The fetch_online_status function is also of no help because the $moderators data structure does not carry the required data fields.
But thanks for asking, because talking about it here made me realize that storing the online-status within the moderators cache will not be helpful, because something as variable as online-status isn't something that is really cachable. I'll have to find a different plan of attack.
*The table where the online-status fields reside is already being queried when the moderator cache is being filled, but only a couple select fields are being pulled, and the online-status field is not one of them.