vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Profile Privacy (https://vborg.vbsupport.ru/showthread.php?t=121125)

rasp187 08-03-2006 07:50 PM

Works great but is there any way I can make it so moderators can view user profiles regardless, too, instead of just admins and supermods? Great mod!

Krofh 08-04-2006 04:17 AM

Yeah, that just takes a small plugin edit. In your Plugin Manager, under member_complete is a plugin called "Profile Privacy: Viewing Profile." About 30 lines into the code there is a conditional for who can view the profile:
Code:

                if (!(                                            // if not any of the following:
                        in_array($vbulletin->userinfo['userid'], $buddyids) || // friends
                        $vbulletin->userinfo['usergroupid'] == 6            || // admins
                        $vbulletin->userinfo['usergroupid'] == 5            || // supermods
                        $userinfo['userid'] == $vbulletin->userinfo['userid']  // yourself
                )) {

All you need to do is add another line in there for mods, and you're good to go :) It should look like this:
Code:

                if (!(                                            // if not any of the following:
                        in_array($vbulletin->userinfo['userid'], $buddyids) || // friends
                        $vbulletin->userinfo['usergroupid'] == 6            || // admins
                        $vbulletin->userinfo['usergroupid'] == 5            || // supermods
                        $vbulletin->userinfo['usergroupid'] == 7            || // mods
                        $userinfo['userid'] == $vbulletin->userinfo['userid']  // yourself
                )) {


rasp187 08-04-2006 11:02 PM

Awesome! Thanks for the fast reply!

toolblast 09-16-2006 05:31 PM

Does this work in 3.6? If so, great. If not, can somebody please port it?

Thanks!

moonclamp 09-20-2006 01:45 AM

What is the default setting? Is privacy on or off?

cbr929rrerion 09-20-2006 03:22 AM

<font color="Lime">**INSTALLED**</font>

figu120 08-26-2008 12:42 AM

ok muy beun hack
ok very good hack

GSeybold 12-02-2008 01:49 PM

Just installed on new VB version.. works fine

GSeybold 12-02-2008 01:56 PM

Anyone figure this out? I would like to no as well.

Quote:

Originally Posted by moonclamp (Post 1078830)
What is the default setting? Is privacy on or off?


GSeybold 12-02-2008 01:57 PM

Ok just checked... default is public.


All times are GMT. The time now is 03:00 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.00984 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (1)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