pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
953 stars 573 forks source link

Opposite Sex Only #1007

Open site101 opened 2 years ago

site101 commented 2 years ago

Hello, I am developing for a traditional private organization.

I followed the steps to remove the "couples" option.

How would I go about making the software opposite sex only?

Thank you in advance.

prepstarr commented 5 months ago

just eliminate the option for opposite sex

prepstarr commented 5 months ago

you need to edit this file...

    $oForm->addElement(
        new Radio(
            t('I am a'),
            'Yid',
            [
                GenderTypeUserCore::FEMALE => '👩 ' . t('Lady'),
                GenderTypeUserCore::MALE => '👨 ' . t('Mensch'),
            ],
            ['value' => GenderTypeUserCore::FEMALE, 'required' => 1]
        )
    );

    $oForm->addElement(
        new Checkbox(
            t('Looking for a'),
            'match_sex',
            [
                GenderTypeUserCore::MALE => '👨 ' . t('Man'),
                GenderTypeUserCore::FEMALE => '👩 ' . t('Woman'),
            ],
            ['value' => GenderTypeUserCore::MALE, 'required' => 1]
        )