View Full Version : Profile Enhancements - Webmazter - Show ALL Group Memberships
webmazter
01-31-2007, 10:00 PM
Hi,
This is a small and simple mod to show ALL Group Memberships in User Profile Page.
This is only to show the Usergroups, nothing changed to the current Private Usergroup and Public Usergroup system.
Regards
Screenshot
59843
webmazter
02-01-2007, 01:25 AM
Reserved for future use.
HMBeaty
02-01-2007, 01:42 AM
So let me get this straight......it display usergroups such as: Moderator, Admin, S. Moderator, Registered Users, etc.?
webmazter
02-01-2007, 01:49 AM
Also Paid Subscriptions Usergroups
HMBeaty
02-01-2007, 01:51 AM
Also Paid Subscriptions Usergroups
Ok, awesome. I thought about doing this about a year ago, but never got around to it, or always forgot about it.
* HMBeaty installed
HMBeaty
02-01-2007, 01:58 AM
EDIT: Nevermind, apparently it didn't paste the whole code when I did it. Thanks
MikeLTAD
02-01-2007, 02:41 AM
I'm a little confused. Isn't the code we are replacing the same as the new code that you have in your .txt file?
HMBeaty
02-01-2007, 02:44 AM
No, your actually commenting a couple lines out pretty much, you're mainly just adding "//" in 3 locations
webmazter
02-01-2007, 05:24 AM
@Redlinemotorsports
Thanks for the install
@MikeLTAD
As what Redlinemotorsports said, it's not the same. Added comments to few lines.
MikeLTAD
02-01-2007, 09:17 AM
OK I must of done something wrong. getting this error when I click on a users profile.
Parse error: syntax error, unexpected $end in /Forum/member.php on line 834
any ideas?
HMBeaty
02-01-2007, 03:06 PM
OK I must of done something wrong. getting this error when I click on a users profile.
Parse error: syntax error, unexpected $end in /Forum/member.php on line 834
any ideas?
Yeah, I had the same problem. I'll have a fix for this in just a couple minutes.
EDIT: Here's the fix for it. Hopefully that'll work a little better for you. Webmazter, feel free to download this and use this as the release
webmazter
02-01-2007, 04:29 PM
Sorry about the error and confusion.
Apparently new lines not applied properly after upload.
I'm now zipping the file and there should be no problem now.
I've verified it by downloading the .zip to my computer.
@Redline
Thanks for the work, but there's slightly untidy code there.
Download mine. :)
HMBeaty
02-01-2007, 04:32 PM
@Redline
Thanks for the work, but there's slightly untidy code there.
No problem, but I don't see how the code is untidy being I just copied and pasted directly from member.php, and its almost exactly what you wrote in your original instructions.
webmazter
02-01-2007, 04:35 PM
No problem, but I don't see how the code is untidy being I just copied and pasted directly from member.php, and its almost exactly what you wrote in your original instructions.
It must be the word wrap function.
Doh, sorry about that. :)
SCRIPT3R
02-01-2007, 05:05 PM
screenshot available?
HMBeaty
02-01-2007, 05:09 PM
Screenshot.......
SCRIPT3R
02-01-2007, 05:14 PM
ahhh, i think i understand it now... thnx.
webmazter
02-01-2007, 06:54 PM
Screenshot.......
If you don't mind, I'll link to your shot or include it in First Post. :)
HMBeaty
02-01-2007, 06:57 PM
If you don't mind, I'll link to your shot or include it in First Post. :)
Not a problem, go right ahead
Alfa1
02-04-2007, 02:16 PM
Does this mean that it will allow members to see they are in miserable users?
giotmuadong
02-07-2007, 02:12 AM
thanks, i like it :)
webmazter
02-07-2007, 03:19 AM
Does this mean that it will allow members to see they are in miserable users?
Will show ANY usergroups.
Eagle Creek
02-16-2007, 01:45 AM
Is it possible to excluse a usergroup?
(Yes, I'm talking about the miserable people ;-))
webmazter
02-16-2007, 07:42 AM
Is it possible to excluse a usergroup?
(Yes, I'm talking about the miserable people ;-))
Yes, it's now possible.
Download w_AllGroupMemberships_excluding_install.zip
Eagle Creek
02-16-2007, 08:03 AM
Is this an add-on or do I have to replace the file?
zhabbo
02-16-2007, 05:48 PM
Thanks
Eagle Creek
02-21-2007, 03:05 PM
Sweeet!
To bad it requires a file edit. Is it possible to make a plugin?
thincom2000
02-22-2007, 02:16 AM
Yes, create the plugin with the following hook: member_complete
And the code:
$membergroupbits = '';
foreach ($membergroups AS $usergroupid)
{
$usergroup =& $vbulletin->usergroupcache["$usergroupid"];
//if ($usergroup['ispublicgroup'])
if (!in_array($usergroupid, array(1,2,3,4,5))) // Replace 1,2,3,4,5 with Usergroup ID you want to exclude (comma separated)
{
exec_switch_bg();
eval('$membergroupbits .= "' . fetch_template('memberinfo_membergroupbit') . '";');
}
}
I personally prefer the file edit so that vBulletin doesn't waste a few milliseconds processing the membergroupbits a second time when it reaches the hook.
webmazter
02-23-2007, 06:37 AM
Sweeet!
To bad it requires a file edit. Is it possible to make a plugin?
It's just few lines edit in one file.
It's not efficient to use plugin.
If you want to use plugin, then thincom2000 has provided the code.
But keep in mind that the codes are run twice with plugin. (looping twice in $membergroups variable)
One is original VB, then another one is custom one.
With file edit, the codes are run only once.
SVTCobraLTD
12-23-2007, 12:19 AM
Anyone using this on 3.6.8?
SVT
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.