PDA

View Full Version : Gender In Postbit


peterska2
08 Jun 2006, 03:24
The updated version of this release (http://www.vbulletin.org/forum/showthread.php?t=97386).

What's the difference?
Better placement of the information, it looked very odd after a few amendments in the old version.

How do I install?
Download the attached zip and follow the enclosed instructions.

Instructions for languages which do not use letters A-Z will be coming soon.

Screenshots attached, just in case you like to see before you start.

UltraVR
10 Jun 2006, 03:24
Nice work! Works like a charm!

-Installed-

N-0p3rz
17 Jun 2006, 05:04
How would I make it a Choice between Male & Female only..

because if a user enters a different value.. the image doesn't show.

peterska2
17 Jun 2006, 17:39
Make sure that you have set 'Allow users to enter own value' to NO

N-0p3rz
17 Jun 2006, 18:39
^Ah.. I realized what my problem was.. I chose the wrong type when I first added the field.

Bubble #5
22 Jun 2006, 03:30
How could we tie this in so that when someone registers and they choose male/female that, this hacks shows their information in the postbit?

peterska2
22 Jun 2006, 10:28
Just set the profile field options to show at registration or required. :)

zooki
22 Jun 2006, 16:50
A wonderful hack thanks !!

Bubble #5
22 Jun 2006, 18:07
Just set the profile field options to show at registration or required. :)
Thank you Peterska2, you are the best :bunny:

Bubble #5
24 Jun 2006, 01:44
Images are uploaded but they do not show. Instead it outputs text (Male, Female). What could be wrong? :confused:

peterska2
24 Jun 2006, 01:48
you may need to upload the images to the misc folder for other styles that have their own image sets

Bubble #5
24 Jun 2006, 01:57
At this time there are no other styles, just the default vB style.

peterska2
24 Jun 2006, 19:29
What is the link to your site? I'd like to take a look to see what I can find out.

Bubble #5
24 Jun 2006, 20:08
This must be a new vB feature, as none of our images are showing up. They are all text incuding all of the posting buttons. For example; instead of the online image it says "member is online". We just have to find where to turn this feature off :(

peterska2
24 Jun 2006, 22:47
Please provide the link to your site. I cannot support a fault if I cannot see the fault in action.

Paul M
24 Jun 2006, 23:32
This must be a new vB feature, as none of our images are showing up. They are all text incuding all of the posting buttons. For example; instead of the online image it says "member is online". We just have to find where to turn this feature off :(It's not a feature, it means the image path in your style is wrong (assuming you actually uploaded the images).

Bubble #5
24 Jun 2006, 23:43
The problem was two fold; first the path was wrong, and second the image supplied was not capitalized. All fixed now, thanks :bunny:

Red Matrix
30 Jun 2006, 00:24
The instructions do not take newbies into account. :(
I would like to know where on the ACP these things are located that I need to edit.
I got lost at step 3, "add phrase". Where? Where is the postbit/legacy option? See what I mean? I am a total newbie to vb. (I've ran IPB and phpBB)

I guess I'll have to take a 10 minutes to go through each menu, and item until I find where I need to go.

peterska2
30 Jun 2006, 00:30
To add a phrase go to Language and Phrases > Search In Phrases > Add New Phrase

To find the postbit or postbit_legacy go to Styles & Templates > Style Manager > <<>> Next To the style that you want to edit > Postbit Templates > they are there.

Red Matrix
30 Jun 2006, 00:44
That was certainly a fast responce!

I have done the postbit/template changes. I am still stumpted at the phrase.
When I follow your path, [ Lang. & Phrases >> Search in Phrases ] I don't get the [ add new phrase ] option.

EDIT: the correct path is

Languate and Phrases >> Phrase Manager > Add New Phrase.


EDIT2: I can't seem to get the fifth field to show up in the Profile edit screen. I have it set up like this:

Gender
Select your gender
Male
Female
None
5
Yes, at registration and profile updating
No
No
No

peterska2
30 Jun 2006, 00:44
Sorry, I meant phrase manager

Cedric2
07 Jul 2006, 15:02
Fantastic mod.

Installed

Neal-UK
07 Aug 2006, 02:43
When I view the members list, it shows the word Gender and the wrong image url: "misc/.gif"

Therefore just a blank red X.

I'll turn it off for member list. Other than that, nice mod.

Neal-UK
07 Aug 2006, 02:46
One thing, I can't turn it off still shows "Gender" and red X under their names.

http://www.partycrash.co.uk/forum/memberlist.php

peterska2
07 Aug 2006, 02:49
Can you post what you have put in your memberlist_resultbit template?

It is showing the correct alt text, so it should pick up the image path correctly unless the actual coding you have used is incorrect.

Neal-UK
07 Aug 2006, 02:54
working now, i'd not changed one of the "fieldx" in that template to the correct number. Just the first one.

Thanks.

WeArab
07 Aug 2006, 10:43
Hello peterska2,

Great hack!

I would like to ask you if you can add more options like Mobile type/model, and IRC Nick name?

peterska2
07 Aug 2006, 13:27
Hello peterska2,

Great hack!

I would like to ask you if you can add more options like Mobile type/model, and IRC Nick name?Use the same method, but use whatever you want instead of gender for the contents.

ximcix
09 Aug 2006, 06:04
Great Hack... now how about having it display in the user's profile.
That would make it complete!

WeArab
13 Aug 2006, 10:26
Use the same method, but use whatever you want instead of gender for the contents.
Thank you peterska2 :)

This add-on did the job for me Profile Fields in Postbits (http://www.vbulletin.org/forum/showthread.php?t=123619)

Thank you again!

y2krazy
15 Aug 2006, 04:38
Is there an actual image anyone has that can be used for Undisclosed? If I use the one with the package, it looks weird cause it only shows "Gender: " - simply put, no image and just blank space where the image should be. I guess I just need a 12x12 icon for Undisclosed, right?

peterska2
15 Aug 2006, 04:41
you could make a 12x12 image with a questionmark on it. I don't use the undisclosed option on my site so never made an image for it.

wolfyman
15 Aug 2006, 05:00
I'm having a hard time with this gender hack.

It's printing this: Gender: 1



, rather than displaying the image like it did on my other template.

any ideas?

peterska2
15 Aug 2006, 05:05
It's either a problem with the profile field where you have set it to mulitple choice instead of single selection, or you haven't uploaded the images to the images directory for your style.

wolfyman
15 Aug 2006, 05:10
It's either a problem with the profile field where you have set it to mulitple choice instead of single selection, or you haven't uploaded the images to the images directory for your style.


tried both, neither are working. Any other ideas?

peterska2
15 Aug 2006, 05:12
Can you provide a link to a thread where this is happening please

wolfyman
15 Aug 2006, 05:13
not atm because it's only in my mod forum - but PM me your info and I'll set you up with everything you need to see it.

Thanks Peter. I'm off for the night but I'll be back tomorrow :)

Snake
20 Aug 2006, 12:43
Thank you! :)

dutchbb
21 Aug 2006, 18:28
Great mod!

Now what I think would be usefull is a query to set every profile to "Male" because most of my users are male and so it doesn't take mutch time to notify the female users to change it back to Female.

Any idea what that query would be?

Thanks

peterska2
21 Aug 2006, 19:40
the easiest way is to have male as the first item in the list and set it to default first option.

dutchbb
21 Aug 2006, 23:49
Yes I have done that. But members registered before this hack still need to update their profile to make it show in the postbit, I noticed.

A query could update all the old profiles.

redlabour
22 Aug 2006, 21:37
Can we have a PlugIn please ?

peterska2
22 Aug 2006, 21:49
Can we have a PlugIn please ?

No. This is a template modification as it cannot be done via plugin.

Kaleem
25 Aug 2006, 16:05
it dos't seem to show in edit profile :(

do i need to update any counters i have 3.6.0 Gold

peterska2
25 Aug 2006, 16:45
Check Edit Options as you may have set the profile field to show there.

Kaleem
25 Aug 2006, 19:14
here u go the settings r in screenshot :)

peterska2
25 Aug 2006, 21:08
You set the field to not editable by user which is why it is not showing up. Change this to YES and it will appear for editing.

Kaleem
26 Aug 2006, 13:54
You set the field to not editable by user which is why it is not showing up. Change this to YES and it will appear for editing.

ok it shows in editprofile now it's not showing in postbit until i used this http://www.vbulletin.org/forum/showthread.php?t=123619

and it show only text Male Female not the icons for male and female can u help me with that i put this in postbit_legacy

<if condition="$post[field5]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>

as i have it as field5

peterska2
26 Aug 2006, 20:41
1. There is no need to use that modification as full instructions are provided to get it to show.

2. Right click on the missing image and it will tell you where it is looking for it. You may need to reupload the images to additional locations for your styles.

Kaleem
27 Aug 2006, 14:49
1. There is no need to use that modification as full instructions are provided to get it to show.

2. Right click on the missing image and it will tell you where it is looking for it. You may need to reupload the images to additional locations for your styles.

Click on wht ... theres no missing image it just say Male :-s

peterska2
27 Aug 2006, 16:34
Yes, thats the alt text. If you right click on it and go to properties, then it will tell you the path where it is looking for the image.

Kaleem
28 Aug 2006, 00:41
Yes, thats the alt text. If you right click on it and go to properties, then it will tell you the path where it is looking for the image.

aa i know wht u are talking abt but it dos't show anything.

just show Miscellenios Properties.

peterska2
28 Aug 2006, 00:53
According to your page source, you are not using any image code in the postbit template.

Can you post the exact code you are using in your postbit template please.

Kaleem
28 Aug 2006, 16:53
<if condition="$post[field5]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>

peterska2
28 Aug 2006, 17:02
According to your page source you have <div class="smallfont">$vbphrase[gender]: $post[field5]
</div>

There is nothing I can suggest as the code which you are saying you have used is not the code which is being processed in your postbit, and the code that is being processed is being processed correctly with no errors.

It's probably linked to that other modification that you installed. You should UNINSTALL that as I have previously advised that it is not required for this modification.

I cannot support any problems arising from any other modifications being installed that may interfere with a modification. Therefore, I am afraid that I cannot provide any further support for your issue as the instructions provided do NOT cause your error and the code is simply not being processed in your postbit due to some other modification that you have installed.

Kaleem
28 Aug 2006, 17:07
after doing that nothing shows not even Text ?

i uninstalled the other modification.

peterska2
28 Aug 2006, 17:18
ok, make sure you have done the template edit detailed in the instructions

Kaleem
28 Aug 2006, 17:27
ok, make sure you have done the template edit detailed in the instructions
i checked it again its all done with thepictures in misc images directory:surprised:

peterska2
28 Aug 2006, 17:37
and the code has been put in the postbit template?

can you give me a link to a post that has the profile field set please

Kaleem
28 Aug 2006, 17:41
http://www.friendskorner.com/forum/f52/more-cute-funny-kids-3996/

member name: Kaleem well its me

only one post is there so u can check this one :)

peterska2
28 Aug 2006, 17:51
ok, can you post your entire postbit template wrapping it in code tags please

Kaleem
28 Aug 2006, 17:54
I added it in postbit_legacy

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="$post[field5]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->

peterska2
28 Aug 2006, 18:02
ah-ha! there's the problem :)

You are using postbit, not postbit_legacy so you need to add the code to your postbit template.

Kaleem
28 Aug 2006, 18:12
ah-ha! there's the problem :)

You are using postbit, not postbit_legacy so you need to add the code to your postbit template.

aaaaaa i said i m using postbit_legacy anyways i will put the code in postbit also should i take it out of postbit_legacy bye the i tried it b4 but i will try it again also :)

Kaleem
28 Aug 2006, 18:21
it works man i dont know when i put that in postbit_;egacy and postbit both it works b4 i tried one by one .

well Thanks ti works :)

L'ingegnere
28 Sep 2006, 13:47
Where can I create e new profile field??
Create the following new profile field.
Type: Single-Selection Menu
Title: Gender
Description: Select your gender
Options: Male
Female
Set Default: None

Allow user to input own value: No

Display page: Edit Profile

peterska2
28 Sep 2006, 23:29
Admin CP > User Profile Fields > Add New Profile Field

From there follow the instructions provided.

tgralex
26 Oct 2006, 21:24
Do you know how to add along with gender number of infractions to be shown?
like:

Infractions points: XXX

I don't know what variable is responsible for infraction points - everything else is like adding a gender...

peterska2
26 Oct 2006, 22:29
That is already in the postbit template and will show only for users who have infractions. If you require modifications for anything other than what this particular modification does, please post in an appropraite thread or create a modification request in the appropraite forum.

Mazoo
25 Nov 2006, 13:15
Nice Addition ,

It's possible also to use this trick , to manage the awards :D
actually , I did that in my forum :)

attached some extra Male / Female Symbols , like those used in toilets :P


thanks :) ,

localrelax
28 Dec 2006, 18:55
Nice mod! Thanks

I'm looking forward for an improvement for this one:

would it be possible to specify a phrase instead plain male/female in the user profile field form? I know it would mean to change the code of this mod, but whould be quite useful for multi-language forums.

Is there any mod that already do this?

peterska2
28 Dec 2006, 19:00
It's not possible to use a phrase I'm afraid. I suggest using just M and F or something similar for forums where more than one language is used.

AJEB
29 Dec 2006, 02:14
Thanks Peter, simple yet effective. :D

AJEB
29 Dec 2006, 23:51
I have noticed a problem with your hack.
This is what my memberlist looks like:
http://i9.photobucket.com/albums/a87/Aaron_69/PageError.jpg

And this is what error comes up in the AdminCP:
http://i9.photobucket.com/albums/a87/Aaron_69/PageError2.jpg

When I remove your coding everything goes back to normal. Do you know what is happening?

peterska2
29 Dec 2006, 23:53
you haven't done the template edit correctly. try doing the template edit again.

Yago
03 Jan 2007, 01:54
Thanks for this hack. I am totally new to Vb and could not even install the Vb myself. However I managed to add this hack myself after following the instructions step by step. However I got lost in step 3 and had to read some of the posts. I suggest in future to try and be elementary as possible. A lot of us forum manager are new to this thing.
Thank you so much.

cajunboy2208
17 Jan 2007, 21:19
Think I might need some help on this. It isn't working.

peterska2
17 Jan 2007, 23:04
Where are you at, and how is it not working?

Snake
20 Jan 2007, 01:20
Works fine here! :)

Impulse
20 Jan 2007, 02:01
its not working.....

peterska2
20 Jan 2007, 22:28
Please provide full details of what you have done and in what way it isn't working. I cannot attempt to debug without a bug.

doogie88
21 Jan 2007, 20:18
*** got it to work, mistake on my part.

Mum
26 Jan 2007, 06:35
Thanks for this hack. I am totally new to Vb and could not even install the Vb myself. However I managed to add this hack myself after following the instructions step by step. However I got lost in step 3 and had to read some of the posts. I suggest in future to try and be elementary as possible. A lot of us forum manager are new to this thing.
Thank you so much.Exactly the same for me :)

Shaolin
29 Jan 2007, 12:12
Hi Guys,

How can I add this option onto my registration ? So that a user will have to specify on reg whether he is a male or female. It should be editable in profile too.

.

Kiros72
12 Feb 2007, 02:53
Hi Shaolin :)

To make it display upon registration go into the User Profile Field Manager and edit the gender field. Look down to the "Field Required" selection. It contains a list of options that will allow you to require that field and/or show it at registration and/or to require it upon each profile edit or not.

Peace :D
//KiroS

sadecosefo
25 Feb 2007, 20:59
I used this but tweaked it. We have a crafting forum and I wanted to, instead of gender, reflect the type of craft the user did. So I uploaded different icons to represent the crafts. :) I tried to do it multiple item, but that didn't work so I just make the .gifs to represent more than one item as needed. I also moved it to have it show up underneath the username/title area.

It worked. Awesome.

'Been wanting something like this for a while. It was a bit of a struggle for me to get it to where I wanted, but I learned a bit in the process. Thanks so much for sharing this mod.

tspepper
19 Mar 2007, 00:12
Works great, I just intalled it. For those that have issues with the .gif's showing up, the file name is CASE sensitive. Make sure you call it Male.gif and Female.gif not male.gig and female.gif.

BillieJoe
24 Mar 2007, 09:39
installed. :)

deezelpope
26 Mar 2007, 11:19
Cute! Installed...thanks!:D :up:

mat.knott
27 Mar 2007, 18:44
is there any way to make it so that you can make new forums where only a set gender can see them?

hazkant
07 Apr 2007, 05:46
My forum's in Russian. Installed plugin. Few bugs: I had to give Man and Woman english names, how would I change them to Russian? I could only change word 'Gender' to russian.
But I still have to display 'man' or 'woman', because if I change to Russian - gender image won't display at all.
Also, when I click on profiles fo the users - I see 'Gender: Male' or 'Gender: Female' instead of 'Gender - image'.

Majest
11 Apr 2007, 00:56
I have just went through the installation of this hack but it doesn't seem to show up on the posts or in the edit profile section in the user cp.

Did I do something wrong or missed something out. I was a little confused with weather to edit the postbit or the postbit_legacy so I did both.

Apart from that I did everything in the install instructions.

Imbellis
20 Apr 2007, 23:15
Its not working :( ...

I have followed the instruction step by step. There are no male or female gifs displayed, the only change I can see is the text "Male" in my profile.

Ive changed the postbit template, postbit_legacy template and the memberlist_resultsbit template. The gifs are in the /images/misc archive.

???????

Peter

3Dx
21 Apr 2007, 00:44
nice one works good sweet as a nut

rungok
21 Apr 2007, 22:23
For a gimmick I just added another "gender" called "Transvestite" or "Transe" as I called it. Here is the the pictures I used for this "gender". The install-instructions are the same. You just add a value called "trans" besides "male" and "female" and upload the images to the same place as the other. No other modifications are needed.

basilrath
21 Apr 2007, 23:21
the gender hack is nice with little icons

demo

www.thebigfatsofa.com

looks nice !

Dotara
06 May 2007, 17:45
Hi,

I've installed it but it's not showing up the image for the Gender and the Gender fonts color is black instead of Grey. I want it Grey as my other fonts are Grey like Join Date, Posts, Status.

I've attached an image, please check and hope I'll get solution for it.

pericolosogr
07 May 2007, 12:31
Hello,
i have both choices male & female written in greek so i followed all the steps...and in the end i renamed the .gif for both male and female so that they will be matching the filed options...
but the is no image in the gander field?
is there something else i need to change?

Aimee1969
11 May 2007, 15:10
How do I:
Create the following new profile field.

I'm totally new at this...

Aimee1969
11 May 2007, 17:06
I like this idea too ;)

basilrath
11 May 2007, 18:34
How do I:
Create the following new profile field.

I'm totally new at this...



Admin cp > User profile fields > add new user profile field

then do as stated in thread instalation etc

AuroraStorm
13 May 2007, 23:59
How do I:
Create the following new profile field.

I'm totally new at this...

Go to:

AdminCP,
->Language and Phrases,
->Phrase Manager. Make sure your Type set to GLOBAL. Mine is automatically like that.

At the bottom of the screen that opens up, click "add new phrase."

Then type the varname and the text the way Kerry Anne has it and save.

Mrdby
19 May 2007, 23:12
ummm this isn't working for me

Mrdby
19 May 2007, 23:25
Ok ok..i see now..FIELDX=I had to replace the x with what order it fell in number wise!! oops!!


FIXED

Mrdby
22 May 2007, 17:30
great!!!!!

Gazer
27 May 2007, 23:14
Installed Thanks ;)

Evey
05 Jun 2007, 14:11
Installed on vbulletin 3.6.7 PL1, works nicely. Thanks for the mod.

Dimitrio
08 Jun 2007, 15:58
It didn't work for me..., using vbulletin 3.6.7

iVox
08 Jun 2007, 19:04
In MSIE or Firefox you right click on the red X (the placeholder that displays when any image on a web page is broken or missing) then left click PROPERTIES.

You'll see information such as the image name and it's full URL. Use that information to debug the issue. Check the path from the URL, check for typos or missing characters and so on.

-jim

momo2
13 Jun 2007, 17:54
Same here only text is showing up not image.... and yes i have uploaded the image on the right folder, but only text shows up
http://w5awarez.com/forum/showthread.php?p=1394#post1394

deezelpope
13 Jun 2007, 17:57
Have you uploaded the image to every style image folder?

chatzworld
15 Jun 2007, 10:46
did you ensure you replaced fieldx with your field for the custom profile?

As i had the same problem untill i fixed it :)

thenewuser
20 Jun 2007, 12:00
well done!

twilighthush
01 Jul 2007, 15:19
For some reason, while the gender option does show up in the control panel for users to edit, it does not show up in the registration. Can someone help me troubleshoot?

twilighthush
01 Jul 2007, 23:52
I had it previously installed on 3.6.0, but once I upgraded to 3.6.7, it stopped working. Now, if I manually select my information via AdminCP, the gender option shows up, HOWEVER, users cannot see it in "Edit Profile" nor do they have a field for it during registration.

The postbit hack does allow the field to show up, however, I cannot seem to edit the postbit hack divs to make it streamlined with postbit_legacy. Please help me troubleshoot this issue. Thanks!

The Scriblerian
03 Jul 2007, 14:19
The image links are broken even though I've looked over everything and it all looks great.

Ba$im
11 Jul 2007, 11:44
thanks gr8 mod
i need help plz in this
Rename to male and female. They MUST match exactly the way it is typed
in the profile field, otherwise they will not work!
my forum not english forum so i need convert female and male to my arabic language
i try do that from field then rename picture as field
but it’s not work

plz if some one can help

katie hunter
12 Jul 2007, 02:53
Hi I tried and install it but it doesn't show the images of the genders. I install it on
Greenfox and Element Blue skin btw but didn't work ;x only option is there to select male or female but to show the small icon of the gender inside threads it doesn't show up .

Can someone help plz?

RvG2
03 Aug 2007, 20:03
STEP ONE

Create the following new profile field.
Type: Single-Selection Menu
Title: Gender
Description: Select your gender
Options: Male
Female
Set Default: None

Allow user to input own value: No

Display page: Edit Profile

===========================

It works... but I think there's something to be changed here. Either to change:

Male -> male (because image was named as male.gif)
Female -> female (because image was named as female.gif)

or

rename male.gif to Male.gif
rename female.gif to Female.gif

Thanks. It works on 3.6.7 pl1.

Ohiosweetheart
09 Aug 2007, 10:49
Works like a charm! This is really a good add-on for my new forum. Thank you :)

abo naif
09 Aug 2007, 20:13
Great hack ... thank you :)

neoxi
09 Aug 2007, 21:05
thank you Kerry-Anne

Nowy
12 Aug 2007, 12:42
Hi All!

Kerry-Anne big thanks for the hack.

Anyone now how display gender just after user title in the same line?

Roxie
15 Aug 2007, 03:48
Hi,

I've installed it but it's not showing up the image for the Gender and the Gender fonts color is black instead of Grey. I want it Grey as my other fonts are Grey like Join Date, Posts, Status.

I've attached an image, please check and hope I'll get solution for it.

Hello,
i have both choices male & female written in greek so i followed all the steps...and in the end i renamed the .gif for both male and female so that they will be matching the filed options...
but the is no image in the gander field?
is there something else i need to change?

Its not working :( ...

I have followed the instruction step by step. There are no male or female gifs displayed, the only change I can see is the text "Male" in my profile.

Ive changed the postbit template, postbit_legacy template and the memberlist_resultsbit template. The gifs are in the /images/misc archive.

???????

Peter


Make sure your gif files match the option names.

If you give options Male/Female, the gifs should be named Male.gif/Female.gif
If you give options male/female, the gifs should be named male.gif/female.gif

Stefano Virgill
16 Aug 2007, 08:21
Installed!
Works great.
Rated Excellent

Thanks for sharing :up:

Greetings

Steve

Stefano Virgill
16 Aug 2007, 08:55
Hi guys,
I've just made an hack.
in the same way as described in the install instructions I added a new Phrase called computer and text Computer.
Then I've created a field that has exactly the same checks but the options are mac and pc.
Then I've created the icons that I attache to this post.
Finally copy and paste:

</br>
<if condition="$userinfo[fieldx]"><div class="smallfont">$vbphrase[gender]<img src="$stylevar[imgdir_misc]/$userinfo[fieldx].gif" alt="$userinfo[fieldx]" /></div></if>

in your postbit after the cod of the original mod.

Hope you enjoy it :p

Bye

Steve

Fireproof
22 Aug 2007, 02:29
Funky weird problem.

I "installed" this mod per the instructions and it worked great for me (using IE). Then users reported that they were seeing the wrong postbit information with the wrong posts. In otherwords, the username/avatar would be one person, but the post content would be a different person.

I finally figured out that it was only screwed up when viewing the site through Firefox. IE displayed everything correctly.

I removed the template edit, and refreshed the screen in firefox - and everything was fixed.

Here's my template edit. Any clues?


<!-- GENDER DISPLAY ----------->
<if condition="$post[field14]"><div class="postdata">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field14].gif" alt="$post[field14]" /></div></if>
<!-- /GENDER DISPLAY ------------>

LiftNw8
07 Sep 2007, 01:16
I installed this today, followed all the directions and I am not getting the post bit to display at all in my browser. What could the problem possibly be? I think this was asked by another user of it as well. I have this installed on my talknepa.com forum.

haytham
09 Sep 2007, 17:14
me too. Installed, did the template modifications but no choices come up in the "edit profile"

haytham
09 Sep 2007, 17:42
You set the field to not editable by user which is why it is not showing up. Change this to YES and it will appear for editing.

That's where I went wrong. Thanks. All done.

Battle_Ring
09 Sep 2007, 21:33
Gender Text Dont show up

http://www.sportscardforum.com/showthread.php?t=359957

Battle_Ring
09 Sep 2007, 21:42
nm i got it

FJCCrazy
29 Sep 2007, 16:21
I installed the mod as instructed and in the ACP I can see and update the gender field, the icons show on the user profile as it should, but I can't get the option to show in the User CP as a field to be updated. Is there a limit as to how many option feilds you can have?

Gender is currently "field6".

I'm running the latest vB software.

Any ideas?

Thanks:(


FJCCrazy - Admin: www.fjccentral.com

mgurain
06 Oct 2007, 17:06
Can't anybody make it:
- product (no template manual edit)
- fully phrased
- ACP settings to choose the images for each gender option (not necessary same as profile field options, but by order)

It's a very important mod,
Anybody ?

Hengest
06 Oct 2007, 22:55
I installed this today, followed all the directions and I am not getting the post bit to display at all in my browser. What could the problem possibly be? I think this was asked by another user of it as well. I have this installed on my talknepa.com forum.



I had the same problem but solved it by adding step 4 to POSTBIT and POSTBIT_LEGACY rather than POSTBIT or POSTBIT_LEGACY as suggested.

Also make sure that you change all instances of [fieldx] in steps 4 & 5 so that x = the field number of your gender field.

Hope that helps

jeriddian
15 Oct 2007, 01:55
I wanted to install this hack, but I went to my admincp and went to:

User Profile Fields> Add User Profile Field

However, there's no selection for the options of "male" and "female". where do I put those?

EDIT: Never Mind. I see what I did wrong.

ChU v2
15 Oct 2007, 03:57
Don't know if this has been brought up, but can someone take a look at the code and make it so the images are recognized by like male, female, boy girl. Right now it only displays the image if it says "Male" or "Female" and members hate to capitalize. :p

jeriddian
15 Oct 2007, 16:46
I think that would be solved by making sure your options of "male" and female" are not capitalized, and the GIF files are also named exactly the same, without capitalization.

I've installed this Mod and it works just fine on my board, so my hats off to Kerry-Anne for this nice work. I only have one question. If a member brings up the memberlist, the word "Male" or "Female" shows instead of the GIF symbol. Was that the way it's supposed to be? If so, what do I have to do to make the symbol show up there as well? Thanks.

MeMySelfNi
20 Oct 2007, 07:28
Gender Text Dont show up



The gender text isnt showing for me either??

Mrdby
20 Oct 2007, 12:37
The gender text isnt showing for me either??

need some help? Pm me and i will fix it for you.

MeMySelfNi
21 Oct 2007, 02:53
The gender text isnt showing for me either??


bump.................................

Audentio
21 Oct 2007, 04:17
Perfect :)

vuiveclub
12 Nov 2007, 17:39
Hello,
How to make cron for female or male users move to another usergroup?

mri_mohammad
14 Nov 2007, 00:29
it's work with 3.6.8 ;) thanks installed

mystic10
14 Nov 2007, 01:38
this is very silly question ...but i have edited all templates and uplaoded the gif to my mis folder but i dont see it at all on my forum..does it mean that those who choose from now on their gender will show..or it should have automatically have place the gender sign on all of the members so far...as i dont see anything not even the name male female :( please guide

SNATCH3R
21 Nov 2007, 11:15
good mod..very useful for my forum.....thanks a lot buddy...

mri_mohammad
21 Nov 2007, 20:10
how we can show how much we have girl and how much we have boy?

nicolerork
13 Dec 2007, 17:51
It's not showing up in the "Edit Profile" field for some reason... using 3.6.8

smooth-c
06 Feb 2008, 23:56
Can this be installed in the postbit template? all i'm seeing everyone talk about is using the legacy template.

Thanks

Icy
07 Feb 2008, 04:44
smooth-c - You just have to make the changes in POSTBIT template rather than POSTBIT_LEGACY template.

Mesohu
15 Mar 2008, 21:20
Who will update it for vb 3.7.x ?

Icy
16 Mar 2008, 08:22
This works fine for me on 3.7 B6

AnabolicResourc
18 Mar 2008, 22:51
Installed !! :)

surfjunkey
25 Mar 2008, 06:59
working like a charm, thank you :)

excellent mod

budatalk
26 Mar 2008, 00:15
Many thanks! I had to capitalize the first letters. Other than that, it's a hot knife in butter.

dcw
27 Mar 2008, 03:42
I'm confused on this a bit, I am at step 3 and well I don't understand it.

kellyandmark04
14 Apr 2008, 20:20
I'm confused on this a bit, I am at step 3 and well I don't understand it.

I agree I do not understand as well

STEP THREE

ADD PHRASE

type: global
varname: gender
Text: Gender

Where do you add phrase???

kellyandmark04
15 Apr 2008, 03:38
Ok I figured it out you add step three under the Languages and Phrases Tab in the AdminCP

So I got all that working and uploaded the symbols to the img/misc folder and all I get is a red x when the pic comes up any help would be appreciated thanxxx

kellyandmark04
15 Apr 2008, 04:41
ok finally got it and working great so far thanks for the hack, I had them uploaded to the reg misc folder instead of my custom style folder had to click the X image to see where it was looking for the image and upload to the correct directory

Hamedk
24 Apr 2008, 08:10
hi
i have a question
i do all steps but i cant find install button to click on it .....
YOU ARE DONE! ALL YOU NEED TO DO IS SET YOUR GENDER IN YOUR USERCP

DON'T FORGET TO CLICK INSTALL! THANKS.

Hamedk
24 Apr 2008, 21:22
hi
i have a question
i do all steps but i cant find install button to click on it .....

Any body there?????

echo2kk5
25 Apr 2008, 16:57
Any body there?????

Look at the main post...the Install is for showing you've installed the mod. Look at the bottom of the mod authors post:

Show Your Support

To receive notifications regarding updates -> Click to Mark as Installed.

DiverTree
11 May 2008, 03:15
works fine on 3.7.0 :)

c.oper
09 Jun 2008, 20:13
Installed! Working Great On My 3.7.0!

car20
08 Jul 2008, 09:47
dear Kerry-Anne

i do all steps , but i cant see gender icon in postbit ?!( ver 3.7.2)

YuKuSaN
25 Jul 2008, 16:38
-installed- tanks for all

SoulSuite
30 Jul 2008, 22:15
The picture's wont show up in the profile and content, Ive tried everything, can you help me please..


//Edit: It's solved, the directory into the script was linked to the wrong path

RvG2
02 Aug 2008, 11:43
can't believe that this is not built in vb :rolleyes:

tikichick
23 Aug 2008, 05:59
Works in 3.7.2 Patch Level 1. Thanks!

BHATUGAN
25 Aug 2008, 08:20
after i have thoroughly followed the instruction on the installation of gender sign, the image still wont show. Its only showing the word equivalent of the image. Why is this so?

Tanapangarap
05 Sep 2008, 04:33
Now that I updated from 3.6.8 to 3.7.3 only the text "Male" or "Female" will show up instead of the image.

Tanapangarap
05 Sep 2008, 04:38
Figured it out: I right-clicked on the text, chose to "View Image", noticed that the location assigned the icons to the root directory, and so uploaded the icons to the root directory, and now it's working.

Odd that it would do that despite the code specifically instructing the images to be fetched from the images misc. directory, but it's fixed so whatever.

Welshy2008
08 Sep 2008, 12:18
Hi Kerry-Anne,

I cannot get this to work on my forum. 3.6.8 Patch level 2.

If I look at the registration form as if I were to register, There is no Gender option. However, when I look at add a new user in my ACP - the drop down box with the options are there.

I would appreciate your help on this, Please.

With your permission, I will PM you my details.

Many Thanks,

Welshy2008.

Cobro
11 Sep 2008, 02:03
I have made my own image for this and this is how you do it

POSTBIT TEMPLATE EDIT

-----------

POSTBIT OR POSTBIT_LEGACY
-------

FIND

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

ADD BELOW

<if condition="$post[fieldx]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[fieldx].png" alt="$post[fieldx]" /></if>

in MEMBERS LIST TEMPLATE EDIT

In Template memberlist_resultsbit

FIND

<if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>

AFTER ADD

<if condition="$userinfo[fieldx]"><div class="smallfont">$vbphrase[gender]<img src="$stylevar[imgdir_misc]/$userinfo[fieldx].png" alt="$userinfo[fieldx]" /></div></if>

And i added couple if there are couples on your board :)

and to get it work on vb 3.7.2 in mini stats then you have to find <dd>$prepared[posts]</dd>

and below add

<if condition="$userinfo[fieldx]"><div class="smallfont"><img src="$stylevar[imgdir_misc]/$userinfo[fieldx].png" alt="$userinfo[fieldx]" /></div></if>

remember to change X for your field number mine is 6

but i hope you like my version of this

Welshy2008
11 Sep 2008, 12:36
Hi Kerry-Anne,

I cannot get this to work on my forum. 3.6.8 Patch level 2.

If I look at the registration form as if I were to register, There is no Gender option. However, when I look at add a new user in my ACP - the drop down box with the options are there.

I would appreciate your help on this, Please.

With your permission, I will PM you my details.

Many Thanks,

Welshy2008.



Can anyone help me on this please?

Welshy2008
14 Sep 2008, 15:34
No-one?

Welshy2008
20 Sep 2008, 20:26
Such a shame that I couldn't get any help with this - I wanted it too.


Oh well, UNINSTALL it, it is then.

GrendelKhan{TSU
22 Sep 2008, 09:27
installed working

3.7.3

(and yes, why isn't this default to vbulletin?)

steve1966
24 Sep 2008, 10:58
work perfect on 3.73 thank you

jerx
30 Sep 2008, 17:58
This hack is mod is working fine on vb 3.7 pl1.

But I like to place gender in a seperate row. If I add another column according to these instructions, the colors of all columns are not correct any more. I mean the alternating table cells (first col dark color, second col light color, third col dark color, etc).

I have used this code in memberlist_resultsbit:
<if condition="$userinfo[field5] AND exec_switch_bg()"><td class="$bgclass"><div class="smallfont"><img src="$stylevar[imgdir_misc]/$userinfo[field5].gif" alt="$userinfo[field5]" /></div></td>
</if>
<if condition="$userinfo[field6] AND exec_switch_bg()"><td class="$bgclass"><div class="smallfont"><img src="$stylevar[imgdir_misc]/$userinfo[field6].png" alt="$userinfo[field6]" /></div></td>
</if>


Besides the fact that the gender column (field5) has the wrong color (but columns to the right are alternating), there are also problems with empty fields. If a user has not filled in field5 or field6, that row will have up to 2 columns less that the other rows.

You can avoid missing columns by not using the if condition, but the alternating color problem remains. Hard coding the color (<td class="alt1"> and <td class="alt2") does not help either, because you will have the alternating color problem on the other custom profile fields.

Do you have any solution for this problem?

Problem fixed!

I solved the problem. I also changed the order of other columns and that caused the problem. To avoid missing column cells when a user did not fill in that field, I just added <if condition="exec_switch_bg()"> to the code. For the gender field it looks like this:
<if condition="exec_switch_bg()"><td class="$bgclass"><div class="smallfont"><img src="$stylevar[imgdir_misc]/$userinfo[field5].png" alt="$userinfo[field5]" /></div></td>
</if>

Obviously you need to change the memberlist header, too. I added the following to memberlist template:
<td class="thead" nowrap="nowrap">$vbphrase[gender]</td>

Howell
16 Oct 2008, 18:33
For vB3.7.x I have now got this modification to show on the mini statistics box of a users profile page.

For this you need to do a small template edit.

IN memberinfo_block_ministats

FIND:

<dd>$prepared[posts]</dd>
BELOW ADD:

<!-- gender in mini stats -->
<if condition="$userinfo[fieldx]">
<dt class="shade">$vbphrase[gender]</dt>
<dd><img src="$stylevar[imgdir_misc]/$userinfo[fieldx].gif" alt="$userinfo[fieldx]" /></if></dd>
<!-- / gender in mini stats -->


Remember to change the x to your relative profile field number!!

PDM
18 Oct 2008, 22:22
ADD PHRASE __ where is it ????? Phrase Manager----Add New Phrase

and not show image for me

vb 3.7.3

goxy63
04 Dec 2008, 23:28
Works great
Thanks for this nice mod, just great
Maybe some more icons ?
:D
@Howell
Thanks for Idea...just cool
Ive added mine

Just under
<dl class="smallfont list_no_decoration profilefield_list">

Added your code
<!-- gender in mini stats -->
<if condition="$userinfo[field8]">
<dt class="shade">$vbphrase[gender]</dt>
<dd><img src="$stylevar[imgdir_misc]/$userinfo[field8].gif" alt="$userinfo[field8]" /></if></dd>
<!-- / gender in mini stats -->


So icon is at first line :D

kellyandmark04
16 Jan 2009, 09:53
Will this work with 3.8???

Subah
01 Feb 2009, 11:10
Kerry , i know it is so old but there is some thing wrong happen with me !
this gender it is only work if i write the filed in english as:
male
female
even if i change the name to
Male
Female
and change the picture name as the some it is showen as red X mark ?? why it is only work with , male & female ?

KevinL
01 Feb 2009, 14:31
Your image names have to be the same names as you put in the box.

So if your names are
Male.gif --> Male
Female.gif --> Female

male.gif -->male
female.gif --> female

marble.gif --> marble
HELLO.gif --> HELLO

Subah
01 Feb 2009, 17:25
Your image names have to be the same names as you put in the box.

So if your names are
Male.gif --> Male
Female.gif --> Female

male.gif -->male
female.gif --> female

marble.gif --> marble
HELLO.gif --> HELLO

I know but i try to change both name and nothing happen !!

KevinL
02 Feb 2009, 00:12
I know but i try to change both name and nothing happen !!

You changed BOTH the image name and the call in the field? And also made sure the field number was correct?

Subah
02 Feb 2009, 00:21
Yes :)

KevinL
02 Feb 2009, 00:28
Yes :)

Is this the image you're using? Or is this another mod?

http://www.albinali.net/vb/images/element/misc/gender_male_head.gif

Subah
02 Feb 2009, 00:33
Yes , but this one is from another mod i just change to it after i feel there is no way to fix it :)
now i use this one
http://www.vbulletin.org/forum/showthread.php?t=196749
and it is work fine :)

itsheinz
07 Mar 2009, 06:42
installed,thanks kerry-anne^^

Parafal
22 May 2009, 18:42
I just installed and it's working fine. ;)
But now the font from the gender and post count are bigger than the others.

How can I have all the size font the same? What did I do wrong?

RomainVL
06 Oct 2009, 14:07
Strange thing is happening for me : the gender icon shows in the members list, but nowhere else. I checked 3 times if I properly edited the postbit_legacy and the memberlist_resultsbit, and it seems to be ok. I also checked the .gif names (if the matched with the profile field), and it's also fine. That's weird... :D

Edit : problem fixed. I had to put avatars/usernames/age/... to the left :

Admin CP > vBulletin Options > Style & Language Settings; and set the "Use Legacy (Vertical) Postbit Template" to Yes (and save)


And now the gender icons show up. ;)

skariko
22 Dec 2009, 14:36
Anyone know how to make this on VB 4?

milsirhc
22 Dec 2009, 23:42
Im interested to know how to get this work on VB4 too.

Pro-eSports.com
15 Feb 2010, 21:43
Can the author please update this mod so it works with vB4?

creative-friend
30 Oct 2010, 20:50
i have tried to change the pictures but it still showing the same pics

i replaced the old ones..

skainetworks
22 Jun 2013, 23:17
CODE FOR vb 4.xx :D
<vb:if condition="$post['fieldx']"><dt>{vb:rawphrase gender}</dt><dd><img src="./images/misc/{vb:raw post.fieldx}.gif"/> </dd>
</vb:if>