0 Members and 1 Guest are viewing this topic.

doing a site for LGBTQ+
« on: April 30, 2019, 02:58:02 AM »
just wondering how to add more genders i would like to add an other option.

Re: doing a site for LGBTQ+
« Reply #1 on: April 30, 2019, 03:01:34 AM »
i would also like to add a more option where the "seeking a" woman, man, couple, group, ... i would like to add Cisgender, Transgender, Queer, Transvestite
and other Other. How can this be done?

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: doing a site for LGBTQ+
« Reply #2 on: May 01, 2019, 11:05:30 AM »
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: doing a site for LGBTQ+
« Reply #3 on: May 02, 2019, 02:31:43 AM »
ok i got that working. But how do i get the new genders to display in the Statistics panel?

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: doing a site for LGBTQ+
« Reply #4 on: May 02, 2019, 09:21:30 PM »
Hi raykai,

After editing the languages/English/lang_main.php or any language, you must go to the admin, then to the manage languages and click reload English or the languages you edited.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: doing a site for LGBTQ+
« Reply #5 on: May 02, 2019, 10:05:12 PM »
Hi raykai,

After editing the languages/English/lang_main.php or any language, you must go to the admin, then to the manage languages and click reload English or the languages you edited.

yes i did that but the statistic and the online dont count the new genders:
and if some one logs in with this extra genders the online counter stays at 0

its not showing the other genders here:


and in the back end:


i think it would be good to add in the software by default the other genders like: Transgender, Other, Couple MF, Couple FF, Couple M. and the same for seeking for groups adding groups MM,  groups FF, Groups MF... you get the point.

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: doing a site for LGBTQ+
« Reply #6 on: May 03, 2019, 12:26:28 AM »
Hi raykai,

You will need to edit a few files.

In the lang_main.php, you need to add the missing totalCouple MF, totalCouple MF, totalCouple FF, Etc and so on line 765.
Code: [Select]
$lang['totalfemales'] = 'Total Female Members:';
$lang['totalCoupleMF'] = 'Total Couples MF Members:';
Etc until you have all your genders.

You also need to add the gender names below line 748
Code: [Select]
$lang['Male'] = 'Male';
$lang['Female'] = 'Female';
$lang['CouplesMF'] = 'Couples MF';
Etc until you have all your genders.

When finished, don't forget to reload the language in the admin so the database has the changes also.

You will also need to edit the states_lines.tpl and add the new genders. Example:

Code: [Select]
<tr >
<td >
{lang mkey='totalfemales'}
</td>
<td align="right">
{$females}
</td>
</tr>
<tr >
<td >
{lang mkey='totalCoupleMF'}
</td>
<td align="right">
{$CouplesMF}
</td>
</tr>

Etc until you have all your genders.

Then after that, you will need to edit the userstats.php and add the missing genders.
On line 60 find this:
Code: [Select]
if ($user['lookgender'] == 'B') {
$txtlookender_search = " AND user.gender in ('M','F') ";
} elseif ($user['lookgender'] != 'A') {
$txtlookgender_search = " AND user.gender = '".$user['lookgender']."' ";
}

Change to this:
Code: [Select]
if ($user['lookgender'] == 'B') {
$txtlookender_search = " AND user.gender in ('M','F','K','L','H') ";
} elseif ($user['lookgender'] != 'A') {
$txtlookgender_search = " AND user.gender = '".$user['lookgender']."' ";
}

And change this on line 152
Code: [Select]
if ($user['lookgender'] == 'B') {
$same_lookgendersql .= " and gender in ('M','F') ";
} elseif ($user['lookgender'] == 'A') {
} else {
$same_lookgendersql .= " and gender = '".$user['lookgender']."'";
}

Change to:
if ($user['lookgender'] == 'B') {
   $same_lookgendersql .= " and gender in ('M','F','K','L','H') ";
} elseif ($user['lookgender'] == 'A') {
} else {
   $same_lookgendersql .= " and gender = '".$user['lookgender']."'";
}

Add any extra letters you might have added also.

Now it should be all showing in the main stats.

Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35