PDA

View Full Version : Profile Privacy


Krofh
07-12-2006, 10:00 PM
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:
<if condition="$show['customtitleoption']">
Add above:
<!-- 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 (https://vborg.vbsupport.ru/showthread.php?t=112734) 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:
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:
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.

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 .... :(