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~ Colorful jump to menu mod Hide dash lines in menu between categories? 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.
>> Set default colors Preview:
you have to save settings to effect on preview.
Class for "Jump to" label
Class for categories' labels
Class for boards' labels
Class for dash lines, separating each category
Class for label of the board, you are currently in

~; # Colorful jump to menu mod - end $yymain .= qq~ $txt{'521'}
my @onoff = qw/ allowpics showyabbcbutt showbdescrip maintenance guestaccess insert_original enable_ubbc enable_news enable_guestposting enable_notification showlatestmember showrecentbar showmarkread showmodify showuserpic showusertext showgenderimage shownewsfader MenuType curposlinks profilebutton autolinkurls emailpassword RegAgree emailwelcome allow_hide_email usetempfile faketruncation emailnewpass/; # Colorful jump to menu mod - next line is modified my @onoff = qw/ allowpics showyabbcbutt showbdescrip maintenance guestaccess insert_original enable_ubbc enable_news enable_guestposting enable_notification showlatestmember showrecentbar showmarkread showmodify showuserpic showusertext showgenderimage shownewsfader MenuType curposlinks profilebutton autolinkurls emailpassword RegAgree emailwelcome allow_hide_email usetempfile faketruncation emailnewpass cjthidedash cjtshowcolors cjtusespcss/; $userpic_limits =~ s/\"/\'/g; # Colorful jump to menu mod - begining $cjtjumptocls = $FORM{'cjtjumptocls'} || ""; $cjtcatcls = $FORM{'cjtcatcls'} || ""; $cjtboardcls = $FORM{'cjtboardcls'} || ""; $cjtcurboardcls = $FORM{'cjtcurboardcls'} || ""; $cjtdashcls = $FORM{'cjtdashcls'} || ""; $cjtjumptocls =~ s/\"//g; $cjtjumptocls =~ s/\'//g; $cjtcatcls =~ s/\"//g; $cjtcatcls =~ s/\'//g; $cjtboardcls =~ s/\"//g; $cjtboardcls =~ s/\'//g; $cjtcurboardcls =~ s/\"//g; $cjtcurboardcls =~ s/\'//g; $cjtdashcls =~ s/\"//g; $cjtdashcls =~ s/\'//g; # Colorful jump to menu mod - end ########## Layout ########## ########## Colorful jump to menu mod ######### \$cjthidedash = $cjthidedash; \$cjtshowcolors = $cjtshowcolors; \$cjtusespcss = $cjtusespcss; \$cjtjumptocls = "$cjtjumptocls"; \$cjtcatcls = "$cjtcatcls"; \$cjtboardcls = "$cjtboardcls"; \$cjtcurboardcls = "$cjtcurboardcls"; \$cjtdashcls = "$cjtdashcls"; Sources/Subs.pl my(@masterdata,$category,@data,$found,$tmp,@memgroups,@newcatdata); # Colorful jump to menu mod - begining my($cjtmyjumptocls, $cjtmycatcls, $cjtmyboardcls, $cjtmycurboardcls, $cjtmydashcls, $cjtmydashline); 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 # Colorful jump to menu mod - next lines of code are changed $selecthtml .= qq~ $selecthtml .= qq~$cjtmydashline ~; $cjtmydashline~; if ($data[$i] eq $currentboard) { $selecthtml .= "\n"; } if ($data[$i] eq $currentboard) { $selecthtml .= "\n"; } else { $selecthtml .= "\n"; } else { $selecthtml .= "\n"; }