1

Topic: Privacy

Hi
In privacy setting i have blank options.
Thery is no Everyone and Friends like on demo site.
How to set it?
I checked all language file there is nop option Everyone

2

Re: Privacy

Do you use latest language packs?

Developer

3

Re: Privacy

I used this wich was in update pack
No I download from site and it is ok

I have one more question
I would like to add one more option
Everyone   - all users and guests
Registred
Friends
Is it possible ?

Last edited by adamszmu (2008-08-08 07:51:03)

4

Re: Privacy

It's possible but will require customization of php files.

Developer

5

Re: Privacy

could you give me an example just for  pictures
I changed code lib.account.privacy.php

//------------------------------------------------
    // Create access type array
    //------------------------------------------------
    $accesstypebox[0] = ($LANG['core']['access_all']);
    $accesstypebox[2] = ($LANG['core']['access_registred']);
    $accesstypebox[1] = ($LANG['core']['access_friends']);
   

    //------------------------------------------------
    // Create access type array
    //------------------------------------------------
    $accesstypeprofile[0] = ($LANG['core']['access_all']);
    $accesstypeprofile[2] = ($LANG['core']['access_registred']);
    $accesstypeprofile[1] = ($LANG['core']['access_friends']);
    
    if ( $SESSION->conf['can_cancel_own_account'] ) {
        $accesstypeprofile[2] = ($LANG['privacy']['access_cancel']);
    }

but have problem with that

    //------------------------------------------------
    // Check profile access
    //------------------------------------------------
    if ( ($profile_obj['access_profile'] == 1 || $profile_obj['access_pictures'] == 1) && $SESSION->conf['member_id'] != $profile_obj['member_id'] && !are_friends($SESSION->conf['member_id'], $profile_obj['member_id']) ) {
        $TEMPLATE->set_message("error", ($LANG['core']['no_access_friends']), 0, 1);
        return;
    }

6

Re: Privacy

Did anyone got this to work?

Everyone - all members and guests
Members - members only
Friends - friends only
Hide - hide from everyone
Cancel - cancel membership

Is very important to give the member option to have guess view their profile.

VPS & Dedicated Hosting Servint