vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Gender icons instead of text - View Topic
Topic Rating: *****
Printable View
skindstad
Junior Member
**

[Avatar]

Posts: 41
Status: Offline
Gender: Female
Location: Denmark
Joined:  
Reputation: 4%  


pmwwwtwittermsnyahoovForum
Gender icons instead of text (12th Jan 11 at 4:58pm UTC)
Resolved
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.

Image
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Gender icons instead of text (12th Jan 11 at 11:26pm UTC)
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.

Image
skindstad
Junior Member
**

[Avatar]

Posts: 41
Status: Offline
Gender: Female
Location: Denmark
Joined:  
Reputation: 4%  


pmwwwtwittermsnyahoovForum
Re: Gender icons instead of text (13th Jan 11 at 9:10pm UTC)
It worked, thanks a bunch {Kiss} {Grin}

Image
 Printable View

All times are GMT+0 :: The current time is 1:48pm
Page generated in 0.5149 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums