Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Gender In Postbit Details »»
Gender In Postbit
Version: 1.0.4, by peterska2 peterska2 is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.6.0 Beta 1 Rating:
Released: 06-07-2006 Last Update: Never Installs: 483
Template Edits
 
No support by the author.

The updated version of this release.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 09-05-2008, 03:33 AM
Tanapangarap's Avatar
Tanapangarap Tanapangarap is offline
 
Join Date: Dec 2007
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #173  
Old 09-05-2008, 03:38 AM
Tanapangarap's Avatar
Tanapangarap Tanapangarap is offline
 
Join Date: Dec 2007
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #174  
Old 09-08-2008, 11:18 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #175  
Old 09-11-2008, 01:03 AM
Cobro Cobro is offline
 
Join Date: Oct 2006
Location: cellar
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have made my own image for this and this is how you do it
Code:
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

Code:
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

Code:
<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
Reply With Quote
  #176  
Old 09-11-2008, 11:36 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Welshy2008 View Post
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?
Reply With Quote
  #177  
Old 09-14-2008, 02:34 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No-one?
Reply With Quote
  #178  
Old 09-20-2008, 07:26 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Such a shame that I couldn't get any help with this - I wanted it too.

Oh well, UNINSTALL it, it is then.
Reply With Quote
  #179  
Old 09-22-2008, 08:27 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed working

3.7.3

(and yes, why isn't this default to vbulletin?)
Reply With Quote
  #180  
Old 09-24-2008, 09:58 AM
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work perfect on 3.73 thank you
Reply With Quote
  #181  
Old 09-30-2008, 04:58 PM
jerx jerx is offline
 
Join Date: Feb 2006
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Code:
<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:
Code:
<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:
Code:
<td class="thead" nowrap="nowrap">$vbphrase[gender]</td>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05020 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete