Changing icon for Sex

When you search for All members, on the right side it will display an icon for male and another for female. I added two more categories there for MTF and FTM. But for both it defaults to a picture of a penguin. I believe I found the code that controls this, and I modified it as shown below:

File: templates/base/scripts/BxBaseFunctions.php

        function genSexIcon($sSex) {
                switch( $sSex ) {
                        case 'male'     :
                                return getTemplateIcon( 'male.png' );
                        case 'female' :
                                return getTemplateIcon( 'female.png' );
                        case 'men'      :
                                return getTemplateIcon( 'male.png' );

                        case 'MTF'      :
                                return getTemplateIcon( 'female.png' );

                        case 'FTM'      :
                                return getTemplateIcon( 'male.png' );


                        default :
                                return getTemplateIcon( 'tux.png' );
                }
    }

 

As you can see, I added choices for FTM and MTF, but it still defaults to tux.png. I want to make custom icons for this, but first need to correct this.

 

Any ideas?

Quote · 30 May 2011

Hello yes you right here you can add new sex icons.

1. Make sure that you have added MTF not the mtf



PS: If possible do not write me personally, please try to ask on the forum first
Quote · 31 May 2011

 

Hello yes you right here you can add new sex icons.

1. Make sure that you have added MTF not the mtf



 I'm sorry but where do I right click? I'm not sure where you mean.

Quote · 31 May 2011

Check the case sensitive!

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 31 May 2011

 

Check the case sensitive!

 I checked and it's spelled with the correct case. I'm not sure why it's not working. Exactly the way I pasted the code in my first post is the exact way it's in the system. I think I'm missing something.

Quote · 31 May 2011

Post your issue to support page. Make there technical ticket...

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 31 May 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.