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 |
#132
|
|||
|
|||
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. |
Благодарность от: | ||
MeMySelfNi |
#133
|
||||
|
||||
had an issue, i required it for registration. it wasn't showing up.
I added the following to my registration template: FIND: Code:
<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: Code:
<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> and seems to be working... vB 4.2.0 PL 2 |
#134
|
|||
|
|||
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. PHP Code:
PHP Code:
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 ---------------- 18x18-PNG 18x18-PNG ---------------- 12x12-GIF 12x12-GIF |
#135
|
|||
|
|||
hey!
do you have any solution for the missing icons in 4.2.1? thanks in advance . |
#136
|
|||
|
|||
Installed
4.2.1 |
#137
|
|||
|
|||
Friend, you have to verify either the image path, I install in current version and struggle to 100%
|
#138
|
||||
|
||||
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!
|
#139
|
|||
|
|||
Can we have the texts Male or Female instead of the gender symbols?
|
#140
|
||||
|
||||
Preferably, why not both. That would be nice to have.
|
2 благодарности(ей) от: | ||
Amaury, CoZmicShReddeR |
#141
|
||||
|
||||
This doesn't really require rocket science to modify this... Just sayin...
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|