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
zelnik44
Registered User
Posts: 40
Joined: Fri May 30, 2008 4:53 pm

Re: Genders

Post by zelnik44 »

OMG!

I thought I did but i must have forgot imageset refresh..

Works a treat now!!!! thanks so much, great mod!!

Now time to get it working in Subsilver! :)

So happy, thanks!
zelnik44
Registered User
Posts: 40
Joined: Fri May 30, 2008 4:53 pm

Re: Genders

Post by zelnik44 »

Just found an issue that i'm sure is something ELSE I'm doing wrong!

I selected Male as the first person to try it out.

Now everyone in the DB is set to male! is there anyway around this? set to unspecified as default?

Thanks so much for your patience and time!
juanitofeliz
Registered User
Posts: 4
Joined: Thu Jun 05, 2008 6:33 am

Re: Genders

Post by juanitofeliz »

eviL<3 wrote:... it looks as if you didn't run the SQL.

ok... i only get "Unknown column 'user_gender' in 'field list' [1054]"... and i think it's because i didn't run the SQL... but.... there's my problem.... i don't know how to do that...

in the installation instructions it says:

SQL

Code: Select all

ALTER TABLE phpbb_users ADD user_gender TINYINT(1) UNSIGNED NOT NULL DEFAULT 0;
but i don't get it... please help :oops: [/b][/color]
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 »

Look in the sticky of this very forum.

http://www.phpbb.com/community/viewtopi ... 9&t=724145
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
juanitofeliz
Registered User
Posts: 4
Joined: Thu Jun 05, 2008 6:33 am

Re: Genders

Post by juanitofeliz »

thanks a lot eviL<3 i read the instructions from that link and it did work!! jeje

but....... now that i receive no errors, i cleaned cache, and updated templates, themes and the gallery, but still don't display the text "male", "female" or "none"... and looking for the option in the user's control panel i can't find where it is.... so.... i don't know what's the problem now... :oops: any ideas??
Speeddymon
Registered User
Posts: 9
Joined: Sat Jun 07, 2008 9:52 am

Re: Genders

Post by Speeddymon »

I am having the same problem. I cleared cache, for both styles, refreshed both styles, refreshed the imagesets, everything, double checked all steps. Not getting the options in the ACP or the UCP (in either style).
User avatar
opoqol5
Registered User
Posts: 29
Joined: Sat Jun 07, 2008 7:31 am

Re: Genders

Post by opoqol5 »

I've got the same, so I removed everything and added that one as custom profile field, doesn't have all those options but it does the trick, but, I would like to know the answer, though ;)
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 »

Did you apply the edits from the templates folder of the package?
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
opoqol5
Registered User
Posts: 29
Joined: Sat Jun 07, 2008 7:31 am

Re: Genders

Post by opoqol5 »

Yes that's what I've missed, probably because I've been working whole day, and it was pretty late. I was wondering how come there are no changes to template files and now I see it was my mistake,
thanks
vhx
Registered User
Posts: 3
Joined: Wed Mar 24, 2004 11:31 pm

Re: Genders

Post by vhx »

I tried it but was unable to get the gender to show up when I viewed a profile, same result once I retried the file. The field was blank, regardless of what I had set in there.

I also tried implementing the gender ranks, however those didn't seem to work either. I made one male and one female rank and tried changing my gender, but they never swapped or stuck to the right one.

I didn't get any error messages or anything like that and ran the query. The text simply did not show up property in the user's profiles, and the custom ranks never showed up properly either. Even when I set them in my profile settings (which did show up and save by the way), nothing changed profile wise or rank wise.

Any ideas?
juanitofeliz
Registered User
Posts: 4
Joined: Thu Jun 05, 2008 6:33 am

Re: Genders

Post by juanitofeliz »

ok ok i read about the "apply the edits from the templates folder of the package" and yes, i think that's my mistake.... but... it has instructions for subsilver and prosilver templates... and both have different instruction codes... i search in my own template code, and it has half from subsilver and half from prosilver... i mean, i use "inspiration" template, and it doesn't use the same "full" code from none of those templates ... i could mix the codes from both templates into my "inspiration" template... but i doubt it will work.... so.. what do you guys think i could do??
Speeddymon
Registered User
Posts: 9
Joined: Sat Jun 07, 2008 9:52 am

Re: Genders

Post by Speeddymon »

I didn't notice before that the templates folder had it's own xml files to be viewed. This is why I couldn't see the genders options.. Perhaps you could put a final note in the main xml to look at those 2 files for style specific install.
calleros
Registered User
Posts: 1
Joined: Wed Jun 04, 2008 10:49 pm

Re: Genders

Post by calleros »

Hi
I made all the changes but I do not work I believe that because I have installed Prime Birthdate, I believe that the problem is in these 2 archives adm/style/acp_users_profile.html and styles/subsilver2/template/ucp_profile_profile_info.html, can somebody help me to edit these 2 archives
User avatar
mara7
Registered User
Posts: 139
Joined: Wed May 11, 2005 5:59 pm

Re: Genders

Post by mara7 »

I do it on registeration form :D ..

--[ Open ]--

includes/ucp/ucp_register.php

--[ Find ]--

Code: Select all

					'tz'				=> request_var('tz', (float) $config['board_timezone']),
--[ Add After ]--

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 After ]--

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 After ]--

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 After ]--

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 After ]--

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 --------------------------------------------------------
--[ Open ]--

styles/subsilver2/template/ucp_register.html

--[ 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 After ]--

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>
--[ Save and test it ]--

evil<3 .. really I love ur mods :D ..
is my way to display rhe genders in the register page true ?? :roll:

regards, :mrgreen:
User avatar
mara7
Registered User
Posts: 139
Joined: Wed May 11, 2005 5:59 pm

Re: Genders

Post by mara7 »

ooh sorry,

I forgot the prosilver, :D

--[ Open ]--

styles/prosilver/template/ucp_register.html

--[ 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 After ]--

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>
Locked

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