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)

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 10:41 AM.

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.01091 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete