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 |
#152
|
|||
|
|||
yes, not enough hooks like vb4 had.
|
#154
|
|||
|
|||
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, 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] -> modifyprofile (edit) Find: PHP Code:
Quote:
If you have problems with it appearing on the registration, then do what the guy above me said to do in the registration template. 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). |
#155
|
|||
|
|||
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. 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 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. Step 3: AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase:
Step 4: AdminCP -> Styles & Templates -> Search Templates -> postbit_legacy [Pick your style too] -> postbit_legacy (edit) Note: If postbit_legacy doesn't work, search "postbit" which is located below Postbit Templates. Find: (well you can pretty much place it anywhere in your postbit that you'd like) Code:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt>: <dd>{vb:raw post.joindate}</dd></vb:if><br /> Code:
<!-- 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 --> 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 for this Mod, I figured out how to make my own Mod doing this, but for something separate. |
Благодарность от: | ||
darksidemon2 |
#156
|
|||
|
|||
Quote:
works this way with Version 4.2.3 |
#157
|
|||
|
|||
Thanks,
works perfect to 4.2.3 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|