MyBB Hacks

Full Version: Memberships in Profile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
@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
BiggrinI like this plugin....................
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 don't how it was possible to me to miss this plugin from the threadlist before.

Thanks (:
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.
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.

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?
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.

Has this been updated for 1.8.5?
There is the "MyBB Compatibility" at the same block as the download link.
Pages: 1 2 3
Reference URL's