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.
Options

Theme hooks should not effect the admin area

edited December 2010 in Vanilla 2.0 - 2.8
We have a cached header file from our main site that we inject in to the Vanilla Forums. This header already has some css and js files included, so we removed the jquery.js file, via the theme hooks file.

This theme file should not be loaded by the admin control panel.

<?php if (!defined('APPLICATION')) exit(); class MyThemeHooks implements Gdn_IPlugin { public function Setup() { return TRUE; } public function Base_Render_Before(&$Sender) { $Sender->RemoveJsFile('jquery.js'); } } ?>
Sign In or Register to comment.