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,447
MyBB Compatibility: 1.2.x, 1.4.x, 1.6.x, 1.8.x
Plugin License: WTFPLv2
Uploader: ZiNgA BuRgA
Turel Offline
Junior Member
**
Posts: 5
Joined: Oct 2010
Post: #11
RE: Memberships in Profile
@up- Eureka! It works! My wish is now real! I have now a just what I need! A small piece of IPB in my own MyBB forum Biggrin Thanks a lot man and sorry for my not very good english Smile
10-21-2010 04:08 AM
Find all posts by this user Quote this message in a reply
Lexi Offline
Banned
Posts: 1
Joined: May 2011
Post: #12
RE: Memberships in Profile
BiggrinI like this plugin....................
05-10-2011 07:02 PM
Find all posts by this user Quote this message in a reply
WhiteEagle Offline
Member
***
Posts: 62
Joined: Sep 2011
Post: #13
RE: Memberships in Profile
I'll have to consider this one, as I always add my staff members to the "Staff" usergroup, besides making them an Admin, Super Mod, or Mod.

I fold for team 52482. Do you fold?
MyBB powered sites: Leet Link FoodRatings
09-01-2011 07:11 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #14
RE: Memberships in Profile
I don't how it was possible to me to miss this plugin from the threadlist before.

Thanks (:

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
09-01-2011 07:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Juventiner Offline
Junior Member
**
Posts: 5
Joined: Jul 2011
Post: #15
RE: Memberships in Profile
Hello,
how can I set that user groups can be shown without formatting?

And how can I exclude user groups such as "Locked"? So that's that this group will not be displayed with?

Thank you for your answers.
10-22-2011 12:47 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #16
RE: Memberships in Profile
Maybe you can try this:
Edit the plugin.
Find:

PHP Code:
$pmy_group = format_name($ug['title'], $ug['gid'], 0);


Change it to:

PHP Code:
$pmy_group = htmlspecialchars_uni($ug['title']);


Find:

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


Change it to:

PHP Code:
if($ug['gid'] != x){
	$sec_groups .= $comma.htmlspecialchars_uni($ug['title']);
}

Change the x with the Locked usergroup id.


10-22-2011 02:35 AM
Find all posts by this user Quote this message in a reply
Juventiner Offline
Junior Member
**
Posts: 5
Joined: Jul 2011
Post: #17
RE: Memberships in Profile
Hello.
Thank you for your solution.
Now there are two problems: The primary group does not disappear if these 'Locked' is. I would also like to have no New Story View more like 'waiting for activation' for example. How do I let several groups and the primary group hide?
10-22-2011 07:25 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #18
RE: Memberships in Profile
Find:

PHP Code:
	$pmy_group = format_name($ug['title'], $ug['gid'], 0);

Replace with:

PHP Code:
	if($ug['gid'] != z){
		$pmy_group = htmlspecialchars_uni($ug['title']);
	}


Find:

PHP Code:
		if($ug['gid'] != x){
			$sec_groups .= $comma.htmlspecialchars_uni($ug['title']);
		}
		if(!$comma) $comma = ', ';

Replace with:

PHP Code:
		if(!in_array($ug['gid'], array(x,y))){
			$sec_groups .= $comma.htmlspecialchars_uni($ug['title']);
			if(!$comma) $comma = ', ';
		}


Find:

PHP Code:
	if($sec_groups)

Replace with:

PHP Code:
	if($sec_groups && $pmy_group)


Replace the x,y,z with the proper usergroup id.


10-23-2011 02:06 AM
Find all posts by this user Quote this message in a reply
Bamk84 Offline
Junior Member
**
Posts: 1
Joined: Oct 2015
Post: #19
RE: Memberships in Profile
Has this been updated for 1.8.5?
10-23-2015 11:00 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #20
RE: Memberships in Profile
There is the "MyBB Compatibility" at the same block as the download link.

10-24-2015 01:27 AM
Find all posts by this user Quote this message in a reply


Forum Jump: