PDA

View Full Version : Private Profiles


akanevsky
04-10-2006, 10:00 PM
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*================================================= =====================*\
|| Private Profiles
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5
|| Released : Apr 12, 2006
||
|| Time required to install: 1 minute
|| Difficulty: easy
\*================================================ ======================*/

DESCRIPTION

Features an option to restrict profile viewing to friends only.
More advanced version of the hack is available here: http://www.visionscripts.com/?page=products&vsproductid=8

STATISTICS

File Uploads: 1
Template Changes: 1
Products to Install: 1


FEATURES

Per-Usergroup "Can View Private Profiles" permission.
Per-Usergroup "Can Have Private Profile" permission.

VERSION HISTORY

1.0.1
[+] Per-Usergroup "Can View Private Profiles" permission.
[+] Per-Usergroup "Can Have Private Profile" permission.

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=112734)

akanevsky
04-11-2006, 04:35 PM
First Post Reserved!

Daniel
04-11-2006, 04:56 PM
Nice hack Psonic! :)

akanevsky
04-11-2006, 04:57 PM
Well, you certainly sound like a very sincere individual :)

BoYagoob
04-11-2006, 05:03 PM
installed :)

The Chief
04-11-2006, 05:23 PM
i'm so gonna check this out :)

Snake
04-11-2006, 05:38 PM
Thank you, will install this tonight! :)

evenmonkeys
04-11-2006, 05:39 PM
Ewww. Who starts a sentence with because? Lawl- just kidding. I really like the modification, Vision. Thumbs up!

akanevsky
04-11-2006, 05:39 PM
You people know where to click. ;)

EDIT:
Yarub... You're right. It's a grammatical mistake... I'll correct it.

Daniel
04-11-2006, 06:48 PM
Well, you certainly sound like a very sincere individual :)
And you sound like a very sarcastic one ;)

akanevsky
04-11-2006, 06:54 PM
Of course, because you haven't clicked the button that you were supposed to click. ;)

Daniel
04-11-2006, 06:57 PM
Of course, because you haven't clicked the button that you were supposed to click.
My apologies, I didn't know "Nice hack" meant I installed it.

akanevsky
04-11-2006, 07:00 PM
Well, I assumed you did. Sorry. :)

toolblast
04-11-2006, 08:48 PM
Excellent Psionic. Exactly what I asked for. I'll be coming to you for some custom paid hacks soon :)

???`S?LV?R???`
04-12-2006, 06:05 AM
is there a way to set this so that only selected usergroups can set their profiles to private?

If not, this would be a useful feature to add into this hack.

akanevsky
04-12-2006, 11:02 AM
No, there is no way to set this, but I'll consider adding it.

akanevsky
04-12-2006, 01:27 PM
UPDATE: VERSION 1.0.1

Changes:

See changelog in 1st post.

Update procedure:

1. Upload contents of upload directory to your vbulletin directory.
2. Overwrite product XML.
3. In template modifyoptions, change:

<fieldset class="fieldset">
<legend><label for="cb_privateprofile">$vbphrase[privateprofile]</label></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>
$vbphrase[privateprofile_desc]
</td>
</tr>
<tr>
<td><label for="cb_privateprofile"><input type="checkbox" name="privateprofile" value="1" id="cb_privateprofile"<if condition="$bbuserinfo[privateprofile]"> checked="checked"</if>/>$vbphrase[privateprofile]</label></td>
</tr>
</table>
</fieldset>

To:

<if condition="$show['privateprofileoption']">
<fieldset class="fieldset">
<legend><label for="cb_privateprofile">$vbphrase[privateprofile]</label></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>
$vbphrase[privateprofile_desc]
</td>
</tr>
<tr>
<td><label for="cb_privateprofile"><input type="checkbox" name="privateprofile" value="1" id="cb_privateprofile"<if condition="$bbuserinfo[privateprofile]"> checked="checked"</if>/>$vbphrase[privateprofile]</label></td>
</tr>
</table>
</fieldset>
</if>

>> EOD

bada_bing
04-12-2006, 04:04 PM
Can this hack be used to allow only certain usergroup to view a different usergroups profile

Example
Registered users group CAN NOT view the Premium Usergroup
but Premium Usergroup CAN view other members profiles?

akanevsky
04-12-2006, 04:05 PM
No, it cannot.

bada_bing
04-12-2006, 04:42 PM
Can this hack be used to allow only certain usergroup to view a different usergroups profile

Example
Registered users group CAN NOT view the Premium Usergroup
but Premium Usergroup CAN view other members profiles?
Is this something that might be added on to this hack?

akanevsky
04-12-2006, 04:48 PM
Yes.

bada_bing
04-12-2006, 04:57 PM
Yes.
Sweet it this a Yes I will look into it or are ya just teasing.

akanevsky
04-12-2006, 04:58 PM
Sweet it this a Yes I will look into it or are ya just teasing.
Yes.

bada_bing
04-12-2006, 07:02 PM
Yes.
Cool please let us know when it's ready.. Would love this for my dating site

akanevsky
04-12-2006, 07:03 PM
Yes as in "Yes, I was just teasing". :)

???`S?LV?R???`
04-12-2006, 07:25 PM
No, there is no way to set this, but I'll consider adding it.
Thanks, I appreciate you intergrating that in.

akanevsky
04-12-2006, 07:30 PM
Thanks, I appreciate you intergrating that in.

lol... https://vborg.vbsupport.ru/showpost.php?p=947810&postcount=17
now the reason you did not notice it is because 1) you did not click install and 2) because you are not subscribed to the thread

???`S?LV?R???`
04-13-2006, 04:11 AM
lol... https://vborg.vbsupport.ru/showpost.php?p=947810&postcount=17
now the reason you did not notice it is because 1) you did not click install and 2) because you are not subscribed to the thread
... or because I only looked at the hack before, and have yet to install it until I saw that feature intergrated lol

(which i've still yet to install since I just got home)

foulplay
05-02-2006, 08:40 AM
Psionic your hacks are awesome!

akanevsky
05-02-2006, 04:29 PM
Thanks :)

FleaBag
05-10-2006, 12:54 AM
There is no option in the vBulletin settings for me.

akanevsky
05-10-2006, 01:17 AM
There is no option in the vBulletin settings for me.

Really? O well, I guess you are out of luck then ;)
j/k - try looking again.

FleaBag
05-10-2006, 10:29 AM
Definitely not there Psi!

akanevsky
05-10-2006, 06:05 PM
Oh... Hm. I am not sure where the screenshot came from, the actual setting is "Can View Private Profiles" under usergroup settings. I've updated the screenshot, too.

FleaBag
05-13-2006, 02:38 AM
Found them there mate! Thanks! :)

bada_bing
06-16-2006, 01:59 PM
Yes.
Quote:
Originally Posted by bada_bing
Can this hack be used to allow only certain usergroup to view a different usergroups profile

Example
Registered users group CAN NOT view the Premium Usergroup
but Premium Usergroup CAN view other members profiles?
Is this something that might be added on to this hack?



Is this something that might be avaialble soon?

akanevsky
06-16-2006, 02:51 PM
You can currently achieve it by setting everyone's profiles private and then turning "can have private profiles" off to lock the option. Then, you would turn off "Can View Private Profiles" for everyone but the premium users.

HS2005
07-23-2006, 09:35 AM
wonderfull idea i love your coding :)

nets
10-17-2006, 06:51 PM
i hav a prob.
when y switch on privat .. this message apper.

Datenbankfehler in vBulletin 3.5.4:

Invalid SQL:
UPDATE user SET
### Bitfield: user.options ###
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 4, options, options + 4),
options = IF(options & 16, options, options + 16),
options = IF(options & 32, options, options + 32),
options = IF(options & 256, options - 256, options),
options = IF(options & 512, options, options + 512),
options = IF(options & 1024, options - 1024, options),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options - 4096, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options - 128, options),
languageid = 0,
autosubscribe = -1,
threadedmode = 0,
timezoneoffset = '0',
showvbcode = 2,
pmpopup = 1,
maxposts = -1,
daysprune = 0,
startofweek = 1,
privateprofile = 1
WHERE userid = 1;

MySQL-Fehler : Unknown column 'privateprofile' in 'field list'
Fehler-Nr. : 1054
Datum : Tuesday, October 17th 2006 @ 09:42:15 PM
Skript : http://www.xxx..xx/forum/profile.php
Referrer : http://www.xxx.xx/forum/profile.php?do=editoptions
IP-Adresse : 83.167.202.116
Benutzername : georg
Klassenname : vB_Database

the forum is running so:

Server OS/PHP WINNT
Webserver Apache v2.2.0
PHP 5.1.1
PHPs max. Post-Gr??e 16,00 MB
PHPs maximale Uploadgr??e 16,00 MB
PHPs Speicherlimit Nein
MySQL-Version 5.0.18-nt-max
MySQL Paketgr??e 1.023,0 KB

whats now ???

georg