1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Duplicate Add Public Notices to the Notice System

Discussion in 'Closed Suggestions' started by Marcus, Oct 30, 2013.

  1. Marcus

    Marcus Well-Known Member

    Just add these notices to the regular notice system, so we can edit them:

    • 'notice_upgrade_pending',
    • 'notice_board_closed',
    • 'notice_confirm_email',
    • 'notice_cookies'
    Manipulating notice_confirm_email means I have to search and modify multiple phrases including a template. It is much easier to just put this into the notice system and also cleans up some of the notice code.

    PHP:

       
    /**
        * List of notice templates and phrases to load if the specified param is set
        *
        * @var array [param => template/phrase key]
        */
       
    public $notices = array(
         
    'showUpgradePendingNotice'  => 'notice_upgrade_pending',
         
    'showBoardClosedNotice'  => 'notice_board_closed',
         
    'isAwaitingEmailConfirmation' => 'notice_confirm_email',
         
    'showCookieNotice'  => 'notice_cookies'
       
    );
     
    Last edited: Oct 30, 2013
    Mike Creuzer and Liam W like this.
  2. Liam W

    Liam W Well-Known Member

    This has always been a common gripe of mine...

    Would be much nicer to have it as part of the main system (although I've migrated to the notifications system).

    Liam
     
    Marcus likes this.

Share This Page