Skip to Content Skip to Menu

Display fields in Group Member Tab (Grid View)

  • AlexRag
  • AlexRag
  • ONLINE
  • Posts: 586
  • Thanks: 42
  • Karma: 7
2 weeks 9 hours ago #341695 by AlexRag
Apologies for misunderstanding which section you were referring to, and thanks for pointing me in the right direction!
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

  • AlexRag
  • AlexRag
  • ONLINE
  • Posts: 586
  • Thanks: 42
  • Karma: 7
6 hours 9 minutes ago - 6 hours 8 minutes ago #341770 by AlexRag
Just circling back you your advice about adding a field type to the footer of the members grid view in a group using Autio Actions, quoted below

Code:
$_PLUGINS->trigger( 'gj_onDisplayUser', array( &$row, &$counters, &$content, &$menu, $group, $user ) );
$row = gj group user object
$counters = array of content displayed in the footer (where Member is)
$content = custom content displayed below the footer
$menu = custom links for the dropdown menu
$group = gj group object
$user = cb user object

So the below, for example, should work to output whatever profile fields you like.

Global
Triggers: gj_onDisplayUser
Type: Code
User: Automatic
Access: Everybody
Action
Method: PHP
Code:
Code:
Code:
$variables['var2'] = 'Test';
Parameters
Reference Variables: Variable 2

With the above you should see "Test" output in the footer now. Replace that with substitutions or with whatever custom PHP you want. Add more to that array to output more as it'll split them into containers for the footer.

If I wanted to replace the sample you mentioned, "Test" with a profile field,  what would I replace "Test" with in 
Code:
$variables['var2'] = 'Test';
.
For example, in their profile, I have a field type of "position" that I want to have appear of what they put in it

Thanks!
Last edit: 6 hours 8 minutes ago by AlexRag.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum