Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to do this?

edited March 2007 in Vanilla 1.0 Help
I want to have a category that everyone can post to, but that you dont see on the category list when reading comments. This is because I have made half an extension that lists all files that has been uploaded with the attachment add-on on a seperate page. If someone wants to upload a file to the server, but not under a specific discussion (ie. just wants file hosting), they would post it as a new discussion under the "Filehost" category, where it wont clutter up the discussions page.


  • Save this code in a file named default.php inside a CategoryHider folder. Change the two array statements in the code so they contain the category ID of what you want to hide, i.e. array('3')
    Hiding categories and still keeping posting privelages # 8

    I guess its time to build a admin control panel and upload this extension :-)
  • thanks! :) if I ever clean up the code I will post my part of the deal as an extension as well. atm its too hard coded and too specific for my need though..
  • it works great, but only for discussion list. I want to remove it from the categoryies page and the category filter panel as well.. Do you have that at hand as well? :)
  • Not off hand... but would be good options in its finished control panel.
  • i would be your first customer :P
  • For category filter add-on, add :
    if ($Category->CategoryID != '10') {
    $PanelString .= ' <li style="margin-bottom: 2px;"><span id="Category_'.$Category->CategoryID.'">'.GetDynamicCheckBox("Category_".$Category->CategoryID, 1, FlipBool($Category->Blocked), "ToggleCategoryFilter('".$Context->Configuration['WEB_ROOT']."ajax/blockcategory.php', $Category->CategoryID, ".FlipBool($Category->Blocked).", 'Category_".$Category->CategoryID."', '".$SessionPostBackKey."', ".$Context->Configuration['CATEGORY_FILTER_AUTOREFRESH'].");", $Category->Name, " style=\"margin-right: 3px;\"") .'</span></li>';
    and after
This discussion has been closed.