[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!
Anti-Spam Guide
Locked
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

[MODDB] Genders 0.1.3

Post by igorw » Tue May 22, 2007 12:08 am

MOD Title: Genders
MOD Description: This MOD will allow your members to specify their Gender. They can chose between "Male", "Female" and "None specified".
MOD Version: 0.1.3
phpBB Version: 3.0.RC4

MOD Format:
Image

MOD Download: genders_0_1_3.zip

Demo:
View topic
Image

View profile
Image

Memberlist
Image

Credits: All the creators of those sweet gender images!
Last edited by igorw on Thu May 24, 2007 11:14 pm, edited 1 time in total.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

Tanapangarap
Registered User
Posts: 67
Joined: Sat Mar 11, 2006 5:18 am
Contact:

Re: [Beta] Genders 0.1.2

Post by Tanapangarap » Tue May 22, 2007 2:51 am

Will there be a way to save who picked what gender since I've used the gender MOD on phpBB2, and apply it after upgrading to phpBB3 and installing this MOD?

What code change should I make to make the text "Male" or "Female" show up in viewprofile instead of the images?

Thanks for developing this MOD, by the way.

geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am
Contact:

Re: [Beta] Genders 0.1.2

Post by geoffreak » Tue May 22, 2007 4:32 am

upgrade script from 0.1.1? :(
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!

User avatar
Eelke
QA Team
Posts: 2903
Joined: Thu Dec 20, 2001 8:00 am
Location: NL, Bussum
Name: Eelke Blok
Contact:

Re: [Beta] Genders 0.1.2

Post by Eelke » Tue May 22, 2007 6:56 am

Tanapangarap wrote:What code change should I make to make the text "Male" or "Female" show up in viewprofile instead of the images?
Wouldn't that be something that could be done without any MOD, using custom profile fields?

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 » Tue May 22, 2007 12:10 pm

Tanapangarap wrote:Will there be a way to save who picked what gender since I've used the gender MOD on phpBB2, and apply it after upgrading to phpBB3 and installing this MOD?
That's not possible yet, the current upgrade script in the contrib folder only works if you apply it before upgrading. I think there will be an upgrade script that works after upgrading soon ;) I need to work out how that works... tell your members to wait or update it themselves.
Tanapangarap wrote:What code change should I make to make the text "Male" or "Female" show up in viewprofile instead of the images?
In styles/prosilver/template/memberlist_view.html find:

Code: Select all

<dt>{L_GENDER}:</dt> <dd>{USER_GENDER_IMG}</dd>
Replace it with:

Code: Select all

<dt>{L_GENDER}:</dt> <dd>{USER_GENDER}</dd>
Tanapangarap wrote:Thanks for developing this MOD, by the way.
:)
geoffreak wrote:upgrade script from 0.1.1? :(
You're fine, i just updated the description, changed the xsl and the target version ;)
Eelke wrote:Wouldn't that be something that could be done without any MOD, using custom profile fields?
It could, but it's also possible with mine, and mine allows other MODs to build uppon easier.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
rickyreter40
Registered User
Posts: 105
Joined: Tue Aug 01, 2006 7:56 pm
Location: sussex

Re: [Beta] Genders 0.1.2

Post by rickyreter40 » Tue May 22, 2007 1:03 pm

Hi,what files go where please :D
http://www.cartalkuk.co.uk
Join for free....carchat...

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 » Tue May 22, 2007 1:09 pm

Is anything not clear enough in the instructions?

Code: Select all

Copy: root/styles/prosilver/imageset/icon_gender_x.gif
          To: styles/prosilver/imageset/icon_gender_x.gif
Copy: root/styles/prosilver/imageset/icon_gender_m.gif
          To: styles/prosilver/imageset/icon_gender_m.gif
Copy: root/styles/prosilver/imageset/icon_gender_f.gif
          To: styles/prosilver/imageset/icon_gender_f.gif
Copy: root/styles/subsilver2/imageset/icon_gender_x.gif
          To: styles/subsilver2/imageset/icon_gender_x.gif
Copy: root/styles/subsilver2/imageset/icon_gender_m.gif
          To: styles/subsilver2/imageset/icon_gender_m.gif
Copy: root/styles/subsilver2/imageset/icon_gender_f.gif
          To: styles/subsilver2/imageset/icon_gender_f.gif
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
rickyreter40
Registered User
Posts: 105
Joined: Tue Aug 01, 2006 7:56 pm
Location: sussex

Re: [Beta] Genders 0.1.2

Post by rickyreter40 » Tue May 22, 2007 1:16 pm

SOOOOORRRYY..did'nt see them but now do...why is it that the admin/mod team get so shirty...were all not experts you like you ... sorry i asked
http://www.cartalkuk.co.uk
Join for free....carchat...

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 » Tue May 22, 2007 1:31 pm

rickyreter40 wrote:SOOOOORRRYY..did'nt see them but now do...why is it that the admin/mod team get so shirty...were all not experts you like you ... sorry i asked
Hey, it's allright, mate. I didn't mean to sound harsh. I need to use more emoticons :lol:
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

kfung0426
Registered User
Posts: 3
Joined: Mon Apr 23, 2007 12:20 pm

Re: [Beta] Genders 0.1.2

Post by kfung0426 » Tue May 22, 2007 9:24 pm

hi,eviL<3,
After I install this mod, if i just display the word, it works, but it cannot display the image. :cry:

Code: Select all

function get_user_gender($user_gender, $use_text = false)
{
	global $user, $config;
	
	switch ($user_gender)
	{
		case GENDER_M:
			$gender = 'gender_m';
		break;
		
		case GENDER_F:
			$gender = 'gender_f';
		break;
		
		default:
			$gender = 'gender_x';
	}
	
	if ($use_text)
	{
		$gender = $user->lang[strtoupper($gender)];
	}
	else
	{
		$gender = $user->img('icon_' . $gender, strtoupper($gender));
	}
	
	return $gender;
}
after i change the$gender = $user->img('icon_' . $gender, strtoupper($gender));
by $gender = $user->img('icon_topic_latest', strtoupper($gender));
it can show a image.

Is it related to the cache?
I have done all of your instruction.
Please help me.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 » Tue May 22, 2007 10:30 pm

Hello,

please clear cache, and refresh imagesets and themes in the ACP :ugeek:
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

acharabia
Registered User
Posts: 139
Joined: Fri Sep 27, 2002 4:41 pm
Location: SEOUL/KOREA
Contact:

Re: [Beta] Genders 0.1.2

Post by acharabia » Thu May 24, 2007 6:57 pm

Ah~ this mod has too much problem...
  1. When the people first register in profile-add-body where is radio button for selection?
  2. And Admin can't edit their genter in user-edit-body in ACP. I can see their on user-edit-body in ACP but after selection and submit, nothing change to gender.
Gender:
Please enter your gender here. Male Female None specified
This mod have much problems yet in this moment.
To delete all this mod also not very easy... Ugh... :shock:
Code below was correct work by my editing.
[includes/ucp/ucp_profile.php]

Code: Select all

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

					'S_GENDER_X'	=> (isset($data['gender']) == GENDER_X) ? true : false,
					'S_GENDER_M'	=> (isset($data['gender']) == GENDER_M) ? true : false,
					'S_GENDER_F'	=> (isset($data['gender']) == GENDER_F) ? true : false,
//-- fin mod : Genders --------------------------------------------------------
Image

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 » Thu May 24, 2007 11:16 pm

Hello,

i'll take a look at it, and see if i can reproduce your problems. ;)
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.2

Post by igorw » Thu May 24, 2007 11:39 pm

acharabia wrote:When the people first register in profile-add-body where is radio button for selection?
That's not included. It's only in editprofile at the moment. May change though ;)
acharabia wrote:And Admin can't edit their genter in user-edit-body in ACP. I can see their on user-edit-body in ACP but after selection and submit, nothing change to gender.
Confirmed, it doesn't seem to update the gender in the acp. I'll fix this up for the next version ;)

Thanks for reporting!
acharabia wrote:This mod have much problems yet in this moment.
I think it's only one...


EDIT: Just tested and now i'm not having that problem anymore. Updates perfectly for me. Did you run the SQL when installing?
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

acharabia
Registered User
Posts: 139
Joined: Fri Sep 27, 2002 4:41 pm
Location: SEOUL/KOREA
Contact:

Re: [Beta] Genders 0.1.2

Post by acharabia » Fri May 25, 2007 6:31 am

eviL<3 wrote:EDIT: Just tested and now i'm not having that problem anymore. Updates perfectly for me. Did you run the SQL when installing?
Sure~ SQL install, so I could see that a indication at ACP.
That's not only fault of yourself. This phpbb3 system
having some complicate to edit. e.g. same posting.php
exgist other place. So I'm not sure to adapt this phpbb3 system yet.
Thank you anyway for sharing good MOD. Have a good time. 8-)
Image

Locked

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