[MODDB] Genders 0.1.3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
smithy_dll
Former Team Member
Posts: 7632
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

Re: [Beta] Genders 0.1.2

Post by smithy_dll »

Code: Select all

SELECT user_gender, COUNT(user_gender) as count
GROUP BY user_gender;
Systems Engineering
TRICHES.FR
Registered User
Posts: 75
Joined: Sat Jun 09, 2007 5:23 pm

Re: [Beta] Genders 0.1.2

Post by TRICHES.FR »

Good Mod !

Though, do you think you could implement it, as a needed text field, in the register ? As in with your date etc... You also have to put your sex ?

Thanks.
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [Beta] Genders 0.1.2

Post by igorw »

Thanks smithy, very nice :D

triches, thanks! Yes, i guess it would be possible.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_profile.php
#
#-----[ FIND ]------------------------------------------
#
						'gender'		=> array('num', true, 0, 2),
#
#-----[ REPLACE WITH ]------------------------------------------
#
						'gender'		=> array('num', false, 0, 2),
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------
#
			'tz'				=> request_var('tz', (float) $timezone),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
					'gender'		=> request_var('gender', $user->data['user_gender']),
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
				'lang'				=> array('match', false, '#^[a-z_\-]{2,}$#i'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
						'gender'		=> array('num', false, 0, 2),
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
					'user_inactive_time'	=> $user_inactive_time,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
							'user_gender'	=> $data['gender'],
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
			'S_HIDDEN_FIELDS'	=> $s_hidden_fields,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- 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 --------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/ucp_register.html
#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="tz">{L_TIMEZONE}:</label></dt>
		<dd><select name="tz" id="tz" class="autowidth">{S_TZ_OPTIONS}</select></dd>
	</dl>
#
#-----[ AFTER, ADD ]------------------------------------------
#
	<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>
Untested ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
TRICHES.FR
Registered User
Posts: 75
Joined: Sat Jun 09, 2007 5:23 pm

Re: [Beta] Genders 0.1.2

Post by TRICHES.FR »

eviL<3 wrote:
triches, thanks! Yes, i guess it would be possible.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_profile.php
#
#-----[ FIND ]------------------------------------------
#
						'gender'		=> array('num', true, 0, 2),
#
#-----[ REPLACE WITH ]------------------------------------------
#
						'gender'		=> array('num', false, 0, 2),
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------
#
			'tz'				=> request_var('tz', (float) $timezone),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
					'gender'		=> request_var('gender', $user->data['user_gender']),
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
				'lang'				=> array('match', false, '#^[a-z_\-]{2,}$#i'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
						'gender'		=> array('num', false, 0, 2),
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
					'user_inactive_time'	=> $user_inactive_time,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
							'user_gender'	=> $data['gender'],
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
			'S_HIDDEN_FIELDS'	=> $s_hidden_fields,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- 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 --------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/ucp_register.html
#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="tz">{L_TIMEZONE}:</label></dt>
		<dd><select name="tz" id="tz" class="autowidth">{S_TZ_OPTIONS}</select></dd>
	</dl>
#
#-----[ AFTER, ADD ]------------------------------------------
#
	<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>
Untested ;)
Thanks !! I'll test it out when it's in the mod database and i'll hit you back ;)
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [Beta] Genders 0.1.2

Post by igorw »

In that case i'll have to include it as an addon :lol:
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
LkM
Registered User
Posts: 28
Joined: Thu Dec 07, 2006 5:52 pm
Location: São Paulo - SP / Brazil
Contact:

Re: [Beta] Genders 0.1.2

Post by LkM »

I can't find this instruction on phpbb3 RC4:

Open: includes/ucp/ucp_profile.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all

					'bday_year'		=> 0,
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

//-- mod : Genders ------------------------------------------------------------
//-- add
					'gender'		=> request_var('gender', $user->data['user_gender']),
//-- fin mod : Genders --------------------------------------------------------
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [Beta] Genders 0.1.2

Post by igorw »

Confirmed, this MOD needs to be updated for RC4. ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [Beta] Genders 0.1.3

Post by igorw »

2007-07-30 - Version 0.1.3
  • phpBB 3.0.RC4
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5543
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin
Contact:

Re: [Beta] Genders 0.1.3

Post by darcie »

Thanks! I noticed the conflict yesterday and was waiting for an update here to do my upgrading. :)
phpBB on Facebook | Site Rules | Former Community Team leader
ambia
Registered User
Posts: 39
Joined: Mon May 21, 2007 6:15 pm

Re: [Beta] Genders 0.1.3

Post by ambia »

I've not installed this mod yet, but just out of curiosity, would it be possible to set the permissions so that some forums could become gender specific?
User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [Beta] Genders 0.1.3

Post by playerfr »

How you upadted the first post without the bottom edit date unchanged :shock:

Last edited by eviL<3 on Thu May 24, 2007 3:14 pm, edited 1 time in total.

I got deceived because of this and thought this mod was outdated :(

Now that it is RC4 i am going to install it :P
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [Beta] Genders 0.1.3

Post by igorw »

ambia wrote:I've not installed this mod yet, but just out of curiosity, would it be possible to set the permissions so that some forums could become gender specific?
I do not intend to include that feature - unless somebody else codes it, in which case i'd have it as an add-on. :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
LkM
Registered User
Posts: 28
Joined: Thu Dec 07, 2006 5:52 pm
Location: São Paulo - SP / Brazil
Contact:

Re: [Beta] Genders 0.1.3

Post by LkM »

Great job! :)

Thanks, eviL<3 ;)
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [Beta] Genders 0.1.3

Post by iyeru42 »

Can you make it so the gender image is next to the username rather than on a separate line (In TopicView)? The new line may clutter mods that require more than one new line (Like ADR possibly.)
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [Beta] Genders 0.1.2

Post by playerfr »

eviL<3 wrote:Thanks smithy, very nice :D

triches, thanks! Yes, i guess it would be possible.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_profile.php
#
#-----[ FIND ]------------------------------------------
#
						'gender'		=> array('num', true, 0, 2),
#
#-----[ REPLACE WITH ]------------------------------------------
#
						'gender'		=> array('num', false, 0, 2),
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------
#
			'tz'				=> request_var('tz', (float) $timezone),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
					'gender'		=> request_var('gender', $user->data['user_gender']),
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
				'lang'				=> array('match', false, '#^[a-z_\-]{2,}$#i'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
						'gender'		=> array('num', false, 0, 2),
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
					'user_inactive_time'	=> $user_inactive_time,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Genders ------------------------------------------------------------
//-- add
							'user_gender'	=> $data['gender'],
//-- fin mod : Genders --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
			'S_HIDDEN_FIELDS'	=> $s_hidden_fields,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- 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 --------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/ucp_register.html
#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="tz">{L_TIMEZONE}:</label></dt>
		<dd><select name="tz" id="tz" class="autowidth">{S_TZ_OPTIONS}</select></dd>
	</dl>
#
#-----[ AFTER, ADD ]------------------------------------------
#
	<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>
Untested ;)
I installed this, but Even unspecified works :( cant we force to choose between Male and Female only ?

Thanks
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com
Locked

Return to “[3.0.x] MODs in Development”