vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Gender In Postbit (https://vborg.vbsupport.ru/showthread.php?t=117973)

Hamedk 04-24-2008 08:22 PM

Quote:

Originally Posted by Hamedk (Post 1497943)
hi
i have a question
i do all steps but i cant find install button to click on it .....

Any body there?????

echo2kk5 04-25-2008 03:57 PM

Quote:

Originally Posted by Hamedk (Post 1498532)
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 05-11-2008 02:15 AM

works fine on 3.7.0 :)

c.oper 06-09-2008 07:13 PM

Installed! Working Great On My 3.7.0!

car20 07-08-2008 08:47 AM

dear Kerry-Anne

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

YuKuSaN 07-25-2008 03:38 PM

-installed- tanks for all

SoulSuite 07-30-2008 09:15 PM

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 08-02-2008 10:43 AM

can't believe that this is not built in vb :rolleyes:

tikichick 08-23-2008 04:59 AM

Works in 3.7.2 Patch Level 1. Thanks!

BHATUGAN 08-25-2008 07:20 AM

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 09-05-2008 03:33 AM

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 09-05-2008 03:38 AM

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 09-08-2008 11:18 AM

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 09-11-2008 01:03 AM

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

Welshy2008 09-11-2008 11:36 AM

Quote:

Originally Posted by Welshy2008 (Post 1617320)
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 09-14-2008 02:34 PM

No-one?

Welshy2008 09-20-2008 07:26 PM

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 09-22-2008 08:27 AM

installed working

3.7.3

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

steve1966 09-24-2008 09:58 AM

work perfect on 3.73 thank you

jerx 09-30-2008 04:58 PM

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>

Howell 10-16-2008 05:33 PM

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

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

<!--  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 10-18-2008 09:22 PM

ADD PHRASE __ where is it ????? Phrase Manager----Add New Phrase

and not show image for me

vb 3.7.3

goxy63 12-04-2008 10:28 PM

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

<dl class="smallfont list_no_decoration profilefield_list">
Added your code
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 01-16-2009 08:53 AM

Will this work with 3.8???

Subah 02-01-2009 10:10 AM

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 02-01-2009 01:31 PM

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 02-01-2009 04:25 PM

Quote:

Originally Posted by KevinL (Post 1730869)
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-01-2009 11:12 PM

Quote:

Originally Posted by Subah (Post 1731036)
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-01-2009 11:21 PM

Yes :)

KevinL 02-01-2009 11:28 PM

Quote:

Originally Posted by Subah (Post 1731425)
Yes :)

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

http://www.albinali.net/vb/images/el..._male_head.gif

Subah 02-01-2009 11:33 PM

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
https://vborg.vbsupport.ru/showthread.php?t=196749
and it is work fine :)

itsheinz 03-07-2009 05:42 AM

installed,thanks kerry-anne^^

Parafal 05-22-2009 05:42 PM

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 10-06-2009 01:07 PM

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 12-22-2009 01:36 PM

Anyone know how to make this on VB 4?

milsirhc 12-22-2009 10:42 PM

Im interested to know how to get this work on VB4 too.

Pro-eSports.com 02-15-2010 08:43 PM

Can the author please update this mod so it works with vB4?

creative-friend 10-30-2010 07:50 PM

i have tried to change the pictures but it still showing the same pics

i replaced the old ones..

skainetworks 06-22-2013 10:17 PM

CODE FOR vb 4.xx :D
PHP Code:

<vb:if condition="$post['fieldx']"><dt>{vb:rawphrase gender}</dt><dd><img src="./images/misc/{vb:raw post.fieldx}.gif"/> </dd>  
</
vb:if> 



All times are GMT. The time now is 05:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete