Log in

View Full Version : Remove "--" from Quick Style Chooser?


slobra
10-05-2010, 10:20 PM
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:

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

$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

. '--'


from functions.php and

--


from global.php.