Privacy by gender

Hi

Does anyone how to make a privacy policy based off gender? So say if you are a guy looking for a girl. You can restrict your profile to allow only girls to view it?

Thanks!

Quote · 10 Sep 2012

 You should be able to accomplish this with the Free Extra Privacy mod.

Hi

Does anyone how to make a privacy policy based off gender? So say if you are a guy looking for a girl. You can restrict your profile to allow only girls to view it?

Thanks!

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 10 Sep 2012

Looks like it's just what I need!

 

INSERT INTO `sys_privacy_groups` (`id`, `owner_id`, `parent_id`, `title`, `home_url`, `get_parent`, `get_content`, `members_count`) VALUES
(18, 0, 0, '', '', '', '$aProfile = getProfileInfo((int)$_COOKIE[''memberID'']);return ($aProfile === false) ? false : ($aProfile[''Sex'']==''male'');', 0),

(19, 0, 0, '', '', '', '$aProfile = getProfileInfo((int)$_COOKIE[''memberID'']);return ($aProfile === false) ? false : ($aProfile[''Sex'']==''female'');', 0),

(20, 0, 0, '', '', '', '$aProfile = getProfileInfo((int)$_COOKIE[''memberID'']);return ($aProfile === false) ? false : (int)$aProfile[''Couple''];', 0),

(21, 0, 0, '', '', '', '$aProfile = getProfileInfo((int)$_COOKIE[''memberID'']);return ($aProfile === false) ? false : ((int)$aProfile[''Couple''] || ($aProfile[''Sex'']==''male''));', 0),

(22, 0, 0, '', '', '', '$aProfile = getProfileInfo((int)$_COOKIE[''memberID'']);return ($aProfile === false) ? false : ((int)$aProfile[''Couple''] || ($aProfile[''Sex'']==''female''));', 0);

Mysql error: Duplicate entry '18' for key 'PRIMARY'

Quote · 10 Sep 2012

Can I just increment these ID's to one that are not in use and run the script again? I don't want to do the uninstall as it looks like it will delete groups that were created by members...

Quote · 10 Sep 2012

Never mind... I just ran the remove anyway... those keys can be re-created by the user if they wish.

 

worked find this time. Might want to add notes to the release to check the table first to make sure those ID's aren't already in use.

Quote · 10 Sep 2012
 
 
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.