Colorful jump to menu
1.0
This mod adds css classes and thus colors to "jump to" menu, found in the right bottom of the YaBB SP 1 page. It can also remove dash lines from the menu.
After installing it you have to check some options in Forum Preferences and Settings in Admin Center to enable it, you can choose to:
- hide/show dash lines between categories
- use colors
- if you check "use colors" you can choose to:
+ use css classes that are already in template.html (such as windowbg, windowbg2, windowbg3, titlebg, catbg, etc.)
+ or to use special classes for "jump to" menu (you have to copy and paste them into template.html file.)
Other explanations can be found in Forum Preferences and Settings.
Here is a preview: http://members.fortunecity.com/acedrith/
scx
mailto:paladin_of_snow@hotmail.com
Sources/AdminEdit.pl
my($snfchecked, $fls1, $fls2, $fls3, $utfchecked, $truncchecked, $mts1, $mts2, $mts3, $tsl6, $tsl5, $tsl4, $tsl3, $tsl2, $tsl1);
# Colorful jump to menu mod - begining
my($cjthidedashchecked, $cjtshowcolorschecked, $cjtusespcsschecked);
my($cjtmyjumptocls, $cjtmycatcls, $cjtmyboardcls, $cjtmycurboardcls, $cjtmydashcls, $cjtmydashline);
# Colorful jump to menu mod - end
if ($timeselected == 6) { $tsl6 = " selected" } elsif ($timeselected == 5) { $tsl5 = " selected" } elsif ($timeselected == 4) { $tsl4 = " selected" } elsif ($timeselected == 3) { $tsl3 = " selected" } elsif ($timeselected == 2) { $tsl2 = " selected" } else { $tsl1 = " selected" }
# Colorful jump to menu mod - begining
if ($cjthidedash) {$cjthidedashchecked = " checked" }
if ($cjtshowcolors) {$cjtshowcolorschecked = " checked" }
if ($cjtusespcss) {$cjtusespcsschecked = " checked" }
if($cjtshowcolors == 1) {
if($cjtusespcss == 1) {
$cjtmyjumptocls = "cjtmjump";
$cjtmycatcls = "cjtmcat";
$cjtmyboardcls = "cjtmboard";
$cjtmycurboardcls = "cjtmcurboard";
$cjtmydashcls = "cjtmdash";
}
else {
$cjtmyjumptocls = $cjtjumptocls;
$cjtmycatcls = $cjtcatcls;
$cjtmyboardcls = $cjtboardcls;
$cjtmycurboardcls = $cjtcurboardcls;
$cjtmydashcls = $cjtdashcls;
}
}
else {
$cjtmyjumptocls = "";
$cjtmycatcls = "";
$cjtmyboardcls = "";
$cjtmycurboardcls = "";
$cjtmydashcls = "";
}
if($cjthidedash == 0) {
$cjtmydashline = qq~~;
}
else {
$cjtmydashline = "";
}
# Colorful jump to menu mod - end
$txt{'521'}
~;
# Colorful jump to menu mod - begining
$yymain .= qq~
Use colors in "jump to" menu? This must be checked to see what this mod do.
Use special css sytle classes?
If the upper option is checked you have to copy and paste these lines into template.html file between <sytle> and </sytle>. Then, you can modify them as you like.
/* Jump to menu colors */
.cjtmjump { background-color: #DEE7EF; color: #000000; } /* Colors for label "Jump to" */
.cjtmcat { background-color: #6E94B7; color: #FFFFFF; } /* Colors for categories' labels */
.cjtmboard { background-color: #DEE7EF; color: #000000; } /* Colors for boards' labels */
.cjtmcurboard { background-color: #DEE7EF; color: #000000; } /* Colors for the board, you are currently in */
.cjtmdash { background-color: #DEE7EF; color: #000000; } /* Colors for dash lines, separating each category */
If the upper option is not checked, please fill out these fields or press "Set default colors" link. Write the name of the css class in the fields to use properties of that class. Class names are writen in template.html file.