vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   custom profile field (https://vborg.vbsupport.ru/showthread.php?t=61246)

Sebastian 02-06-2004 06:22 PM

custom profile field
 
its sad vb doesn't allow you to specify if a check box is selected or not. anyone know how to make this possible?

bascially i have a single checkbox, checked means Yes, Unchecked means No.. but i need to make this box checked by default when the users registers...

also, Does anyone know of a conditional to use in postbit template to hide the reply button when the thread is closed?

Zachery 02-06-2004 06:24 PM

Quote:

Originally Posted by Sebastian
its sad vb doesn't allow you to specify if a check box is selected or not. anyone know how to make this possible?

bascially i have a single checkbox, checked means Yes, Unchecked means No.. but i need to make this box checked by default when the users registers...

also, Does anyone know of a conditional to use in postbit template to hide the reply button when the thread is closed?

Why not use a drop down instead?

Sebastian 02-06-2004 06:30 PM

1 Attachment(s)
well, then i would have to add a "yes" and "no" option.. i only want 1 button to serve as a Yes/No... Yes if checked and No if unchecked.

see attached image... 'no banner ads' just like the other options.. one button. there are options in admin cp to make the other options checked by default , but not for custom check box. :(

Zachery 02-06-2004 06:40 PM

Quote:

Originally Posted by Sebastian
well, then i would have to add a "yes" and "no" option.. i only want 1 button to serve as a Yes/No... Yes if checked and No if unchecked.

see attached image... 'no banner ads' just like the other options.. one button. there are options in admin cp to make the other options checked by default , but not for custom check box. :(

Well you could use a drop down, or reverse your logic (click here to SHOW ad's), you should also make a comment about this at vBulletin.com :)

Vigile 02-07-2004 10:50 AM

Quote:

Originally Posted by Sebastian
its sad vb doesn't allow you to specify if a check box is selected or not. anyone know how to make this possible?

bascially i have a single checkbox, checked means Yes, Unchecked means No.. but i need to make this box checked by default when the users registers...

also, Does anyone know of a conditional to use in postbit template to hide the reply button when the thread is closed?

IIRC, adding checked="checked" will make the box be checked by default. I dont know how you have it hardwired in your forums and I dont know for sure this is what you are looking for but here's an example:

Code:

<input type="checkbox" name="receipt" id="cb_receipt" tabindex="1" value="1" checked="checked"/>


All times are GMT. The time now is 10:43 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.01089 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete