Genders

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Genders

Post by igorw »

You have to replace phpbb_users with users in the query.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

RobE
Registered User
Posts: 46
Joined: Fri Dec 09, 2005 7:59 pm
Location: Holland
Contact:

Re: Genders

Post by RobE »

Thanks! It works now.

superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: Genders

Post by superj707 »

http://www.phpbb.com/community/viewtopi ... 5#p8137725

this page helps a lot for people who are asking registration questions

User avatar
upsD
Registered User
Posts: 133
Joined: Thu Feb 07, 2008 1:26 am
Location: Freiburg (Black-Forest - Germany)

Re: Genders

Post by upsD »

yes, i know.
sorry me englisch, i am german, need traduktor ;-)
hallo, ich versteh nur die hälfte auf englisch, bitte langsam schreiben ;-) danke
http://translate.google.de/

joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: Genders

Post by joebart72 »

mehrdad_epark.ir wrote:
upsD wrote:
mehrdad_epark.ir wrote:who can help me ?
9 (nine) post before your first post in the same page 28 :lol:

see here: http://www.modslair.co.uk/viewtopic.php?f=2&t=388

ups
thanks
The link is dead.. Can someone post the tip for gender required on registration ? Thanks ;)
I learn English with phpbb.com :)

User avatar
upsD
Registered User
Posts: 133
Joined: Thu Feb 07, 2008 1:26 am
Location: Freiburg (Black-Forest - Germany)

Re: Genders

Post by upsD »

this is the old link, he is log time dead...
joebart72 wrote: The link is dead.. Can someone post the tip for gender required on registration ? Thanks ;)
@spaceace have save the snippet, look here http://www.phpbb.com/community/viewtopi ... 5#p8137725 at page 35 !

upsD
Last edited by upsD on Tue Mar 17, 2009 10:43 am, edited 1 time in total.
sorry me englisch, i am german, need traduktor ;-)
hallo, ich versteh nur die hälfte auf englisch, bitte langsam schreiben ;-) danke
http://translate.google.de/

User avatar
mehrdad_epark.ir
Registered User
Posts: 87
Joined: Thu Jul 31, 2008 3:08 pm

Re: Genders

Post by mehrdad_epark.ir »

joebart72 wrote: The link is dead.. Can someone post the tip for gender required on registration ? Thanks ;)
Add Genders option on register phpBB3
from here

If you are running Genders mod on your forum, you can make it default on register that a new member select the Gender.

Here's how:

Open includes/ucp/ucp_register.php

Find:

Code: Select all

    'tz'            => request_var('tz', (float) $config['board_timezone']),
Add below:

Code: Select all

    //-- mod : Genders ------------------------------------------------------------
    //-- add
                        'gender'      => request_var('gender', $user->data['user_gender']),
    //-- fin mod : Genders --------------------------------------------------------
Find:

Code: Select all

    'tz'            => request_var('tz', (float) $timezone),
Add below:

Code: Select all

    //-- mod : Genders ------------------------------------------------------------
    //-- add
                'gender'      => request_var('gender', $user->data['user_gender']),
    //-- fin mod : Genders --------------------------------------------------------
find :

Code: Select all

    'lang'            => array('match', false, '#^[a-z_\-]{2,}$#i'),
Add Below:

Code: Select all

    //-- mod : Genders ------------------------------------------------------------
    //-- add
                    'gender'      => array('num', true, 0, 2),
    //-- fin mod : Genders --------------------------------------------------------
Find:

Code: Select all

'user_inactive_time'   => $user_inactive_time,
Add Below:

Code: Select all

    //-- mod : Genders ------------------------------------------------------------
    //-- add
                        'user_gender'   => $data['gender'],
    //-- fin mod : Genders --------------------------------------------------------
Find:

Code: Select all

    'S_TZ_OPTIONS'      => tz_select($data['tz']),
Add Below:

Code: Select all

    //-- mod : Genders ------------------------------------------------------------
    //-- add
                'GENDER_X'      => GENDER_X,
                'GENDER_M'      => GENDER_M,
                'GENDER_F'      => GENDER_F,

                'S_GENDER_X'   => ($data['gender'] == GENDER_X) ? true : false,
                'S_GENDER_M'   => ($data['gender'] == GENDER_M) ? true : false,
                'S_GENDER_F'   => ($data['gender'] == GENDER_F) ? true : false,
    //-- fin mod : Genders --------------------------------------------------------
Now open: styles/subsilver2/template/ucp_register.html (or subsilver based style)

Find:

Code: Select all

    <tr>
       <td class="row1"><b class="genmed">{L_TIMEZONE}: </b></td>
       <td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>
    </tr>
Add below:

Code: Select all

    <tr>
       <td class="row1" width="35%"><b class="genmed"><label for="gender_x">{L_GENDER}:</label> </b><br /><span class="gensmall">{L_GENDER_EXPLAIN}</span></td>
       <td class="row2">
          <label for="gender_m"><input type="radio" name="gender" id="gender_m" value="{GENDER_M}"<!-- IF S_GENDER_M --> checked="checked"<!-- ENDIF --> /> {L_GENDER_M}</label>
          <label for="gender_f"><input type="radio" name="gender" id="gender_f" value="{GENDER_F}"<!-- IF S_GENDER_F --> checked="checked"<!-- ENDIF --> /> {L_GENDER_F}</label>
          <label for="gender_x"><input type="radio" name="gender" id="gender_x" value="{GENDER_X}"<!-- IF S_GENDER_X --> checked="checked"<!-- ENDIF --> /> {L_GENDER_X}</label>
       </td>
    </tr>
Now open: styles/prosilver/template/ucp_register.html (or prosilver based style)

Find:

Code: Select all

    <dl>
          <dt><label for="tz">{L_TIMEZONE}:</label></dt>
          <dd><select name="tz" id="tz" class="autowidth">{S_TZ_OPTIONS}</select></dd>
       </dl>
Add below:

Code: Select all

    <dl>
          <dt><label for="gender_x">{L_GENDER}:</label><br /><span>{L_GENDER_EXPLAIN}</span></dt>
          <dd>
             <label for="gender_m"><input type="radio" name="gender" id="gender_m" value="{GENDER_M}"<!-- IF S_GENDER_M --> checked="checked"<!-- ENDIF --> /> {L_GENDER_M}</label>
             <label for="gender_f"><input type="radio" name="gender" id="gender_f" value="{GENDER_F}"<!-- IF S_GENDER_F --> checked="checked"<!-- ENDIF --> /> {L_GENDER_F}</label>
             <label for="gender_x"><input type="radio" name="gender" id="gender_x" value="{GENDER_X}"<!-- IF S_GENDER_X --> checked="checked"<!-- ENDIF --> /> {L_GENDER_X}</label>
          </dd>
       </dl>
Upload files, purge cache and refresh template used.

Enjoy . . .

User avatar
Donz
Registered User
Posts: 21
Joined: Sat Mar 14, 2009 11:20 pm

Re: Genders

Post by Donz »

Just to drop by and let everyone know that this MOD works for 3.0.4.

And say that this MOD is awesome!

joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: Genders

Post by joebart72 »

Add Genders option on register phpBB3 is ok to add a new diled but this one is not required. You can't force to gill it... I'm looking for an add-on to force members to put a gender.
008008 wrote:
alf007 wrote:something like

Code: Select all

Open: includes/functions.php
Find

Code: Select all

function obtain_users_online_string($online_users, $forum_id = 0)
{
	global $config, $db, $user, $auth;
In-Line Find

Code: Select all

$auth
In-line Add after

Code: Select all

, $phpbb_root_path, $phpEx
Find

Code: Select all

$user_online_link = $online_userlist = '';
Add before

Code: Select all

	include($phpbb_root_path . 'includes/functions_genders.' . $phpEx);
Find

Code: Select all

$sql = 'SELECT username, username_clean, user_id, user_type, user_allow_viewonline, user_colour
In-Line Find

Code: Select all

user_colour
In-line Add after

Code: Select all

, user_gender
Find

Code: Select all

$user_online_link = get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']);
Add after

Code: Select all

					$user_online_link = str_replace($row['username'], $row['username'] . get_user_gender($row['user_gender']), $user_online_link);

When you click on a member :

Fatal error: Cannot redeclare get_user_gender() (previously declared in /Forum/includes/functions_genders.php:26) in /Forum/includes/functions_genders.php on line 54
Same problem, this add on doesn't work... ;)
I learn English with phpbb.com :)

Rilyntar
Registered User
Posts: 2
Joined: Tue Mar 17, 2009 5:28 pm

Re: Genders

Post by Rilyntar »

My first installed mod, and it is running. :)
Great work.

In the memberlist, die Image of the gender is directly near the name. How do I add a space between the name and the gender-image?

superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: Genders

Post by superj707 »

Rilyntar wrote:My first installed mod, and it is running. :)
Great work.

In the memberlist, die Image of the gender is directly near the name. How do I add a space between the name and the gender-image?
the answer to this is somewhere in these 60 pages I can't remember where but I found it once and used it. it involves &nbsp; if I remember correctly.

User avatar
DonnaC
Registered User
Posts: 50
Joined: Fri Sep 15, 2006 6:31 pm

Re: Genders

Post by DonnaC »

m0rpha wrote:
ramez wrote:1- Can each gender have thier own Ranks.
Explain: for Male : infant, boy, man, Father, grandfather.
For Female: infant, girl, lady, Mother, Grandmother.
There's an addon for that, contrib/addons/gender_rank ;)
Have looked in the Addons link (first page here on Genders MOD thread) and didn't find it.

Where exactly can I find this Add-On?

ETA:PLEASE DISREGARD! Just found it... in the install package... duh! sorry!
Last edited by DonnaC on Sat Mar 21, 2009 12:27 am, edited 1 time in total.

User avatar
DonnaC
Registered User
Posts: 50
Joined: Fri Sep 15, 2006 6:31 pm

Re: Genders

Post by DonnaC »

Ok, I'm using AutoMOD and in the installation process, everything was installed successfully, except these 3 new files:
New Files
Source ..............................................................Target ...................................................Status
root/styles/subsilver2/imageset/icon_gender_x.gif ....styles/subsilver2/imageset/icon_gender_x.gif ..Error
root/styles/subsilver2/imageset/icon_gender_m.gif ...styles/subsilver2/imageset/icon_gender_m.gif ..Error
root/styles/subsilver2/imageset/icon_gender_f.gif .....styles/subsilver2/imageset/icon_gender_f.gif ..Error
I'm using 3.0.4 phpbb.
I have one other MOD (Upcoming Birthdays) and no other at the moment.

Not sure what I'm supposed to do now... Thanks... and as you can see by my former post above, I'm pretty green when it comes to all this...

User avatar
upsD
Registered User
Posts: 133
Joined: Thu Feb 07, 2008 1:26 am
Location: Freiburg (Black-Forest - Germany)

Re: Genders

Post by upsD »

use FTP client
bsp: filezilla

ups
sorry me englisch, i am german, need traduktor ;-)
hallo, ich versteh nur die hälfte auf englisch, bitte langsam schreiben ;-) danke
http://translate.google.de/

User avatar
DonnaC
Registered User
Posts: 50
Joined: Fri Sep 15, 2006 6:31 pm

Re: Genders

Post by DonnaC »

Ok, I got the FTP part, but I'm not sure what bsp: filezilla means... (and I'm assuming ups is your signature line?)

I'm definitely a NEWbie and no expert, so I'm feeling my way thru all this... Thanks!

Locked

Return to “[3.0.x] MOD Database Releases”