JD
Full Member
Posts: 771
inherit
180643
0
Sept 27, 2024 15:01:41 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Dec 14, 2018 3:32:58 GMT -8
Hey there!
I asked this in the template boards a while ago and there doesn't seem to be an element that works for this so was suggested that it might be a plugin that could be built?
I'm looking for something that would allow me to create a stats table on the main homepage based on member groups. So - for example...
I have three kingdoms: Athenia, Colchis and Taengea. And two ranks: Noble and Non-Noble.
I would like to be able to have on the main page
Athenian Nobles: [number of people in BOTH athenia and noble groups] Athenian Non-Nobles: [number of people in BOTH athenia and non-noble groups] Colchis Nobles: [number of people in BOTH colchis and noble groups] etc...
I would want to be able to do this for individual groups - just showing the "Nobles" group numbers for example, and any and all combinations of the member groups I have. Otherwise I have to create dozens of groups for the purposes of this stat table (which I don't mind doing, it would just be faster and easier this way if a plugin could do it).
In total all of my member groups would be:
Athenia Colchis Taengea Noble Birth Non-Noble Birth Canon Original Male Female Gods and Goddesses
The ability to add more member groups/member group combinations is a must as the site is expanding and we keep gaining new kingdoms and realms.
If anyone could have a stab at this I would be most grateful <3 <3
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Sept 27, 2024 15:01:41 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Dec 19, 2018 5:49:25 GMT -8
bump?
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Sept 27, 2024 15:01:41 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Dec 22, 2018 1:35:43 GMT -8
Bump
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Sept 27, 2024 15:01:41 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Dec 23, 2018 15:41:48 GMT -8
bump?
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Sept 27, 2024 15:01:41 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Jan 24, 2019 3:34:44 GMT -8
bump - still looking to see if this is possible? ;D
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Sept 27, 2024 15:01:41 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Jan 27, 2019 5:25:40 GMT -8
bump
|
|
inherit
261986
0
Oct 3, 2021 7:06:52 GMT -8
Doc Ock
118
August 2020
megatron22
|
Post by Doc Ock on Sept 27, 2020 18:26:04 GMT -8
Im looking for this too!
|
|
Kami
Forum Cat
Posts: 40,200
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,200
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 28, 2020 5:01:35 GMT -8
this is a year old, but i'll go ahead and answer: this is not possible for the following reasons:
1. the total number of people in each member group is not information available on the main page. plugins that work with forum information (in other words, plugins that require data from the forum in order to work) are limited by what is available on the page they are intended to function on. since this information is not available on the home page, this request cannot be completed.
2. while members can be in multiple groups simultaneously, only ONE group displays on the profile at any given time. the only way that multiple groups are recognised are on the edit profile>staff options/groups tabs, and in board & category permissions. similar to the above, a plugin cannot pull this information because it doesn't exist on the main page.
to sum up: a plugin cannot be created to do this because the information is not available for the plugin to manipulate.
|
|
inherit
261986
0
Oct 3, 2021 7:06:52 GMT -8
Doc Ock
118
August 2020
megatron22
|
Post by Doc Ock on Sept 28, 2020 7:31:11 GMT -8
this is a year old, but i'll go ahead and answer: this is not possible for the following reasons: 1. the total number of people in each member group is not information available on the main page. plugins that work with forum information (in other words, plugins that require data from the forum in order to work) are limited by what is available on the page they are intended to function on. since this information is not available on the home page, this request cannot be completed. 2. while members can be in multiple groups simultaneously, only ONE group displays on the profile at any given time. the only way that multiple groups are recognised are on the edit profile>staff options/groups tabs, and in board & category permissions. similar to the above, a plugin cannot pull this information because it doesn't exist on the main page. to sum up: a plugin cannot be created to do this because the information is not available for the plugin to manipulate. Nuts! Well thanks anyway I was scouring proboards and found this request. Thanks for the fast reply!
|
|
Kami
Forum Cat
Posts: 40,200
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,200
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 28, 2020 8:00:12 GMT -8
Happy to help! Sorry it wasn't a better answer (believe me, I want this to be possible too 😂)
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Sept 29, 2020 16:43:09 GMT -8
Kami , It's been a while since I've made a plugin so my active knowledge of the data available is iffy, but It looks like there's a key in proboards.data('user') called `groups` and `group_ids` that appears to hold this information. So, while the statistics would never be "instantaneous" because it would essentially require a user to self report their group(s), wouldn't this technically be possible via a forum key?
|
|
Kami
Forum Cat
Posts: 40,200
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,200
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 29, 2020 17:06:44 GMT -8
Kami , It's been a while since I've made a plugin so my active knowledge of the data available is iffy, but It looks like there's a key in proboards.data('user') called `groups` and `group_ids` that appears to hold this information. So, while the statistics would never be "instantaneous" because it would essentially require a user to self report their group(s), wouldn't this technically be possible via a forum key? Hey Texas, long time no see! Admittedly, I'm not a plugin creator, but the answer I have provided is the one I have learned from folks who are plugin creators (if you look at my initial post, todge gave it a little like as well). I don't know enough about plugins to speak specifically about 'groups' and 'group_ids', in all honestly. I would suspect that my answer still holds water. Even if the key can call that information, that information is not available to be called because the information isn't there. I suspect that this key is more to determine whether or not someone is IN a member group for the purposes of making sure they have sufficient permission to write to the plugin; I don't think you'd be able to generate a census from the information pulled here. Perhaps Todge or Peter or Chris would be able to clarify better, however, as I am definitely not as familiar with plugins as I could be. (:
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Sept 29, 2020 21:40:12 GMT -8
I'm not Todge, Peter or Chris, but ... pb.data('user').group_ids will return an array of all the groups the current user is in. Doing an F12 and typing proboards.dataHash in the console even shows that the data is available on the home page of a forum (I tested it here on Support). If I'm stepping over the line here, just let me know and I'll back out quietly. EDIT: (I had used that in my Navbar Links plugin for which group(s) could see the added link.) EDIT #2: However, any kind of table or list to be built from this would require members to log on for the plugin to see if they belong to such a group and, if so, added to the list (which would most likely require a super forum key).
|
|
Kami
Forum Cat
Posts: 40,200
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,200
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 30, 2020 5:46:07 GMT -8
I'm not Todge , Peter or Chris , but ... pb.data('user').group_ids will return an array of all the groups the current user is in. Doing an F12 and typing proboards.dataHash in the console even shows that the data is available on the home page of a forum (I tested it here on Support). If I'm stepping over the line here, just let me know and I'll back out quietly. EDIT: (I had used that in my Navbar Links plugin for which group(s) could see the added link.) EDIT #2: However, any kind of table or list to be built from this would require members to log on for the plugin to see if they belong to such a group and, if so, added to the list (which would most likely require a super forum key). Nope your input is definitely welcome! I'm only regurgitating information I've seen before so additional information is always welcome. I would be super interested to see if this is in fact possible with these keys since the party line had always been that you can't do this — it would solve all my problems too 😂
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Sept 30, 2020 6:55:19 GMT -8
I'm not Todge , Peter or Chris , but ... pb.data('user').group_ids will return an array of all the groups the current user is in. Doing an F12 and typing proboards.dataHash in the console even shows that the data is available on the home page of a forum (I tested it here on Support). If I'm stepping over the line here, just let me know and I'll back out quietly. EDIT: (I had used that in my Navbar Links plugin for which group(s) could see the added link.) EDIT #2: However, any kind of table or list to be built from this would require members to log on for the plugin to see if they belong to such a group and, if so, added to the list (which would most likely require a super forum key). A member being logged in would be the most dependable way of getting the information for all the groups to which they belong. ... but not the only way. For instance: if any logged-in member navigated to the Groups tab of a particular member, the groups that particular member is in could be gleaned from the page. BUT there is a problem with this that would need to be managed. If user/1 or any member of a group with the power to Edit Groups navigated to the Groups tab of a member who is in a Hidden group, we surely don't want to include that Hidden group in the key data. Also, if anyone navigated to a page like this: support.proboards.com/members?group=34&view=groupThat would be an opportunity for the plugin to add information to the key. There may be additional ways that could be employed to populate (and update) the key data which could be added, idk. But I think the biggest problem would be that it could take a great deal of activity on the forum in specific areas before the key data became a good representation of the membership in each group. It's possible the key data might never be a complete set. The coding for any of this is way above my pay grade, though.
|
|