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)

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


All times are GMT. The time now is 11:24 PM.

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.02919 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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