HEADER BAR AND HTML SEPARATOR STYLING FIX (PRIOR TO V3.07) - Oct 24th, 2016


From CMSB version 3.0 through 3.06 styling in Header Bars has shown as html instead of actually styling the Header Bar.

Dave Edis, Senior Programmer at InteractiveTools has offered a simple fix until Version 3.07 is released.

He said:

In /lib/admin_functions.php search for "to display even" and replace this line:

$attrs['label'] = $attrs['label'] !== "" ? htmlencode($attrs['label']): ' '; // default to   to display even
with empty string

With this line:

$attrs['label'] = $attrs['label'] !== "" ? $attrs['label'] : ' '; // default to   to display even with empty
string


In /lib/menus/database/editTable_functions.php

To display up to 50 characters of text in an html separator in the field list instead of just --html--

In /lib/menus/database/editTable_functions.php

replace this block:


if (@$field['type'] == 'separator') {
if ( @$field['separatorHeader']) { echo "<div class='text-center' style='line-height: 200%'><b>---
{$field['separatorHeader']} ---</b></div>\n"; }
else { echo "<div class='text-center'>--- {$field['separatorType']} ---</div>"; }
}

With this block:

if (@$field['type'] == 'separator') {
$htmlAsText = htmlencode(mb_strimwidth(strip_tags($field['separatorHTML']), 0, 50, "..."));
if ($field['separatorType'] == 'header bar') { echo "<div class='text-center' style='line-height: 200%'><b>---
{$field['separatorHeader']} ---</b></div>\n"; }
elseif ($field['separatorType'] == 'html') { echo "<div class='text-center' style='line-height: 200%'><b>---
$htmlAsText ---</b></div>\n"; }
else { echo "<div class='text-center'>--- {$field['separatorType']}
---</div>"; }
}


Dave said: We'll include that in V 3.07 and also enable the "Field Label" field so you can manually specify a field
label to be displayed in the field editor as well if desired.



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service