vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   CheckBox Help (https://vborg.vbsupport.ru/showthread.php?t=134326)

johnstires 12-19-2006 01:48 AM

CheckBox Help
 
I'm having a templating problem that I have narrowed down to my plugins. If you go to this page you can see the problem I am having (see the extra threadfields section):

http://www.onereef.com/forums/search.php

The check boxes do not line up well with the words they represent.

This is the code in the plugin that needs to be altered but I have no clue what it means.
Code:

  if ($threadfield['type'] == checkbox)
{
$checkboxes = explode("\n", $threadfield['options']);
$numoptions = 0;
unset($checkboxstr);
$alloptions = explode(", ", $threadinfo['field' . $fieldid]);
foreach($checkboxes AS $checkbox)
    {
unset($checkboxselected);
if (in_array(trim($checkbox), $alloptions)) {
$checkboxselected = "checked=\"checked\"";
}
$checkboxstr .= "$checkbox<input type=\"checkbox\" name=\"fields[$threadfield[fieldid]][$numoptions]\" value=\"$checkbox\" $checkboxselected />";
$numoptions++;
    }

Does anyone know how I would tweak it to make it look better. Ideally I'd like it to be in 3 columns, but I'd settle for the checkboxes to be closer to the words they represent.

Hope someone can help.

John


All times are GMT. The time now is 06:24 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.01031 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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