The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD Details »» | |||||||||||||||||||||||||||||||||||||||||||
Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD
Developer Last Online: Mar 2013
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:
Add New User Profile field: Single-Selection Menu
STEP 2; Add a Phrase: AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase (Center button on the bottom):
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: Code:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt>: <dd>{vb:raw post.joindate}</dd></vb:if><br /> 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 --> vBulletin 4.1.0 (tested by beiamerica. Please note that I have not tested this myself. Code:
<!-- 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 -->
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. Download Now
Screenshots
Show Your Support
|
Comments |
#22
|
|||
|
|||
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. |
#23
|
||||
|
||||
Quote:
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. |
#24
|
|||
|
|||
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 |
#25
|
||||
|
||||
I see. I am sure someone will be along that can help you.
|
#26
|
||||
|
||||
Just one more thing - Can you click installed please?
|
#27
|
|||
|
|||
Did click, but anybody?
|
#28
|
|||
|
|||
Awesome awesome awesome... thank you.
|
#29
|
|||
|
|||
Why have three options...?
Male Female Blank <------ ????? |
#30
|
||||
|
||||
With the blank option, the mod doesn't show if the user doesn't select an option. |
#31
|
|||
|
|||
Can i show together male and female icon if the user select blank option...?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|