Memberships in Profile
Author Message
MyBB allows users to have a primary group and a number of secondary groups, but unfortunately, users can only have one of the groups they are a member of on display.
This plugin allows users to see all the groups the user is a part of, displayed in their profile, as per screenshot below:


Attached File(s) Thumbnail(s)
   
(This post was last modified: 12-05-2014 04:34 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: grpinprof.php (1.74 KB)
Plugin Version: 1.0
Last Updated: 03-16-2010, 08:28 PM

Downloads: 1,372
MyBB Compatibility: 1.2.x, 1.4.x, 1.6.x, 1.8.x
Plugin License: WTFPLv2
Uploader: ZiNgA BuRgA
metulburr Offline
Junior Member
**
Posts: 6
Joined: Oct 2015
Post: #21
RE: Memberships in Profile
How can i add the GID number beside the usergroup name?
02-01-2018 02:01 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #22
RE: Memberships in Profile
For primary usergroup, you can user {$memprofile['usergroup']} directly inside the template.
For the additional usergroups, change this line of the plugin:

PHP Code:
53
$sec_groups .= $comma.format_name($ug['title'], $ug['gid'], 0);

to something like this:

PHP Code:
53
$sec_groups .= $comma.format_name($ug['title'], $ug['gid'], 0).' '.$ug['gid'];


02-01-2018 03:52 AM
Find all posts by this user Quote this message in a reply
metulburr Offline
Junior Member
**
Posts: 6
Joined: Oct 2015
Post: #23
RE: Memberships in Profile
thank you
02-03-2018 11:44 PM
Find all posts by this user Quote this message in a reply


Forum Jump: