Перейти до змісту
Домент ipb-board.ru продається.

Moderators Online Today

Рекомендовані відповіді

Опубліковано

Track and display all moderators who were online over the last 24 hours!

//content.invisioncic.com/a319035/monthly_2022_09/image.thumb.png.2c553a33b97c0d04e4cecfb497e50d73.png

  • All names link to user profiles
  • Names can be plain or group formatted
  • Font size adjustable via selectable IPS classes (ipsType_normal, medium, small)
  • Set a maximum number of names displayed with any overages appended as a count.
  • Actual count appears in the widget title.
  • Widget usable anywhere.
  • You can choose which member groups are allowed to see this widget.
  • You can select which specific moderator groups are displayed in this widget.
  • You can select which specific members with moderator privs are displayed in this widget.
  • Names can be sorted alphabetically or by latest visit to oldest visit (see notes).
  • Coded for zero-impact on page loads!

//content.invisioncic.com/a319035/monthly_2022_09/image.png.9013e77f5ee5016b5642d36f2a1b9399.png

 

Notes:

1) Zero-impact means zero impact. The underlying member data is generated via a task that runs every five minutes. That means a single database query for this data every five minutes, not on every user's page load.

2) This does mean that if you adjust the sort options or the groups from which moderators are selected, you will need to wait up to five minutes for these changes to appear in the widget.

3) By and large it really should not matter how many names you choose to display in the widget, but if this is creeping up towards 1000 or more, the impact will not be from the underlying widget code itself, but merely you pushing out 1000 or more names and links to the page. The widget is cached as well but you still might be pushing too much to the browser. Your site, you test! Test and adjust as needed. Outside of that single database query every five minutes, the rest is all fetched from whatever you have set for your Data Store.

4) Anonymous moderators are NEVER INCLUDED! 

5) Additionally, if you are displaying names from latest visit to earliest, the timestamp used to set this is the initial session start time, not the user's latest activity. This means when a user toggles off their anon status they are likely to appear somewhat down stream in the list of names in the widget rather than right at the top. A slight hedge against stalkerish behavior.

6) Note this plugin not only allows you to display all members online from various moderator groups, but also those individual members you have granted some moderator powers to!

7) Group selection is based on primary AND secondary groups, meaning members who have a moderator group appended as a secondary group will be included! 

? Renewals are every three months but this is mostly to catch out rapid changes in IPS code which are becoming common with their new release cadence. I actually expect, as usual, most people to forgo renewals until they NEED it. Most likely when we see the next point version and the Marketplace requires an update. So don't feel bad if you ignore the renewal notice. If you are rolling large, by all means, coins to your various Witchers, we won't mind!

//content.invisioncic.com/a319035/monthly_2022_09/image.thumb.png.6cbc872bf1a0a949b2d8282573ee20f2.png

Просмотр полной статьи

Для публікації повідомлень створіть обліковий запис або авторизуйтесь