vForums Support > Programming & Coding :: Code Requests & Support :: > Gender icons instead of text
Gender icons instead of text - Posted By skindstad (skindstad) on 12th Jan 11 at 4:58pm
Hey I was wondering if it's possible to change the text in the mini-profiles from female/male to an image/icon instead and how it's done? Haven't been able to find a code in here. Thanks.
Re: Gender icons instead of text - Posted By Ross (admin) on 12th Jan 11 at 11:26pm
It can be done by just modifying your Mini-Profile template:
Admin Panel -> Manage Templates -> Choose to modify the mini-profile one or create one if one doesn't already exist
Create 2 images, one for female, one for male. Name them Male.jpg and Female.jpg and then upload them to your image host. It is important that you use an image host where the image will keep the same filename. I believe photobucket.com allows this but expect there are also others.
Find the bit which looks like this:
{if:gender}<br />Gender: {gender}{/if:gender}
And replace with:
{if:gender}<br />Gender: <img src="http://your-domain.com/images/{gender}.jpg" alt="{gender}" />{/if:gender}
The bit in red should be the folder where the images are uploaded to (should be the image URL but without the filename on the end).
Hope that makes sense. Let us know if not.
Re: Gender icons instead of text - Posted By skindstad (skindstad) on 13th Jan 11 at 9:10pm
It worked, thanks a bunch