![]() |
one thing, if you people are using a unix system (where case matters), if the gender fields are "Male" and "Female", for this hack, you will need the image filenames to be "gender_Male.gif" and "gender_Female.gif" because it uses those fields to determine the filename. Hope this helps some of you with images not showing up :)
|
Quote:
|
Never mind. I fixed this problem myself. I find it's easier to have the default option blank instead of using "Undisclosed," revising the HTML code accordingly, and placing the Gender option between the Location and Age field rather than by itself underneath the IM icons.
Revised code (X = field ID): HTML Code:
<if condition="$post['fieldX']"><div>Gender: $post[fieldX] <img src="$stylevar[imgdir_misc]/gender_$post[fieldX].gif" alt="$post[fieldX]" /></div></if> HTML Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> |
Doesn't work for me. This is very similar to the country flag mod... that one works for me, this one not. :confused: Nothing shows up.
|
Quote:
|
The biggest complaint that I have seen to date on this is that they have done everything the way it says to do, but it doesn't show up.
There is a minor issue that seems to be forgotten OR misread in the original (1st) post of this thread. It is Quote:
postbit & postbit_legacy. The reason for this is because of the definition below: postbit_legacy: old-style postbit, using two vertical columns postbit: the new horizontal layout More than likely they have edited one of the templates and are in the other type view mode. With that said, it is just easier to edited both templates. I hope this clears up some issues. Cheers |
How do i add it so that the members that has not selected this wotn show up in the postbit ?
An if statement i think. I yust want to show it if the users have chosen it in the profile. |
Try using the revisions I made to the mod.
|
Okay folks this works great. I need to know what the variable $post should be changed to in order to display this on the Who's Online page? Please help.
|
Hi,
It doesn't seem to be working. It says Male Male instead of showing the image |
Quote:
Quote:
Also, in my revision, you'll need to set the Set Default option to None, not Yes, Including a First Blank Option. Otherwise, new members will automatically be classified as Male instead of having no specified gender. |
zender, i tried what you said but with no luck. then again my postbit doesn't have the exact same part as the postbit_legacy. my postbit_legacy which is what i'm using, uses < div > while my postbit just uses < tr > < td > and < table > so i wasn't that certain whether to put it behind just the </ td > or the </ table >, did anybody else happen to figure out how to get those pix to show? and get rid of that Male Male / Female Femal?
|
man what the.... aiight. look i got one of the pictures to show up, remember it says "male male" or "female female".
and here are my 2 cents, if you're running a forum in some other language, for example german, you're going to have to name the file gender_Maennlich.gif instead of gender_Male.gif. because of the phrase translation. now get jiggy with it. only problem is, as long as it shows "Male < img >" the image is kind of useless. //////// ****, how did you guys not get this? this is the code you need: HTML Code:
<if condition="$post[fieldX] != Undisclosed"><div><img src="$stylevar[imgdir_misc]/gender_$post[fieldX].gif" alt="$post[fieldX]" /> </div></if> now get jiggy with it! |
installed the hack, tis beautiful, thanks!
just one thing...the pictures wont work because the gender thing is set to Male and Female, but you say to upload the images as gender_male...it should be capitalized to get it to show up ;) |
I installed it but only after reading the tips from people who understood the instructions. its great and if you want to see it in action check out: Pit Lane
|
works with vb3.07?
|
Yes, this should work with vBulletin 3.0.7, as well as all other revisions of vBulletin 3.
|
installed cool ;)
I have only 1 question: I'd like to not show anything on my postbit if the members select no sex, how do I set this? |
Remove "Undisclosed" and change the Set Default option to None.
|
i've set up my members listing page to show this custom profile. right now, it shows Gender > male for example. How do I KISS and make it so it shows the picture and not the text? This would be helpful also for the membersinfo page as well.
for those of you who don't know, KISS = Keep It Simple Stupid |
Ok this is probably a really dumb question but what is a field id and where do I find it? :confused:
EDIT: Nevermind, im an idiot, found it. |
All times are GMT. The time now is 01:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|