Gender MOD

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

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
35
67%
Very Good
7
13%
Good
4
8%
Fair
1
2%
Poor
5
10%
 
Total votes: 52

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29216
Joined: Sat Aug 16, 2003 7:36 am

Gender MOD

Post by Extensions Robot »

Modification name: Gender MOD
Author: eviL<3
Modification description: This MOD allows users to specify a Gender. The gender is visible in viewprofile and, viewtopic. The admin can also configure it to disable Genders, allow text or image genders.
Modification version: 1.0.5
Tested on phpBB version: 2.0.22

Download file: gender_mod_1_0_5
File size: 13426 Bytes

Modification overview page: View


Selected tags:
  1. category
    1. Profile
  2. phpbb
    1. 2.0.21
    2. 2.0.22
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Jul 02, 2007 6:21 pm, edited 2 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
MarkTheDaemon
Former Team Member
Posts: 2771
Joined: Thu Oct 20, 2005 2:42 am
Location: United Kingdom
Name: Mark Barnes

Post by MarkTheDaemon »

MOD Validated/Released

Notes:
The MOD Description says it all
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Wheee, finally! Thanks! :D


FAQ:

Not a single part of the MOD is showing up
Note: You need to enable the MOD in the general configuration first ;)

I'm getting an error when installing with easymod
Version 1.0.1a of the MOD has one small part that easymod doesnt like. You can just do that part manually. If you're using a newer version, you don't have to worry.

The gender is only showing up for the last post
You need to pay attention to the last mod edit in viewtopic.php. This problem has been mentioned here.
HiddenSanctum wrote: Evil - Great job! An excellent vote from me.

I did have the same typo as a previous poster where only the last post's gender was showing up. In case anyone else has the same problem, when working in viewtopic.php where it says:
#
#-----[ FIND ]------------------------------------------
#
}

$template->pparse('body');

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Gender MOD
if ( $board_config['gender_display'] )
{
$template->assign_block_vars('postrow.switch_gender_display', array());
}
// Gender MOD


pay particular attention to the } located here:
#
#-----[ FIND ]------------------------------------------
#
}

$template->pparse('body');

#
#-----[ BEFORE, ADD ]------------------------------------------
#


Anyway, good job! Keep up the great work!


It could also be a problem with a quick reply MOD, so have a look at this post, if you're using one ;) Also have a look at this post by wasku, where he has a nice screenshot to make it more clear.

I have some problem with the editprofile page
There are some tricky partial finds in usercp_register.php, here's what i mean:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
		$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies'])
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Gender MOD ------------------------------------------------------------
//-- add
		$user_gender = ( isset($HTTP_POST_VARS['user_gender']) ) ? intval( $HTTP_POST_VARS['user_gender'] ) : 0;
//-- fin mod : Gender MOD --------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
		$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Gender MOD ------------------------------------------------------------
//-- add
		$user_gender = ( isset($HTTP_POST_VARS['user_gender']) ) ? intval( $HTTP_POST_VARS['user_gender'] ) : $userdata['user_gender'];
//-- fin mod : Gender MOD --------------------------------------------------------
Make sure you do NOT add the code directly after

Code: Select all

$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies'])
It is a partial "FIND". You find the line containing that code (the actual line is longer). "AFTER, ADD" means you add the code after that line, on a new line. Just for clarification. :)


Demo:

Editprofile:
Image

Memberlist:
Image

Viewprofile:
Image

Viewtopic:
Image

Admin:
Image
Last edited by igorw on Thu Feb 08, 2007 7:38 pm, edited 5 times in total.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
yongkian
Registered User
Posts: 92
Joined: Sat Jul 17, 2004 1:44 pm
Location: Singapore

Post by yongkian »

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

Post by igorw »

Thank you :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet »

sweet mod
mogster
Registered User
Posts: 28
Joined: Wed Sep 27, 2006 9:58 am

Post by mogster »

LOLZ to the "not specified"
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3542
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

mogster wrote: LOLZ to the "not specified"


Some women don't want you know they are women, because stalkers that find people on the internet. It happens at both large sites like MySpace/Facebook, and at small sites.
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .
phatchopolis
Registered User
Posts: 166
Joined: Mon May 29, 2006 11:40 pm

Post by phatchopolis »

Will I need to alter the code at all if I make the gender images smaller?
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3542
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

No.
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

bonelifer is correct :) The image sizes aren't hardcoded into the template.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
joebart
Registered User
Posts: 31
Joined: Sat May 13, 2006 1:30 am
Location: Paris (France)

Post by joebart »

This mod already exists... What are the differences with Gender 1.2.8 of Niels ?
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Code: Select all

## Author Notes:
## Before creating this MOD i tried to contact niels about his.
## I intended to continue supporting it, and getting it into the
## MODDB. But it was impossible to contact him, so i simply started
## my own. I may be reinventing the wheel, but what's so bad about
## differen't types of wheels?
:D
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
joebart
Registered User
Posts: 31
Joined: Sat May 13, 2006 1:30 am
Location: Paris (France)

Post by joebart »

Ok lol, thanks eviL<3 :wink:
Bellewaerdeboy
Registered User
Posts: 2
Joined: Thu Nov 23, 2006 12:34 pm
Location: Belgium
Contact:

Post by Bellewaerdeboy »

Very nice mod, congratulation. But I have a little problem with it yet. In viewtopic, not all my members have been shown their gender. Sometimes it does, sometimes it doesn't. For example:

http://samclauw.1host4you.be/bellewaerd ... c.php?t=10

Here you can see that only the last poster his gender is shown. If you open another topic in my board, it's exact the same problem. Only the last poster's gender is displayed. Did I do something wrong in my installation???

+ in my memberlist, the logo's of the genders aren't displayed.

Thanks for the support!

Edit: first problem solved, it was a very very little mistake (forgot a "}" in the code).
Second problem of the memberlist stays a problem...
Post Reply

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