The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show Gender In Postbit Details »» | |||||||||||||||||||||||||
This is nice and easy to install and simply shows a small icon next to the online status indicator to show the gender of the user.
The ZIP contains everything you need. There are two sets of images so you can choose your favorite. I have circled the icons in the screenshot to enable you to see exactly where they are placed. PLEASE NOTE: As mentioned in the instructions, the names of the images are case sensitive and so MUST be named exactly as you have defined them in the profile field. Please click install if you have installed this. Update 1.03: Added Memberlist images. Added instructions for non-standard languages. To upgrade download the upgrade 1.03 zip and follow instructions. Update 1.02: Fixed an error in the code. Update 1.01: Added image for undisclosed and changed instructions slighty to reflect this. To update download the 1.01 upgrade zip. Update: I have added optional instructions to add Gender: before the image [Note to mods] I have released for 3.0.x and 3.5.x even though it is identical as most people only look at the mods for their version.[/Note to mods] Important information regarding support - 20/04/06 Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here. Support provided in this thread will be on an as and when basis. Show Your Support
|
Comments |
#72
|
|||
|
|||
Did I set it up right?
|
#73
|
|||
|
|||
strange. Did you get my PM?
|
#74
|
||||
|
||||
I have done that, and it works, but it has 'Gender:' before the image. How can i take that away?
|
#75
|
|||
|
|||
@ GrabAssGirl
Change 'Field Editable By User' To YES @ Murty Remove this code Code:
$vbphrase[gender] |
#76
|
|||
|
|||
I'd love to be able to use this hack, but unfortunately the vBarcade has an edit in the postbit in the same phrase that you call to replace.
EX: You say to find: <div id="postmenu_$post[postid]"><if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> $post[onlinestatus]<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if></div> and replace it with: <div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> $post[onlinestatus]<if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if> <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername]<if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if> </if> </div> BUT: the vB3 arcade edits that same section and it now looks like this: <div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if> <!-- /v3 Arcade --> $post[onlinestatus] <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if> </div> so... what do I do?? :surprised: |
#77
|
|||
|
|||
Put this
Code:
<if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if> Code:
<else /> $post[musername] </if> |
#78
|
|||
|
|||
Ok that worked... but now... I have the word Gender in front of the little image
what can I do? ALSO... do I have to edit the postbit_legacy as well, or just one of them. I did the postbit template |
#79
|
|||
|
|||
Quote:
To remove the word Gender delete this section of code Code:
$vbphrase[gender] |
#80
|
|||
|
|||
works perfect... thank you peter!
|
#81
|
|||
|
|||
Hey Peter.. Just curious, but does everyone have to have the option: Undisclosed <-- as one of the options... Cuz i would rather just use Male & Female.. Would there be any problems in the code that i would have to change to get it to work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|