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.

Hook to hook all pages BUT the dashboard

SheriffenSheriffen
edited October 2010 in Vanilla 2.0 - 2.8
Hi!
I'm using a module to control my entire footer (works awesome, recommended!)
But I'm trying to find the hook to get it to show on every page in the entire site, including my own written applications EXECPT the admin pages.

Because if I do
Base_Render_Before
I get my footer in the dashboard as well.
Tagged:

Comments

  • TimTim Operations Vanilla Staff
    if ($Sender->Application == 'dashboard') { return }

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Thanks!
  • Actually it didn't work very well cause all the signin pages and search etc are within the dashboard application. However I found a solution that seems to work:
    if (!in_array('Garden.Settings.Manage', $Sender->RequiredAdminPermissions)) { //Enter code }
Sign In or Register to comment.