vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Redline's Advanced Memberlist Options (https://vborg.vbsupport.ru/showthread.php?t=144297)

HMBeaty 04-07-2007 10:00 PM

Redline's Advanced Memberlist Options
 
Redline's Advanced Memberlist Options

Done per request here

Allows you to control which usergroups are allowed to view the memberlist via admincp.

Instructions are in the .zip file ;)

Support will only be given to those who have clicked INSTALL

Changelog:
1.0.0 - Initial Release
1.1.0 - Removed the need to edit the memberlist.php file (Thanks Ken Iovino :o)

Shazz 04-08-2007 02:32 AM

Well done....
Well done....... :)

be sure to release it at http://www.vbcoderz.com/ ;)

Logikos 04-08-2007 03:22 AM

How many options does this code hack create?

HMBeaty 04-08-2007 03:23 AM

Just one

rjmjr69 04-08-2007 03:58 AM

Nice nice thank you as usual you have kick ass mods Keep up the good work

HMBeaty 04-08-2007 04:12 AM

Updated to 1.1.0

Removed the need to edit the memberlist.php file

EDIT: I suppose I could thank Ken Iovino as far as the update goes as I didn't even think to use a plugin :o

rjmjr69 04-08-2007 04:33 AM

Oh sure after I did the edit.....LOL Should I change it?

HMBeaty 04-08-2007 04:37 AM

Yes, sorry

rjmjr69 04-08-2007 05:03 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1222456)
Yes, sorry

Thank you sir.

Sofia 04-08-2007 07:07 AM

Hi Redline :)

Thanks a lot for this hack. :p

Charlie98902 04-08-2007 01:34 PM

Just woke up and have to say wow, thanks for the mod as I haven't done the template edit just yet.

Wayne Luke 04-08-2007 06:29 PM

Why not just use the existing "Can View Member Info" permission?

HMBeaty 04-08-2007 08:34 PM

Quote:

Originally Posted by Wayne Luke (Post 1222800)
Why not just use the existing "Can View Member Info" permission?

Because I believe that refers to the members profile

Wayne Luke 04-09-2007 01:39 AM

Does both actually. A quick look at the code would show this.

From memberlist.php
PHP Code:

// permissions check
if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']))
{
 
print_no_permission();



HMBeaty 04-09-2007 01:47 AM

Quote:

Originally Posted by Wayne Luke (Post 1223014)
Does both actually. A quick look at the code would show this.

From memberlist.php

Well, as stated above, I made this as a request. The requestor wanted to limit the view to the moderators, super moderators, and admins. And this mod does it without having to edit and templates or php files ;)

Charlie98902 04-09-2007 02:21 AM

Yes it does and I forgot to say I marked this as installed.

Charlie98902 04-30-2008 07:11 PM

Just so everyone knows this works just fine with 3.7.0 gold.

HMBeaty 04-30-2008 07:57 PM

Thank you Charlie98902 :)

Charlie98902 05-02-2008 01:49 AM

No problem Red sorry for the mail and PM but got a test forum to try it and was very pleased.

Charlie98902 05-03-2008 01:50 AM

Might want to port it over in that section now too?


All times are GMT. The time now is 04:59 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.01132 seconds
  • Memory Usage 1,747KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (20)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