View Full Version : Mini Mods - Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD
Welshy2008
12-25-2009, 10:00 PM
What is this?
This is a little Mod & Template edit that adds a 'Gender' for you Members to choose and displays their 'Gender and a nice little icon' in their Postbit.
Instructions in the "READ ME" file (pdf) , pictures and SCREENSHOTS are all included in the Attached file ' Gender in Postbit'.
Complete this in 4 Steps:-
STEP ONE; Create a New Profile Field:
AdminCP -> User Profile Fields -> Add New User Profile Field ->
And do the following:
Profile Field Type: Single-Selection MenuClick Continue
Add New User Profile field: Single-Selection Menu
Title: Gender:
Description: Please Select your Gender
Profile Field Category: Uncatagorized
Options: Male , Female
Set Default: None
Display Order: (Chosen By You)
Field Required: Yes, at registration & profile updating (You don?t have to make it compulsory)
Field Editable By User: Yes
Private Field: No
Field Searchable On Members List: Yes
Show On Members List: YesOptional Output:
Allow User to input their own value for this option: No
Max length of allowed user input: 100
Field Length: 25
Regular Expression: Leave this EMPTYDisplay Page:
Which page displays this option? Edit ProfileSAVE & Note the ?field? number as you need to replace the ?X? with it in the two positions (2) containing ?fieldX?
STEP 2; Add a Phrase:
AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase (Center button on the bottom):
Phrase Type: GLOBAL
Product: vBulletin
Varname: gender
Text: GenderSAVE
STEP 3; Postbit or Postbit_Legacy Template (whichever one you use):
AdminCP -> Styles and Templates -> Style Manager -> (style that you use ? Mine is ?Default Style?) -> << >> -> Postbit
Templates -> Postbit (or Postbit _legacy, depending on which one YOU use)
FIND:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt>: <dd>{vb:raw post.joindate}</dd></vb:if><br />
ADD BELOW:
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
vBulletin 4.1.0 (tested by beiamerica (https://vborg.vbsupport.ru/showpost.php?p=2130638&postcount=87). Please note that I have not tested this myself.
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.fieldX}.gif" alt="{vb:raw post.fieldX}" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
Replace the TWO Green ?X?s with the field number in Step One (1).
Replace the Red Text with YOUR forum address.
STEP 4; Upload the Images:
Upload the ?Male.gif? and the ?Female.gif? to the ?images/misc? directory of your forum?s route.THAT?S IT !
To view it in your profile: Edit your Profile and choose your ?Gender?.
Please Click the Install and Rate the Mod ? Many Thanks.
Edited on Wednesday 7th July 2010. Reason: Two more Screenshots added and made the "Single-Selection Menu" Bold.
Welshy2008
12-26-2009, 09:01 PM
* Reserved *
iguano
12-26-2009, 10:24 PM
I no understand, into Gender In Postbit.zip i found a file .lnk :confused:
Welshy2008
12-26-2009, 10:51 PM
I no understand, into Gender In Postbit.zip i found a file .lnk :confused:
Sorry, Iguano. Don't know what happened there. But I have now redone and reuploaded another .zip folder.
iguano
12-26-2009, 11:15 PM
Installed :)
perfect, thanks you
Welshy2008
12-26-2009, 11:19 PM
You're Welcome. :D
stuky4ever
12-27-2009, 01:17 AM
How can I update everyones Gender?
Charlie98902
12-27-2009, 01:26 AM
Could set in in the setting to be mandatory. Then they have to.
Taurus1
12-27-2009, 02:13 AM
Thanks for this. You might just want to mention in your instructions to also change the URL to your forums. Then also, why is the image below the text, as shown here??
108273
Merjawy
12-27-2009, 02:33 AM
Tagged
Thanks
Welshy2008
12-27-2009, 08:48 AM
Thanks for this. You might just want to mention in your instructions to also change the URL to your forums. Then also, why is the image below the text, as shown here??
108273
Code:
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
Replace the TWO Green ‘X’s with the field number in Step One (1).
Replace the Red Text with YOUR forum address.
How's that? :)
With regard to the position, Your layout looks different to the vB standard layout. It is a matter of moving the code around to suit.
Welshy2008
12-27-2009, 08:54 AM
How can I update everyones Gender?
Could set in in the setting to be mandatory. Then they have to.
That is coorrect. And when your members go and edit their profile, they will have to update their Gender Bit.
You could start a thread on your forum explaining about the new feature and that you would like everyone to update their profiles.
It's a pitty that there wasn't a mod that you could have that forces everyone to update their profiles. (would be great for times like this). And if they don't update their profiles when prompted, they will not be able to view the forums. Good Idea or 'overboard'? YOu decide
:D
Hasanudin
12-27-2009, 11:51 AM
thx for u.. installed :)
milsirhc
12-27-2009, 12:23 PM
Thanks! INstalled!
Dr.osamA
12-27-2009, 12:40 PM
i have it 4 dyes ago
thanxxxx
installed
________
Vapir No2 (http://no2vaporizers.com)
SpankMe
01-04-2010, 08:43 PM
I put the gender symbol in that empty space between userinfo and userstats.
Find in postbit:
<vb:if condition="$post['userid']">
<div class="userinfo_extra">
and add the following above:
<div style="float:left; font-size:24px;">
<vb:if condition="$post['fieldx'] == 'Male'">
♂
<vb:elseif condition="$post['fieldx'] == 'Female'" />
♀
</vb:if>
</div>
I test specifically for male/Female as I give my members a third option: "None of your business".
Welshy2008
01-05-2010, 10:15 AM
I put the gender symbol in that empty space between userinfo and userstats.
Find in postbit:
<vb:if condition="$post['userid']">
<div class="userinfo_extra">
and add the following above:
<div style="float:left; font-size:24px;">
<vb:if condition="$post['fieldx'] == 'Male'">
♂
<vb:elseif condition="$post['fieldx'] == 'Female'" />
♀
</vb:if>
</div>
I test specifically for male/Female as I give my members a third option: "None of your business".
Can you click "Installed" please?
SpankMe
01-05-2010, 05:51 PM
Can you click "Installed" please?
Sorry, but I've been doing this myself for years :)
Welshy2008
01-06-2010, 07:51 AM
Sorry, but I've been doing this myself for years :)
Not on this version you haven't. ;) I redone the code and released it - exactly the same as the other guys before me on differing versions. :)
But - maybe you should have released it?
Anyway, This time last year (And still am on a lot of mods etc) grateful for what people have done, when I am unable to do them myself. :D
And that is what it is all about.
I bid you a good day. :)
RedHacker
01-14-2010, 09:45 PM
Can i have icon for Mature...?
serega_m
01-15-2010, 10:58 PM
Hi,
Your code is working fine but I have a little problem, as my genders are in Russian, so before I was using this code in postibt_legacy:
<br /> Он/Она/Оно? - <if condition="$post[field6] == 'Он'"><img src="images/misc/male.gif" align="absmiddle" alt="Он">
<else /><if condition="$post[field6] == 'Она'"><img src="images/misc/female.gif" align="absmiddle" alt="Она"><else /><if
condition="$post[field6] == 'Оно'"><img src="images/misc/it.gif" align="absmiddle" alt="Оно"></if></if>
But now it doesn't work, obviously. I have tried to modify it to work with vB 4.0.1 style but with no results. Can anybody please modify the code so it will work with vB 4.0.1 the way it was working for me before - with if-else operators, so if a person's gender is "Она" (Female) then the appropriate pic will be showing. I could use just english words for my Russian forums, of course, but then I need to save the new English gender in every profile which already had the old Russian gender, and it will be a major pain in the ass and I dunno how or if I can do it automatically from AP.
Welshy2008
01-16-2010, 10:22 AM
Hi,
Your code is working fine but I have a little problem, as my genders are in Russian, so before I was using this code in postibt_legacy:
<br /> Он/Она/Оно? - <if condition="$post[field6] == 'Он'"><img src="images/misc/male.gif" align="absmiddle" alt="Он">
<else /><if condition="$post[field6] == 'Она'"><img src="images/misc/female.gif" align="absmiddle" alt="Она"><else /><if
condition="$post[field6] == 'Оно'"><img src="images/misc/it.gif" align="absmiddle" alt="Оно"></if></if>
But now it doesn't work, obviously. I have tried to modify it to work with vB 4.0.1 style but with no results. Can anybody please modify the code so it will work with vB 4.0.1 the way it was working for me before - with if-else operators, so if a person's gender is "Она" (Female) then the appropriate pic will be showing. I could use just english words for my Russian forums, of course, but then I need to save the new English gender in every profile which already had the old Russian gender, and it will be a major pain in the ass and I dunno how or if I can do it automatically from AP.
What are the following, in Russian?
Please Translate the following for me...
1. Gender
2. Please Select your Gender
3. Male , Female
4. gender (No capitals)
5. This is Gender
I do not speak or understand Russian. I do not normally do translations - But on this occasion I will have a TRY! I will do my best - with no guarantee that it will work.
serega_m
01-16-2010, 10:56 AM
No,
You don't need to do translation really :) Just in my old code system were getting the right picture for the choice people made in their profile. See, if a person choose "Он" (Male) then there was the code for this choice: <if condition="$post[field6] == 'Он'"><img src="images/misc/male.gif" align="absmiddle" alt="Он">
It was using if-else operators, and in your code it is just one operator<vb:if> - the way it works now is that you have two options - Male or Female and two corresponding files with names Male.gif and Female.gif - but this won't work for me cause if I'll rename my files to Russian - Unix won't be able to recognize them :) That's the problem :) So I need the workaround, essentially - a new version of the old code which will work in vB 4.0.1 :)
Welshy2008
01-16-2010, 11:28 AM
I see. I am sure someone will be along that can help you. :)
Welshy2008
01-16-2010, 11:30 AM
Just one more thing - Can you click installed please? :)
serega_m
01-16-2010, 11:37 AM
Did click, but anybody? :)
sdavis2702
01-18-2010, 08:00 PM
Awesome awesome awesome... thank you.
RedHacker
01-20-2010, 10:15 AM
Why have three options...?
Male
Female
Blank <------ ?????
Welshy2008
01-20-2010, 02:28 PM
Why have three options...?
Male
Female
Blank <------ ?????
With the blank option, the mod doesn't show if the user doesn't select an option.
RedHacker
01-20-2010, 03:31 PM
With the blank option, the mod doesn't show if the user doesn't select an option.
Can i show together male and female icon if the user select blank option...?
VonDoom
01-20-2010, 05:29 PM
I like this hack but wont be able to keep it on my forum unless we can solve the two column problem. Any help would be greatly appreciated. Thanks
badawidollah
01-22-2010, 07:50 AM
edited
working now
Welshy2008
01-22-2010, 12:40 PM
I like this hack but wont be able to keep it on my forum unless we can solve the two column problem. Any help would be greatly appreciated. Thanks
Can you post the code on here please? Please also include some code before and after it.
Could you also confirm which version you are using?
Many Thanks,
Welshy.
adembaba
01-26-2010, 05:57 PM
Installed and it works, just one thing. Under the username it says "gender". I want to change this into dutch, but it doesn't seem to work. I translated all "gender" prases that i could find in "phrase manager" but it still remains "gender" What should i do?
Gender = "geslacht" in dutch.
Welshy2008
01-26-2010, 07:07 PM
Installed and it works, just one thing. Under the username it says "gender". I want to change this into dutch, but it doesn't seem to work. I translated all "gender" prases that i could find in "phrase manager" but it still remains "gender" What should i do?
Gender = "geslacht" in dutch.
Here you go:
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Geslacht:</dt> <dd><img src="http://WWW.YOUR FORUMADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
Replace the TWO Green ‘X’s with the field number in Step One (1).
Replace the Red Text with YOUR forum address.
adembaba
01-26-2010, 09:09 PM
Thank you, but it's a bilingual forum. So i need it in different languages. Am using Dutch and Turkish, sorry i wasn't too clear about this.. That's why i wanted to use phrase manager per se...
In step 2 i had to add a phrase, so i thought i could change it via the phrase manager..
Dutch: Geslacht
Turkish: Cinsiyet
marked as installed though
Welshy2008
01-27-2010, 07:20 AM
What about getting rid of the "Gender:" and Just having a flag show on your Postbit or Postbit_Legacy?
Xtrigit
02-02-2010, 09:36 PM
I installed this earlier on my vb4 forum but now I would like to install it on my vbulletin 3.8.4 forum, how can I make this work?
Can you or anyone change the following code to work with 3.8.4 and tell me where to paste?
thanks
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
Welshy2008
02-07-2010, 06:02 PM
I installed this earlier on my vb4 forum but now I would like to install it on my vbulletin 3.8.4 forum, how can I make this work?
Can you or anyone change the following code to work with 3.8.4 and tell me where to paste?
thanks
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
Please click "Installed" if you would like support.
princeedward
03-03-2010, 06:38 PM
My Way... adding or to show what's the meaning of the icon image....coz to tell the truth i don't know them...do you? :p
intersted follow or add the red one....
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" title=" I Am {vb:raw post.field8}" border="0" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
https://vborg.vbsupport.ru/external/2010/03/74.png
best regards to all...
:p
AliceHoward
04-13-2010, 08:30 AM
Perfect, thank you very much honey. ;)
Welshy2008
04-13-2010, 11:56 AM
Perfect, thank you very much honey. ;)
You're Welcome, Alice.
Sabi009
04-29-2010, 01:54 PM
Hi
Will this work on Vb4.0.3? I followed all the instructions and it just shows " Gender :: " for Male and Female. I need help please. Btw I am using Vblue Pro Fluid style.
Thanks
Welshy2008
04-29-2010, 02:10 PM
Hi
Will this work on Vb4.0.3? I followed all the instructions and it just shows " Gender :: " for Male and Female. I need help please. Btw I am using Vblue Pro Fluid style.
Thanks
I can confirm that it works in 4.0.3 - I upgraded from 4.0.2 PL1 to 4.0.3 PL1 Last night, and it is working.
Can you PM me your forum address?
Sabi009
04-30-2010, 08:29 PM
Installed
Welshy2008
04-30-2010, 11:10 PM
Thank You Sabi.
Would you be kind enough as to click "Installed", please?
Thank You. :D
Sabi009
05-01-2010, 09:13 AM
Done!:)
JAFRI
05-01-2010, 01:28 PM
Thanks, Good Work..
Welshy2008
05-01-2010, 02:34 PM
Hello JAFRI,
You have mail.
JAFRI
05-12-2010, 07:16 AM
Sorry i have no mail ??
Welshy2008
05-12-2010, 09:40 AM
PM re-sent.
JAFRI
06-12-2010, 03:36 AM
Thanks , work now ,, but i want not show image this http://www.shiaforums.com/vb/images/misc/Male.gif just show Word
Male
Female
any one help me
goxy63
06-12-2010, 01:29 PM
Gender in profile filed, and member list?
merk_aus
06-13-2010, 03:17 AM
Thanks for this installed with ease - just hunting around for better gender images but it is greatly appreciated - thank you.
CybaGirl
06-23-2010, 06:49 AM
First of all would like to say thank you very much for this mod.
But I was wondering is there a mod similar to this that will allow people to enter in the type of motorbike they ride and have it displayed in the same way as their gender is displayed using this mod?
Sorry if this is a dumb question as I am new to vBulletin and still learning how to do things and I am unsure as to what to look for when looking for something like this.
Thank you.
Welshy2008
06-23-2010, 09:10 AM
You have a PM
Gero50
06-28-2010, 08:38 AM
Very nice I tagged, will install this soon.
Options: Male , Female
^ I don't have this option in 4.0.3
Is it ok?
Gender ::
^ This has happened to me as well.
Welshy2008
07-05-2010, 06:26 AM
Can you PM or post here, your forum URL?
When you added the new user profile field, did you add the option of Male & Female?
With regards to the ":" just remove it from the code (In bold-RED), below:
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
BrightStar
07-06-2010, 01:12 PM
I love this mod but haven't installed this yet purely because images are just way too small. Couldn't we make image slightly bigger and move them under if space is restricted?
Welshy2008
07-06-2010, 01:21 PM
You are free to edit the mod as you wish Mike.
Regards,
Welshy2008.
Can you PM or post here, your forum URL?
When you added the new user profile field, did you add the option of Male & Female?
With regards to the ":" just remove it from the code (In bold-RED), below:
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
I don't have the option Male and Female here.
my website is.. www.soulsnpirates.com
https://vborg.vbsupport.ru/external/2010/07/61.jpg
BrightStar
07-07-2010, 05:44 PM
Thanks welshy2008.
My gender image is slightly bigger hence top of text Gender is inline with top of image. How can I line bottom of text gender inline with bottom of gender image?
Footman
07-07-2010, 07:00 PM
Nice little bit of code. Thanks. I'll be adding a couples choice to mine. Wondering if there's a way to add preset radio buttons instead of having the member write in their gender.
Welshy2008
07-07-2010, 07:42 PM
I don't have the option Male and Female here.
my website is.. www.soulsnpirates.com
https://vborg.vbsupport.ru/external/2010/07/61.jpg
That is because you didn't select the "Single-Selection Menu".
Select the above mentioned, and you will see the box which you need to put the options into.
It is an easy enough mistake to make, and you aren't the only one. :)
Let me know how you get on.
Welshy2008
07-07-2010, 07:44 PM
Nice little bit of code. Thanks. I'll be adding a couples choice to mine. Wondering if there's a way to add preset radio buttons instead of having the member write in their gender.
The member don't "Type in their Gender". They select it from a "Drop Down" menu, from the options that you have entered.
Welshy2008
07-07-2010, 08:01 PM
Nice little bit of code. Thanks. I'll be adding a couples choice to mine. Wondering if there's a way to add preset radio buttons instead of having the member write in their gender.
The member don't "Type in their Gender". They select it from a "Drop Down" menu, from the options that you have entered.
I have also added a further TWO (2) Screenshots of my registration page and what your user will see. (Members will also see this in the Edit Profile too, if you have selected that option).
That is because you didn't select the "Single-Selection Menu".
Select the above mentioned, and you will see the box which you need to put the options into.
It is an easy enough mistake to make, and you aren't the only one. :)
Let me know how you get on.
Thanks, yeah I chose Single-Selection menu now and followed the further instructions.
But I can't see the gender thingy in my postbit even I pasted the code you gave below the "joindate code".
It only appears in my profile.
Footman
07-07-2010, 10:56 PM
The member don't "Type in their Gender". They select it from a "Drop Down" menu, from the options that you have entered.
I do not have the "Options" section available to me for some reason.
Footman
07-08-2010, 12:41 AM
I figured out my problem.... I chose "Profile Field Type: Single Line Text Box" so of course I don't get the 'options' dialog box. But Ultimately I chose "Single-Selection Radio Buttons" (which answered my other question above) and I'm good to go.
Thanks for your work.
Thanks for everything Welshy2008. It works totally fine now.
Installed
luigi7
07-30-2010, 04:21 AM
Unfortunately I've made all changes but doesn't appear on my postbit or postbit_legacy.
vB 4.0.5 here
Edit: Works now, I don't know what happened :S
General of the
07-30-2010, 07:16 AM
working great with vb 4.0.5, I just had to modify some stuff to make it look good on my forum
Juggernaut
08-08-2010, 10:57 PM
Installed and working great. :D
Even making changes in the layout is not aligned with the image beside the name of "sex" any solution?
Below is my postbit_legacy:
{vb:raw template_hook.postbit_start}
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->
<div class="posthead">
<label for="post_imod_checkbox_{vb:raw post.postid}">
<span class="postdate {vb:raw post.statusicon}">
<vb:if condition="$show['announcement']">
<span class="date">{vb:rawphrase x_until_y, {vb:raw post.startdate}, {vb:raw post.enddate}}</span>
<vb:else />
<span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
</label>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="postcounter">#{vb:raw post.postcount}</a>
</vb:if>
<vb:if condition="$show['inlinemod']">
<input class="postimod" type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="plist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" />
</vb:if>
</span>
</div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
<div class="eti_postbit_merkezli">
{vb:raw memberaction_dropdown}
<vb:else />
{vb:raw post.musername}
</vb:if>
</div></div>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['avatar']">
<div class="eti_postbit"=a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<center>
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</center>
</a>
</div></vb:if>
<vb:if condition="$post['rank']">
<div class="eti_postbit_merkezli">{vb:raw post.rank}
</div> </vb:if>
<div class="eti_postbit">
Status : {vb:raw post.onlinestatus}
</div>
<vb:if condition="$post['userid']">
<vb:if condition="$post['joindate']">
<div class="eti_postbit">
{vb:rawphrase join_date} : {vb:raw post.joindate}</div></vb:if>
<div class="eti_postbit">
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['field6']"><dt>Sexo:</dt><dd><img src="http://www.imperyusgames.com.br/forum/images/misc/{vb:raw post.field6}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
</div>
<vb:if condition="$post['field2']">
<div class="eti_postbit">
{vb:rawphrase location_perm} : {vb:raw post.field2}</div></vb:if>
<vb:if condition="$post['age']"><div class="eti_postbit">
{vb:rawphrase age}: {vb:raw post.age}</div></vb:if>
<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
</div>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
<vb:if condition="$show['infraction'] OR $show['reppower']">
<div class="eti_postbit">
<vb:if condition="$show['infraction']">
{vb:rawphrase infractions} :
{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})<br />
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
{vb:rawphrase reppower}
: {vb:raw post.reppower}
</vb:if>
</vb:if>
</dl></div>
</vb:if>
<vb:if condition="$show['reputation']">
<div class="eti_postbit">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span></div>
</vb:if>
{vb:raw template_hook.postbit_userinfo_right}
<div center class="eti_postbit">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
</div>
<div class="postbody">
<div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>
<vb:if condition="$show['attachments']">
<div class="attachments">
<vb:if condition="$show['thumbnailattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_thumbnails}</legend>
{vb:raw post.thumbnailattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
{vb:raw post.imageattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachmentlink']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
<ul>
{vb:raw post.imageattachmentlinks}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['otherattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_files}</legend>
<ul>
{vb:raw post.otherattachments}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['moderatedattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attachments_pending_approval}</legend>
<ul>
{vb:raw post.moderatedattachments}
</ul>
</fieldset>
</vb:if>
</div>
<!-- / attachments -->
</vb:if>
</div>
</div>
<vb:if condition="$show['postedited'] || $post['signature']">
<div class="after_content">
<vb:if condition="$show['postedited']">
<!-- edit note -->
<blockquote class="postcontent lastedited">
<!-- <img src="{vb:stylevar imgdir_button}/edit_40b.png" class="inlineimg" alt="" /> -->
<vb:if condition="$show['postedithistory']">
{vb:rawphrase last_edited_link_by_x_on_y_at_z_postid, {vb:raw post.edit_username}, {vb:raw post.edit_date},
{vb:raw post.edit_time}, {vb:raw post.historyurl}}
<vb:else />
{vb:rawphrase last_edited_by_x_on_y_at_z, {vb:raw post.edit_username}, {vb:raw post.edit_date}, {vb:raw post.edit_time}}
</vb:if>
<vb:if condition="$post['edit_reason']">
<span class="reason">{vb:rawphrase reason}:</span> {vb:raw post.edit_reason}
</vb:if>
</blockquote>
<!-- / edit note -->
</vb:if>
{vb:raw template_hook.postbit_signature_start}
{vb:raw ad_location.ad_showthread_firstpost_sig}
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>
{vb:raw template_hook.postbit_signature_end}
</div>
</vb:if>
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<!-- <div class="postfoot_container"> -->
<div class="textcontrols">
<span class="postcontrols">
<img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" />
<vb:if condition="$post['editlink']">
<a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> {vb:rawphrase reply_with_quote}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$show['multiquote_post']">
<a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" /> </a>
</vb:if>
</span>
<span class="postlinking">
<vb:if condition="!$post['forwardlink'] && THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'">
<vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
<a href="{vb:raw $promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
<span class="seperator"> </span>
</vb:if>
</vb:if>
{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<vb:if condition="$show['reputationlink']">
<span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /> --> </a></span>
</vb:if>
<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}"><!-- <img src="{vb:stylevar imgdir_button}/add-infraction_sm.png" alt="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}" /> --> </a>
</vb:if>
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
<vb:if condition="$show['moderated']">
<img class="moderated" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase moderated_post}" />
</vb:if>
<vb:if condition="$show['spam']">
<img class="spam" src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" />
</vb:if>
<vb:if condition="$show['deletedpost']">
<vb:if condition="$show['managepost']">
<a class="deleted" href="postings.php?{vb:raw session.sessionurl}do=managepost&p={vb:raw post.postid}" title="{vb:rawphrase manage}"><!-- <img src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase manage}" /> --> </a>
<vb:else />
<img class="deleted_nolink" class="inlineimage" src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase deleted_post}" />
</vb:if>
</vb:if>
<vb:if condition="$show['redcard']">
<a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><!-- <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /> --> </a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><!--<img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /> --> </a>
</vb:if>
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/reply_40b.png" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}
<vb:if condition="$post['isfirstshown']">
<li class="firstpost_advert_container"><div class="firstpost_advert">
<div style="text-align:center;">
<a href="http://www.imperyusgames.com.br/forum/forumdisplay.php?634" target="_blank"><img src="http://www.imperyusgames.com.br/forum/anunciantes/BrCF-Banner.jpg" /></a>
</div>
</div>
</li>
</vb:if>
massizero
09-04-2010, 10:34 AM
vb 4.0.2
https://vborg.vbsupport.ru/ (http://www.shiaforums.com/imagehost/view.php?filename=57dddd.jpg)
help me ?
that's the same that's happening to me. how did you solve the problem?
thanks
ranafarooq
09-14-2010, 05:05 PM
vb 4.0.3
http://www.shiaforums.com/imagehost/images/57dddd.jpg (http://www.shiaforums.com/imagehost/view.php?filename=57dddd.jpg)
help me ?
having same problem please guide!
Welshy2008
09-27-2010, 10:08 AM
that's the same that's happening to me. how did you solve the problem?
thanks
having same problem please guide!
Try replacing the code with the following, not forgetting to add the correct path and fieldid for your forum...
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender</dt> <dd><img src="http://www.YOURFORUMADDRESS.com/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End --><br />
ranafarooq
10-06-2010, 09:57 AM
I have replace the code
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['field5']"> <dt>Gender</dt> <dd><img src="http://www.hibuddiez.com/forums/images/misc/{vb:raw post.field5}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End --><br />
and I can acess the bits at
http://www.hibuddiez.com/forums/images/misc/male.gif
and
http://www.hibuddiez.com/forums/images/misc/female.gif
but the problem is still there i can see only
Gender:
and no picture at all :-(
Eduardo Leon
10-09-2010, 04:40 PM
dont work for me :S
i have vb 4.0.7 and dont appear in my postbit
Welshy2008
10-09-2010, 07:58 PM
dont work for me :S
i have vb 4.0.7 and dont appear in my postbit
You are using postbit_legacy Not postbit.
nkumaran
10-13-2010, 02:05 PM
You are using postbit_legacy Not postbit.
Not working.
phoelapyae
12-02-2010, 01:40 PM
I tried many times, but not show in post.
Only Show in profile.
http://img263.imageshack.us/img263/1594/28040115.png
It's version 4.0.8.
rughis
12-02-2010, 02:24 PM
I'am not able to find the text that I should change in postbit template :(
But how can I understand which template (postbit or postbit_legacy) I'm using?
EDIT:
I've found the answer:
"If you would like to run your board using the old-style postbit template, you can do so by going to vBulletin Options > Style & Language Settings and switching the Use Legacy (Vertical) Postbit Template? setting to Yes."
But I'm still not able to found the text in postbit legacy template :(
EDIT 2:
According to me, there is an error in pdf file, because the text that I had to change was different (for a : sign). Should be very useful to correct the pdf file attached!
However now the mod is working fine!
Thank you so much!!!
beiamerica
12-07-2010, 11:03 PM
Here is an updated version that works in 4.1.0
<vb:if condition="$post['field5']"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></vb:if>
Wonderful :) Installed it on my forum love it
JAFRI
12-18-2010, 05:47 AM
@ Welshy2008 (https://vborg.vbsupport.ru/member.php?u=265951)
good mod & i use this, but i want show only text : Male & Female , not show image any solution ????
Mustiii
12-18-2010, 08:29 AM
How can i translate the word gender in different languages?
I tried this and nothing changed. Do i need to change something in the template?
https://vborg.vbsupport.ru/external/2010/12/36.png
JAFRI
12-22-2010, 02:32 PM
Thanks...
BlueCheri
02-28-2011, 06:19 AM
That's working fine, but the location alignment is gone, attaching pic for this.
How to fix this?
thanx in advacne
Here is an updated version that works in 4.1.0
<vb:if condition="$post['field5']"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></vb:if>
Wordplay
03-12-2011, 04:01 PM
is it possible to have a default avatar set depending on the genderfield?
rafiul
03-13-2011, 12:01 PM
NOt working in version 4.1.1 . How to get this work on newer version ?
WorldCraft
03-29-2011, 09:10 PM
Edit the 'postbit_legacy' template, not the 'postbit' template. Works a treat, cheers mate.
justasiam
04-23-2011, 11:31 PM
I have some forums that are meant to be used by the women on my site only and others that are just for the men.
Can this mod be expanded to assign them to the "Male" or "Female" usergroups depending on their choice? If that is the case, can we enforce the selection of one or the other instead of allowing for the "Blank" selection?
SᴩiDᴇЯ
07-24-2011, 04:20 PM
I have installed it in vb 4.1.4 and it works perfectly to see it look here http://wfreedom.com/showthread.php?1-Owner-of-WFreedom great mod thank you.
fukdawrld
07-24-2011, 07:27 PM
4.1.4 pl2 works..thanks
Macgiber
07-25-2011, 02:05 PM
Installed
LisaArnold
07-26-2011, 10:30 AM
I'm using 4.1.4 pl2 and couldn't get the images to show or anything to show in posts. I'll try again another time.
Good mod anyway, thanks.
spamgirl
08-15-2011, 03:06 PM
It's not showing up on my registration form - does anyone know how I would add it?
Solved my own problem:
Styles & Templates > Style Manager > Edit Templates > Registration Templates > register
Add:
<div class="blockrow">
<ul class="group">
<li>
<label for="gender">{vb:rawphrase gender}:</label>
<select class="primary" name="userfield[field5]" id="cfield_5" tabindex="1">
<option value="0" selected="selected"></option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
<input type="hidden" name="userfield[field5_set]" value="1" />
</li>
</ul>
</div>
Lemrith
08-20-2011, 11:58 PM
is it possible to have a default avatar set depending on the genderfield?
sure thats possible.
just search for the point where the vb: if is getting teh info if you have a avatar pic or not.
@Mustii:
Sprachen und Phrasen -> Phrasen durch suchen -> gender
(auf die klein schreibung achten)
Dort dann die ?bersetzungen eintragen, da die Variable die du ?bersetzt hast, der feldname im Einstellungskontext ist.
greenspan
09-10-2011, 12:49 AM
Works on 4.1.5 using beiamerica's code. Thanks ^_^
Cystomatic
11-24-2011, 02:09 PM
Hello may you could update this to 4.1.8 or something, as it's not working on my forum at the moment.
I'm just getting this at the moment :\
http://screensnapr.com/v/MFj0Rh.png
Welshy2008
11-24-2011, 02:16 PM
What is your forum URL?
Place on here or PM me if you prefer.
Cystomatic
11-24-2011, 02:44 PM
I have PM'ed you right now, thank you.
Cystomatic
11-24-2011, 07:19 PM
AWESOME mod, works perfectly on my forum now :D
Welshy is awesome.
katim110
12-14-2011, 08:20 PM
doesnt work for vb 4.1.8 ? please updated :(
Welshy2008
12-14-2011, 09:18 PM
doesnt work for vb 4.1.8 ? please updated :(
It does work in 4.1.8 as I am using it in there now.
Check my sig to see it for yourself.
Chromium
01-07-2012, 11:34 AM
Just a little tip:
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"><dd>Gender:<img src="http:// FORUMNAME .com/images/misc/{vb:raw post.fieldX}.gif" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
BlueCheri
01-11-2012, 11:38 AM
Installed, thanx.
Only one problem below gender image, the 'Location' and 'Thanked' texts setting gone.
Kindly guide me.
Thanx in advance.
Image attaching.
Welshy2008
01-11-2012, 11:51 AM
If you'd like to set up an temp Admin account for me, I will have a look for you.
PM me the details.
With regard to the Thanked one - it used to be like that on my old forum, before I even added the Gender mod. It is also like it on other forums that don't have my mod. But I will look at that too, if you wish me to.
BlueCheri
01-11-2012, 01:59 PM
Thanx friend for help and support.
Highly appreciated.
Rgds
If you'd like to set up an temp Admin account for me, I will have a look for you.
PM me the details.
With regard to the Thanked one - it used to be like that on my old forum, before I even added the Gender mod. It is also like it on other forums that don't have my mod. But I will look at that too, if you wish me to.
HHelp1
02-25-2012, 10:10 PM
Its not working for 4.1.8 :( i followed exactly what it show
BlueCheri
02-26-2012, 02:51 AM
Friend, there is a problem.
It's not working as postbit legacy is redesigned.
Please check offwalk, and suggest the solution.
Can some one please help me in placing the gender image, it is going below the line.
Attaching picture for it.
Thanx and rgds,
G!
HHelp1
02-29-2012, 09:48 PM
Friend, there is a problem.
It's not working as postbit legacy is redesigned.
Please check offwalk, and suggest the solution.
Can some one please help me in placing the gender image, it is going below the line.
Attaching picture for it.
Thanx and rgds,
G!
I have installed this mod on that postbit you have too ( the one you having right now ) but it not working.
CharlieDelta
03-25-2012, 11:13 PM
Thanks for this.
I made some images for my dark styles.
I am using this with my Postbit tabs mod rather than editing the postbit legacy template.
booble
04-20-2012, 10:47 AM
Work in 4.1.12???
booble
04-20-2012, 05:33 PM
It show
"Gender: Male"
... but icon is missing
HHelp1
04-27-2012, 01:32 PM
It show
"Gender: Male"
... but icon is missing
Same here... I think it no longer work :/
alghzil
05-15-2012, 11:08 AM
taged for later thanks
Paolitus
05-25-2012, 07:31 AM
It show
"Gender: Male"
... but icon is missing
Same here... I think it no longer work :/
icon is missing on vb 4.2.0
help...!!!!
staciesim
05-28-2012, 06:59 AM
having problems when members are trying to registher with mobiles, gender not showing in mobile styles...it gives them the option to pick gender but when thay click on it all feilds are blank, so thay cant pick gender and cant move on to register any help would most gratefull
Paolitus
05-30-2012, 06:07 AM
icon is missing on vb 4.2.0
help...!!!!
Solved
It's work on vb 4.2.0
thanks
RecklessTim
06-03-2012, 02:22 PM
Solved
It's work on vb 4.2.0
thanks
What was the solution? I want to install this on my 4.2.0
insidegames
06-24-2012, 10:47 AM
is it possible to get the gender-icon after the username?
thenamesgould
06-25-2012, 07:08 AM
is it possible to get the gender-icon after the username?
Absolutely, that's how I have it at my forum - marathonstadium.com
datoneer
06-27-2012, 11:38 AM
Works perfect vb 4.1.10 thanks man
insidegames
07-04-2012, 08:21 AM
Absolutely, that's how I have it at my forum - marathonstadium.com
can you tell mer your code please? :-) Looks very coool
tareqbd
07-05-2012, 04:52 PM
any rule in registration form can be added? e.g. if gender male .. do=addmember to male usergroup or if gender female... do=addmember to female usergroup?
thenamesgould
07-07-2012, 05:00 AM
can you tell mer your code please? :-) Looks very coool
Sorry for the slow reply. I put mine in the postbit_legacy template ... and it goes right after this bit:
{vb:raw memberaction_dropdown}
and before:
{vb:raw post.onlinestatus}
It should look like this once done:
{vb:raw memberaction_dropdown}
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['field5']"><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></vb:if>
<!-- Wy Gender in postbit End -->
{vb:raw post.onlinestatus}
Of course, you might not be using field 5, so you might have to change that bit. Let me know if you have any problems. :)
imported_dfmafia
07-24-2012, 06:39 PM
had an issue, i required it for registration. it wasn't showing up.
I added the following to my registration template:
FIND:
<div class="blockrow">
<ul class="group">
<li>
<label for="email">{vb:rawphrase email_address}:</label>
<input type="text" class="textbox" name="email" id="email" maxlength="50" value="{vb:raw email}" dir="ltr" tabindex="1" />
</li>
<li>
<label for="emailconfirm">{vb:rawphrase confirm_email_address}:</label>
<input type="text" class="textbox" name="emailconfirm" id="emailconfirm" maxlength="50" value="{vb:raw emailconfirm}" dir="ltr" tabindex="1" />
</li>
</ul>
<p class="description">{vb:rawphrase enter_valid_email_address}</p>
</div>
ADD BELOW:
<div class="blockrow">
<ul class="group">
<li>
<label for="gender">{vb:rawphrase gender}:</label>
<select class="primary" name="userfield[fieldXX]" id="cfield_XX" tabindex="1">
<option value="0" selected="selected"></option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
<input type="hidden" name="userfield[fieldXX_set]" value="1" />
</li>
</ul>
</div>
change XX for whatever your profile field for gender is.
and seems to be working...
vB 4.2.0 PL 2
Ary Braga
12-17-2012, 08:24 PM
is it possible to get the gender-icon after the username?
working Perfectly on VB 4.2.0pl3
yes.
Firstly understand. The image name is case sensitive. Find first you Fieldx. No number, but the two names.
e.g: Male and Female =>Female is different of female
just rename the img as you filled in FieldX
Put the two img in /yourforum/images/misc
if you use VB4.2x
Find in postbit_legacy or postbit, this line: ( in my case I used postbit_legacy).
To put After USERNAME, use my attachments.
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
Change to:
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
<vb:if condition="$post['fieldX']"> <img src="{vb:stylevar imgdir_misc}/{vb:raw post.fieldX}.png" alt="{vb:raw post.fieldX}" />
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if></vb:if>
I alter to PNG File. (case sensitive to) if you need change to .gif or .GIF? it's OK.
I used spacing ( ) to separate the image of Username.
Maybe you need to take out or put more ( ).
Depending on the template of your postbit.
Be happy
https://vborg.vbsupport.ru/external/2012/12/17.jpg
----------------
https://vborg.vbsupport.ru/external/2012/12/13.png 18x18-PNG
https://vborg.vbsupport.ru/external/2012/12/14.png 18x18-PNG
----------------
https://vborg.vbsupport.ru/external/2012/12/2.gif 12x12-GIF
https://vborg.vbsupport.ru/external/2012/12/3.gif 12x12-GIF
unfor
07-29-2013, 10:36 AM
hey!
do you have any solution for the missing icons in 4.2.1?
thanks in advance :).
Macgiber
08-01-2013, 02:46 AM
Installed
4.2.1
Macgiber
08-01-2013, 02:53 AM
hey!
do you have any solution for the missing icons in 4.2.1?
thanks in advance :).
Friend, you have to verify either the image path, I install in current version and struggle to 100%
TravisWPaquin
08-09-2013, 10:23 PM
It does not list the gender on my postbit. I edited the template, added the images and profile field, but nothing. Any ideas on how to get it to show? The code I was to add below the other one did not have the break tag which gives me the impression I may of had the wrong code, but for the most part, I'm sure they did match. Any help would be appreciated. Thanks!
Amaury
08-09-2013, 10:39 PM
Can we have the texts Male or Female instead of the gender symbols?
TravisWPaquin
08-10-2013, 05:34 AM
Can we have the texts Male or Female instead of the gender symbols?
Preferably, why not both. That would be nice to have.
CoZmicShReddeR
08-17-2013, 08:07 PM
Can we have the texts Male or Female instead of the gender symbols?
This doesn't really require rocket science to modify this... Just sayin... ;)
smirkley
08-18-2013, 03:44 AM
Can we have the texts Male or Female instead of the gender symbols?
I just use the plain text option in the ACP myself.
Bubble #5
08-26-2013, 04:02 AM
Classic mod. Well done and well written :up:
4.2.1
How do we get the image to appear NEXT to the word 'gender' instead of below it?
friendlymela
09-10-2013, 06:16 AM
How do i add gender in posbit without image?
CoZmicShReddeR
09-19-2013, 12:07 AM
How do i add gender in posbit without image?
Original Code
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
I think just like this??
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender: {vb:raw post.fieldX}</dt></vb:if>
<!-- Wy Gender in postbit End -->
CoZmicShReddeR
09-19-2013, 12:12 AM
Classic mod. Well done and well written :up:
4.2.1
How do we get the image to appear NEXT to the word 'gender' instead of below it?
Original Code
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dd></vb:if>
<!-- Wy Gender in postbit End -->
Maybe try??
<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"> <dt>Gender:<img src="http://WWW.YOUR FORUM
ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" alt="" /></dt></vb:if>
<!-- Wy Gender in postbit End -->
VB 4.2.2
I was wondering if anybody knows how to unite online/offline status with gender icon.
Explanation.
Right now we have three images indicating online/offline status https://vborg.vbsupport.ru/images/cstyle/blue/statusicon/user_offline.gif https://vborg.vbsupport.ru/images/cstyle/blue/statusicon/user_online.gif and a hidden one.
And let us say we have a female online icon for gender https://vborg.vbsupport.ru/external/2014/01/47.png. So when she is offline it changes to something like this https://vborg.vbsupport.ru/external/2014/01/48.png.
When a user is hidden it displays a third icon. I.e. https://vborg.vbsupport.ru/external/2014/01/49.png
Basically that is the question. How to make gender mod work like online/offline/hidden?
is this mod can be use in vbull 5.05?
ozzy47
01-11-2014, 07:21 PM
No, you can not use vB4 mods in vB5 as I stated earlier.
i c,...
may be, you can tell me how to do mod like this in vb 5.05, ozzy?
thank you in advance
ozzy47
01-11-2014, 07:38 PM
I have not dove into vB5 yet, I don't like it as it is now, not enough hooks like vB4 had.
yes, not enough hooks like vb4 had.
SᴩiDᴇЯ
03-16-2015, 09:44 AM
Thank you it works perfectly with my vB4.2.2 you can see it here (http://digiwebs.com)
akz645
08-10-2015, 11:19 PM
These were my settings:
http://i.imgur.com/jI48mDH.png
I tried on vBulletin 4.2.3 and it almost worked- the gender options doesn't show when users are editing their profile.
Like me, if you put: No, but display at registration in the User Profile Field (http://i.imgur.com/7VwloUz.png), then you'll need to do what I write below:
So in order to fix that:
AdminCP -> Styles & Templates -> Search Templates -> tb_homepage [Pick your style too] (http://i.imgur.com/uMgLw4i.png) -> modifyprofile (edit) (http://i.imgur.com/oR1mZUQ.png)
Find:
<input type="hidden" name="coppauser" value="1" />
<p class="description">
{vb:rawphrase if_under_13_provide_parent}
</p>
</div>
ADD BELOW:
<div class="blockrow">
<ul class="group">
<li>
<label for="gender">{vb:rawphrase gender}:</label>
<select class="primary" name="userfield[fieldXX]" id="cfield_XX" tabindex="1">
<option value="0" selected="selected"></option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
<input type="hidden" name="userfield[fieldXX_set]" value="1" />
</li>
</ul>
</div>
change XX for whatever your profile field for gender is.
That seems to do the trick.
If you have problems with it appearing on the registration, then do what the guy above me said to do in the registration template (https://vborg.vbsupport.ru/showthread.php?p=2351115#post2351115).
It will be located here:
http://i.imgur.com/7RpGMzK.png
The blank option is useful, so users can hide gender from appearing in the postbit altogether.
Edit:
I'd suggest ignoring this post. Do what I did in the post below (much better/easier).
akz645
08-29-2015, 11:35 AM
I noticed many of my users never bothered to check their userCP and therefore the default option was blank (if you follow this Mods settings). Hence the gender never appeared in their postbit, as most users didn't fill it out during registration.
So I decided to figure out a way for users to have 'Male' as the default, if they couldn't be bothered to change when registering. This way, if they're female or don't want to display their Gender, they'll be forced to change from their userCP, if they didn't already during registration.
Tested & Working on vBulletin 4.2.3
How did I do this?
Step 1:
Download the attachment & extract the attachment file and upload the 'images' folder into the root of your public_html folder. (https://vborg.vbsupport.ru/attachment.php?attachmentid=153269&d=1441250074)
Step 2:
Admin CP -> User Profile Fields -> Add New User Profile Field -> Profile Field Type: Single-Selection Menu
This is what I kept as my User Profile Field: Yes, at registration and profile updating & Yes, but No First Blank Option (https://vborg.vbsupport.ru/attachment.php?attachmentid=153270&d=1441250074)
Notice that I have set a 'Hide' option too (you can name it to whatever you want). That option will not display Gender in the postbit.
Also you won't see the Field ID Number until you press save and then go back to the User Profile Manger. (https://vborg.vbsupport.ru/attachment.php?attachmentid=153271&d=1441250074)
Step 3:
AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase:
Phrase Type: GLOBAL
Product: vBulletin
Varname: gender
Text: Gender (https://vborg.vbsupport.ru/attachment.php?attachmentid=153272&d=1441250074)
Step 4:
AdminCP -> Styles & Templates -> Search Templates -> postbit_legacy [Pick your style too] (https://vborg.vbsupport.ru/attachment.php?attachmentid=153273&d=1441250074) -> postbit_legacy (edit) (https://vborg.vbsupport.ru/attachment.php?attachmentid=153274&d=1441250113)
Note: If postbit_legacy doesn't work, search "postbit (https://vborg.vbsupport.ru/attachment.php?attachmentid=153275&d=1441250113)" which is located below Postbit Templates (https://vborg.vbsupport.ru/attachment.php?attachmentid=153276&d=1441250113).
Find: (well you can pretty much place it anywhere in your postbit that you'd like)
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt>: <dd>{vb:raw post.joindate}</dd></vb:if><br />
Add Below:
<!-- My Gender in postbit Start -->
<vb:if condition="$post['field5'] === 'Male'"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" /></dd></vb:if>
<vb:if condition="$post['field5'] === 'Female'"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" /></dd></vb:if>
<!-- My Gender in postbit End -->
Make sure to edit Male & Female to whatever you called it in your options.
Also, make sure to edit the four Field ID Numbers (as seen in the code, mine is 5).
If you want to add in more options, then you can do that too (same place you put Male & Female images). Make sure to call it the same as your Options (caps sensitive). Likewise, make sure to add in the extra condition into your postbit_legacy (or postbit) template.
That's it :)
P.S=
Your display order is not your Field ID Number. Display order is completely irrelevant. It's just to help you organise profile fields.
------------------
Edit:
Thanks to Welshy2008 (https://vborg.vbsupport.ru/member.php?u=265951) for this Mod, I figured out how to make my own Mod doing this, but for something separate.
darksidemon2
10-16-2015, 01:09 PM
I noticed many of my users never bothered to check their userCP and therefore the default option was blank (if you follow this Mods settings). Hence the gender never appeared in their postbit, as most users didn't fill it out during registration.
So I decided to figure out a way for users to have 'Male' as the default, if they couldn't be bothered to change when registering. This way, if they're female or don't want to display their Gender, they'll be forced to change from their userCP, if they didn't already during registration.
Tested & Working on vBulletin 4.2.3
How did I do this?
Step 1:
Download the attachment & extract the attachment file and upload the 'images' folder into the root of your public_html folder. (https://vborg.vbsupport.ru/attachment.php?attachmentid=153269&d=1441250074)
Step 2:
Admin CP -> User Profile Fields -> Add New User Profile Field -> Profile Field Type: Single-Selection Menu
This is what I kept as my User Profile Field: Yes, at registration and profile updating & Yes, but No First Blank Option (https://vborg.vbsupport.ru/attachment.php?attachmentid=153270&d=1441250074)
Notice that I have set a 'Hide' option too (you can name it to whatever you want). That option will not display Gender in the postbit.
Also you won't see the Field ID Number until you press save and then go back to the User Profile Manger. (https://vborg.vbsupport.ru/attachment.php?attachmentid=153271&d=1441250074)
Step 3:
AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase:
Phrase Type: GLOBAL
Product: vBulletin
Varname: gender
Text: Gender (https://vborg.vbsupport.ru/attachment.php?attachmentid=153272&d=1441250074)
Step 4:
AdminCP -> Styles & Templates -> Search Templates -> postbit_legacy [Pick your style too] (https://vborg.vbsupport.ru/attachment.php?attachmentid=153273&d=1441250074) -> postbit_legacy (edit) (https://vborg.vbsupport.ru/attachment.php?attachmentid=153274&d=1441250113)
Note: If postbit_legacy doesn't work, search "postbit (https://vborg.vbsupport.ru/attachment.php?attachmentid=153275&d=1441250113)" which is located below Postbit Templates (https://vborg.vbsupport.ru/attachment.php?attachmentid=153276&d=1441250113).
Find: (well you can pretty much place it anywhere in your postbit that you'd like)
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt>: <dd>{vb:raw post.joindate}</dd></vb:if><br />
Add Below:
<!-- My Gender in postbit Start -->
<vb:if condition="$post['field5'] === 'Male'"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" /></dd></vb:if>
<vb:if condition="$post['field5'] === 'Female'"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" /></dd></vb:if>
<!-- My Gender in postbit End -->
Make sure to edit Male & Female to whatever you called it in your options.
Also, make sure to edit the four Field ID Numbers (as seen in the code, mine is 5).
If you want to add in more options, then you can do that too (same place you put Male & Female images). Make sure to call it the same as your Options (caps sensitive). Likewise, make sure to add in the extra condition into your postbit_legacy (or postbit) template.
That's it :)
P.S=
Your display order is not your Field ID Number. Display order is completely irrelevant. It's just to help you organise profile fields.
------------------
Edit:
Thanks to Welshy2008 (https://vborg.vbsupport.ru/member.php?u=265951) for this Mod, I figured out how to make my own Mod doing this, but for something separate.
Thanks
works this way with Version 4.2.3
Gn_Snake
02-18-2016, 02:39 PM
Thanks,
works perfect to 4.2.3
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.