vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD (https://vborg.vbsupport.ru/showthread.php?t=231260)

ranafarooq 10-06-2010 09:57 AM

I have replace the code

PHP Code:

<!-- Wy Gender in postbit Start -->
<
vb:if condition="$post['field5']"> <dt>Gender</dt> <dd><img src="http://www.hibuddiez.com/forums/images/misc/{vb:raw post.field5}.gif" alt="" /></dd></vb:if>
<!-- 
Wy Gender in postbit End --><br /> 

and I can acess the bits at


PHP Code:

http://www.hibuddiez.com/forums/images/misc/male.gif 

and

PHP Code:

http://www.hibuddiez.com/forums/images/misc/female.gif 

but the problem is still there i can see only

Gender:


and no picture at all :-(

Eduardo Leon 10-09-2010 04:40 PM

dont work for me :S

i have vb 4.0.7 and dont appear in my postbit

Welshy2008 10-09-2010 07:58 PM

Quote:

Originally Posted by Leothefox (Post 2108463)
dont work for me :S

i have vb 4.0.7 and dont appear in my postbit




You are using postbit_legacy Not postbit.

nkumaran 10-13-2010 02:05 PM

Quote:

Originally Posted by Welshy2008 (Post 2108503)
You are using postbit_legacy Not postbit.

Not working.

phoelapyae 12-02-2010 01:40 PM

I tried many times, but not show in post.
Only Show in profile.

http://img263.imageshack.us/img263/1594/28040115.png

It's version 4.0.8.

rughis 12-02-2010 02:24 PM

I'am not able to find the text that I should change in postbit template :(

But how can I understand which template (postbit or postbit_legacy) I'm using?

EDIT:

I've found the answer:

"If you would like to run your board using the old-style postbit template, you can do so by going to vBulletin Options > Style & Language Settings and switching the Use Legacy (Vertical) Postbit Template? setting to Yes."

But I'm still not able to found the text in postbit legacy template :(

EDIT 2:

According to me, there is an error in pdf file, because the text that I had to change was different (for a : sign). Should be very useful to correct the pdf file attached!

However now the mod is working fine!

Thank you so much!!!

beiamerica 12-07-2010 11:03 PM

Here is an updated version that works in 4.1.0

Code:

<vb:if condition="$post['field5']"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></vb:if>

LbR 12-08-2010 08:56 AM

Wonderful :) Installed it on my forum love it

JAFRI 12-18-2010 05:47 AM

@ Welshy2008

good mod & i use this, but i want show only text : Male & Female , not show image any solution ????

Mustiii 12-18-2010 08:29 AM

How can i translate the word gender in different languages?

I tried this and nothing changed. Do i need to change something in the template?

https://vborg.vbsupport.ru/external/2010/12/36.png

JAFRI 12-22-2010 02:32 PM

Thanks...

BlueCheri 02-28-2011 06:19 AM

1 Attachment(s)
That's working fine, but the location alignment is gone, attaching pic for this.

How to fix this?

thanx in advacne

Quote:

Originally Posted by beiamerica (Post 2130638)
Here is an updated version that works in 4.1.0

Code:

<vb:if condition="$post['field5']"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></vb:if>


Wordplay 03-12-2011 04:01 PM

is it possible to have a default avatar set depending on the genderfield?

rafiul 03-13-2011 12:01 PM

NOt working in version 4.1.1 . How to get this work on newer version ?

WorldCraft 03-29-2011 09:10 PM

Edit the 'postbit_legacy' template, not the 'postbit' template. Works a treat, cheers mate.

justasiam 04-23-2011 11:31 PM

I have some forums that are meant to be used by the women on my site only and others that are just for the men.

Can this mod be expanded to assign them to the "Male" or "Female" usergroups depending on their choice? If that is the case, can we enforce the selection of one or the other instead of allowing for the "Blank" selection?

SᴩiDᴇЯ 07-24-2011 04:20 PM

I have installed it in vb 4.1.4 and it works perfectly to see it look here http://wfreedom.com/showthread.php?1-Owner-of-WFreedom great mod thank you.

fukdawrld 07-24-2011 07:27 PM

4.1.4 pl2 works..thanks

Macgiber 07-25-2011 02:05 PM

Installed

LisaArnold 07-26-2011 10:30 AM

I'm using 4.1.4 pl2 and couldn't get the images to show or anything to show in posts. I'll try again another time.

Good mod anyway, thanks.

spamgirl 08-15-2011 03:06 PM

It's not showing up on my registration form - does anyone know how I would add it?

Solved my own problem:

Styles & Templates > Style Manager > Edit Templates > Registration Templates > register

Add:

Code:

<div class="blockrow">
                                <ul class="group">
                                        <li>
<label for="gender">{vb:rawphrase gender}:</label>
<select class="primary" name="userfield[field5]" id="cfield_5" tabindex="1">
<option value="0" selected="selected"></option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
<input type="hidden" name="userfield[field5_set]" value="1" />
                                        </li>
                                </ul>
                        </div>


Lemrith 08-20-2011 11:58 PM

Quote:

Originally Posted by Wordplay (Post 2172584)
is it possible to have a default avatar set depending on the genderfield?


sure thats possible.

just search for the point where the vb: if is getting teh info if you have a avatar pic or not.


@Mustii:

Sprachen und Phrasen -> Phrasen durch suchen -> gender
(auf die klein schreibung achten)

Dort dann die ?bersetzungen eintragen, da die Variable die du ?bersetzt hast, der feldname im Einstellungskontext ist.

greenspan 09-10-2011 12:49 AM

Works on 4.1.5 using beiamerica's code. Thanks ^_^

Cystomatic 11-24-2011 02:09 PM

Hello may you could update this to 4.1.8 or something, as it's not working on my forum at the moment.

I'm just getting this at the moment :\
http://screensnapr.com/v/MFj0Rh.png

Welshy2008 11-24-2011 02:16 PM

What is your forum URL?

Place on here or PM me if you prefer.

Cystomatic 11-24-2011 02:44 PM

I have PM'ed you right now, thank you.

Cystomatic 11-24-2011 07:19 PM

AWESOME mod, works perfectly on my forum now :D

Welshy is awesome.

katim110 12-14-2011 08:20 PM

doesnt work for vb 4.1.8 ? please updated :(

Welshy2008 12-14-2011 09:18 PM

Quote:

Originally Posted by katim110 (Post 2277797)
doesnt work for vb 4.1.8 ? please updated :(


It does work in 4.1.8 as I am using it in there now.

Check my sig to see it for yourself.

Chromium 01-07-2012 11:34 AM

Just a little tip:
Code:

<!-- Wy Gender in postbit Start -->
<vb:if condition="$post['fieldX']"><dd>Gender:<img src="http:// FORUMNAME .com/images/misc/{vb:raw post.fieldX}.gif" /></dd></vb:if>
<!-- Wy Gender in postbit End -->


BlueCheri 01-11-2012 11:38 AM

1 Attachment(s)
Installed, thanx.

Only one problem below gender image, the 'Location' and 'Thanked' texts setting gone.

Kindly guide me.

Thanx in advance.

Image attaching.

Welshy2008 01-11-2012 11:51 AM

If you'd like to set up an temp Admin account for me, I will have a look for you.

PM me the details.

With regard to the Thanked one - it used to be like that on my old forum, before I even added the Gender mod. It is also like it on other forums that don't have my mod. But I will look at that too, if you wish me to.

BlueCheri 01-11-2012 01:59 PM

Thanx friend for help and support.

Highly appreciated.

Rgds

Quote:

Originally Posted by Welshy2008 (Post 2286494)
If you'd like to set up an temp Admin account for me, I will have a look for you.

PM me the details.


With regard to the Thanked one - it used to be like that on my old forum, before I even added the Gender mod. It is also like it on other forums that don't have my mod. But I will look at that too, if you wish me to.


HHelp1 02-25-2012 10:10 PM

Its not working for 4.1.8 :( i followed exactly what it show

BlueCheri 02-26-2012 02:51 AM

1 Attachment(s)
Friend, there is a problem.

It's not working as postbit legacy is redesigned.

Please check offwalk, and suggest the solution.

Can some one please help me in placing the gender image, it is going below the line.

Attaching picture for it.

Thanx and rgds,

G!

HHelp1 02-29-2012 09:48 PM

Quote:

Originally Posted by BlueCheri (Post 2303452)
Friend, there is a problem.

It's not working as postbit legacy is redesigned.

Please check offwalk, and suggest the solution.

Can some one please help me in placing the gender image, it is going below the line.

Attaching picture for it.

Thanx and rgds,

G!

I have installed this mod on that postbit you have too ( the one you having right now ) but it not working.

CharlieDelta 03-25-2012 11:13 PM

1 Attachment(s)
Thanks for this.
I made some images for my dark styles.

I am using this with my Postbit tabs mod rather than editing the postbit legacy template.

booble 04-20-2012 10:47 AM

Work in 4.1.12???

booble 04-20-2012 05:33 PM

It show

"Gender: Male"

... but icon is missing

HHelp1 04-27-2012 01:32 PM

Quote:

Originally Posted by booble (Post 2321968)
It show

"Gender: Male"

... but icon is missing

Same here... I think it no longer work :/


All times are GMT. The time now is 03:33 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.01317 seconds
  • Memory Usage 1,827KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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