vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Webmazter - Show ALL Group Memberships (https://vborg.vbsupport.ru/showthread.php?t=138094)

webmazter 01-31-2007 10:00 PM

Webmazter - Show ALL Group Memberships
 
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
Attachment 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

Quote:

Originally Posted by webmazter (Post 1171724)
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.

[high]* HMBeaty installed[/high]

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

Quote:

Originally Posted by MikeLTAD (Post 1171933)
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

Quote:

Originally Posted by webmazter (Post 1172225)
@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

Quote:

Originally Posted by Redlinemotorsports (Post 1172229)
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

Quote:

Originally Posted by Redlinemotorsports (Post 1172283)
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

Quote:

Originally Posted by webmazter (Post 1172419)
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

Quote:

Originally Posted by Alfa1 (Post 1174434)
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

Quote:

Originally Posted by Eagle Creek (Post 1183567)
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:
PHP 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

Quote:

Originally Posted by Eagle Creek (Post 1187532)
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


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01197 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete