[TH] Extend Post Ratings [Deleted]

Id like to remove the tab and just have a link under the members tab....

Just follow these instructions to remove the navigation link:

Currently there is no option to hide that link, however if you would like to you can modify library/ExtendPostRating/Listener/CodeEvent.php and comment out/remove the following:
Code:
        $extraTabs['postRatings'] = array(
            'title'            => new XenForo_Phrase('dark_post_ratings'),
            'href'            => XenForo_Link::buildPublicLink('post-ratings'),
            'position'        => 'middle',
            'linksTemplate'    => 'epr_navigation_tab',
        );

Adding a link to the members sub-menu just requires a minor edit to the navigation template. This Add-on has been open sourced so anyone is free to add support for that if they wish :)

Jake
 
Got the below error and it shut down the bbs.


An exception occurred: Invalid model 'Dark_PostRating_Model' specified in /home/hmforum/public_html/library/XenForo/Model.php on line 192

  1. XenForo_Model::create() in ExtendPostRating/Listener/CodeEvent.php at line 7
  2. ExtendPostRating_Listener_CodeEvent::templateHook()
  3. call_user_func_array() in XenForo/CodeEvent.php at line 73
  4. XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 285
  5. XenForo_Template_Abstract->callTemplateHook() in XenForo/Template/Abstract.php(265) : eval()'d code at line 585
  6. eval() in XenForo/Template/Abstract.php at line 265
  7. XenForo_Template_Abstract->_renderInternal() in XenForo/Template/Abstract.php at line 191
  8. XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
  9. XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 124
  10. XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 639
  11. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
  12. XenForo_FrontController->run() in /home/hmforum/public_html/index.php at line 13
 
This also breaks our forum with the above error code had to uninstall add-on to be able to get the board back up a simple disable doesn't work
 
Back
Top Bottom