****************************************************************************** ****************************************************************************** * MOD NAME: Category Minimizations 6.6 * ****************************************************************************** * DESCRIPTION: Allows Administrators to minimize categories * ****************************************************************************** * BY: Weird Al * * DATE: November 3, 2003. * * VERSION: 0.9999999 * ****************************************************************************** * REQUIREMENTS: 6.6+ * * COMPATABILITY: 6.6+ * * TESTED ON: 6.6.1 * ****************************************************************************** * FILES MODIFIED: cp2_categories.pl, cp2_forums.cgi, vars_wordlets_cp2.cgi * * NEW FILES: None * ****************************************************************************** ****************************************************************************** * DISCLAIMER: By using this mod, the user implicitly agrees that they * * are willingly modifying any and all files at their own * * risk. Should any errors occur either as a direct or * * indirect result of said modifications the user agrees not * * to hold Infopop Corporation or any of the individuals * * listed above accountable. * * * * * * IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO * * MODIFY PRIOR TO MODIFICATION!! * * * * * * FOR MORE TIPS AND TRICKS FOR USE WITH THE ULTIMATE BULLETIN BOARD * * PLEASE GIVE US A VISIT AT: * * * * http://www.ubbdev.com * * * ****************************************************************************** ****************************************************************************** In vars_wordlets_cp.cgi FIND: q!categories_t_header_name! => q!Category Name!, ADD AFTER: q!categories_t_header_hide! => q!Minimize Category!, In cp2_forums.cgi FIND: $vars_cats{$one}->[1] = $in{"cat-$one" . "-name"}; $vars_cats{$one}->[1] =~ s/\|\^/\| \^/g; ADD AFTER: if($in{"cat-$one" . "-hide"} == 1) { $vars_cats{$one}->[4] = $in{"cat-$one" . "-hide"}; } else { $vars_cats{$one}->[4] = "0"; } Find: $in{returnpage} = "categories"; ADD AFTER: (Thanks Chris) &ClearSummaryCache; In cp2_categories.pl FIND: