Key name for privacy message?

Does anyone know the key name for the message that is displayed when a user attempts to click on a profile that is private?

Quote · 24 Feb 2010

_Access denied

Quote · 24 Feb 2010

Really that is really bad design.  I can't customize that message since the key is used throughout the site.  Boonex really dropped the ball thinking that the best thing to show to members who hit a private profile is Access Denied, instead of something like...This profile is private!


Well the only solution is to track this little thing down and make a mod!

Quote · 24 Feb 2010

yup there are two of them did you try to change

Quote · 25 Feb 2010

Found it, the key is actually _INVALID_ROLE


For profile privacy you can change the key name to something else.  Open profile.php around line 67 you will see this function:

//Check privacy
$oPrivacy = new BxDolPrivacy('Profiles', 'ID', 'ID');
if(!$oPrivacy->check('view', $profileID, $memberID)) {
$_page['name_index'] = 0;
$_page['header'] = "{$site['title']} " . _t("_Member Profile");
$_page['header_text'] = "{$site['title']} " . _t("_Member Profile");
$_page_cont[0]['page_main_code'] = MsgBox(_t('_INVALID_ROLE'));
PageCode();
exit;
}

Simply change _INVALID_ROLE to something custom and make your own custom message.  Remember that it only checks a yes:no if the person can view the profile.  So we can't customize the message for friend only settings, me only, or members only.  But at least we can do custom message

Quote · 25 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.