vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Remove "--" from Quick Style Chooser? (https://vborg.vbsupport.ru/showthread.php?t=251700)

slobra 10-05-2010 10:20 PM

Remove "--" from Quick Style Chooser?
 
I would like to remove the "--" from my quick style chooser. For example this is what it looks like now:

Style 1
--Style 1.1
----Style 1.2
Style 2
--Style 2.1
----Style 2.2

I would like it to be a plain list:

Style 1
Style 1.1
Style 1.2
Style 2
Style 2.1
Style 2.2

I know it's generated in global.php:

Code:

// #############################################################################
// Generate Style Chooser Dropdown
if ($vbulletin->options['allowchangestyles'] AND empty($_POST['do']))
{
        $stylecount = 0;
        $quickchooserbits = construct_style_options(-1, '--', true, true);
        $show['quickchooser'] = ($stylecount > 1 ? true : false);
        unset($stylecount);
}
else
{
        $show['quickchooser'] = false;
}


But if I remove the -- it still puts four ---- in front of a sub style. If anyone can tell me how to rid the quick style chooser of the dashes completely I would appreciate it. :D

kh99 10-06-2010 02:04 PM

In includes/functions.php around line 5415 (in function contruct_style_options) there's a line

Code:

$stylesetlist .= construct_style_options($style['styleid'], $depthmark . '--', false, $quickchooser);
you probably want to take out the . '--'

I don't understand the code, but it kind of looks like a minor bug where they didn't fully implement the ability to change the $depthmark

slobra 10-06-2010 03:11 PM

Thanks for the tip. :) For it to display like I wanted I had to remove

Code:

. '--'

from functions.php and

Code:

--

from global.php.


All times are GMT. The time now is 09:13 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.01266 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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