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)

Krofh 07-12-2006 10:00 PM

Profile Privacy
 
Quote Notification

Description: This plugin will add a "Profile Privacy" option for users, allowing them to select one of three options. "Public" enables anyone at all to view their profile, "Private" limits their profile to only being viewed by forum members, and "Friends Only" limits their profile to people on their friends list. Note: Admins and Super Moderators can still view anyone's profile with this hack.

Installation:
  • Import the product XML file
  • Perform the following template edit in template modifyprofile:
Find:
Code:

                        <if condition="$show['customtitleoption']">
Add above:
Code:

<!-- profile privacy options -->
                        <fieldset class="fieldset">
                                <legend>$vbphrase[profile_privacy]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td>$vbphrase[profile_privacy_message]</td>
                                </tr>
                                <tr>
                                        <td>$profile_privacy_radio</td>
                                </tr>
                                </table>
                        </fieldset>
<!-- profile privacy options -->

Contains:
  • 4 Plugins
  • 1 New Template
  • 1 Template Edit
  • 6 Phrases

This hack is somewhat similar to Private Profiles by Psionic Vision. Either hack seems to be fine but have different features, though I don't think they'd really work well together.

vBulletin 3.6.1: thanks to toolblast for testing this out, he reported that this hack works fine on vB 3.6.1 as well.

Please click install. :)

Barakat 07-14-2006 01:01 AM

installed .

bada_bing 07-14-2006 02:44 AM

reserved for future install

rasp187 07-14-2006 03:00 AM

Installed. Nice one, man!

BoYagoob 07-14-2006 08:56 AM

Installed, thanks.

Snake 07-14-2006 10:39 AM

Awesome! I love it! :D

Diana Notacat 07-14-2006 03:37 PM

This is fantastic! Really really handy for those uber private people.

Polo 07-14-2006 04:20 PM

Excellent Hack!

thank you.

PixelFx 07-14-2006 05:16 PM

neat and simple, very nice :D I'm surprized this isn't a stock feature :D keep up the good work :D and thanks

bada_bing 07-17-2006 04:08 PM

Installed and testing..

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.

Tyran1 01-16-2009 02:32 PM

Not works with 3.8.0 .... :(


All times are GMT. The time now is 05:19 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.01143 seconds
  • Memory Usage 1,757KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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