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)

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



All times are GMT. The time now is 03:22 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.01255 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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