Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Category drop-down for new topics, gone?

I've upgraded from 2.3.1 to 2.5 and I've noticed something is missing. When I create a new topic, it used to allow me to choose which category that should be assigned to but now that doesn't show.

This is how it used to look:


  • Options
    R_JR_J Ex-Fanboy Munich Admin
    edited February 2018

    This is by intention:

    But getting it back is quite simple. You only need a plugin with that method:

        public function postController_beforeFormInputs_handler($sender) {
            $sender->ShowCategorySelector = true;
  • Options

    Thank you

  • Options

    Did you do this for yourself? If you are able to attach the plugin that would be awesome as I'm not very experienced with creating plugins.

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Uploading plugins is currently not possible...

    See here for a working implementation

  • Options
    edited February 2018

    Awesome, thank you but I moved that folder into Plugins and it won't enable due to this error (debug mode):

    "Call to a member function getInfo() on null" LOCATION: S:\htdocs\public_html\forum\applications\dashboard\controllers\class.settingscontroller.php

    1447: } catch (Exception $e) {
    1448: $this->Form->addError($e);
    1449: }
    1450: >>> 1451: $this->handleAddonToggle($pluginName, $addon->getInfo(), 'plugins', true, $filter, $action);
    1452: if (count($requirementsEnabled) > 0) {
    1453: foreach ($requirementsEnabled as $requiredAddon) {
    1454: /** @var $requiredAddon Addon */
    1455: $this->handleAddonToggle($requiredAddon->getKey(), $requiredAddon->getInfo(), 'plugins', true, $filter, $action); BACKTRACE:

    [S:\htdocs\public_html\forum\applications\dashboard\controllers\class.settingscontroller.php 1372] SettingsController->enablePlugin();
    [S:\htdocs\public_html\forum\library\core\class.dispatcher.php 832] SettingsController->plugins();
    [S:\htdocs\public_html\forum\library\core\class.dispatcher.php 261] Gdn_Dispatcher->dispatchController();
    [S:\htdocs\public_html\forum\index.php 29] Gdn_Dispatcher->dispatch();
  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Please make sure that the plugins folder is named "enforcecategorydropdown ". Delete the /cache/addon.php afterwards.
    But beyond that I wouldn't know why this might fail...

  • Options

    That worked! Thank you so much for this.

Sign In or Register to comment.