We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    is there anyway to display a message on the front end site to manager users? e.g add a menu that is hidden unless you are logged into the manager.

    thanks,
    Gareth
      • 4041
      • 788 Posts
      You could add a snippet like this to your template, or in a template variable.

      * create a snippet with the following code
      * create a chunk named ’FMM_chunk’ which has the code you want to show if the user is logged into the manager
      /or add the html directly into the $output area in the snippet

      <?php
      /*  Frontend_Manager_Message
           
      */
      $output ="";
      if(isset($_SESSION['mgrValidated']) && $_SESSION['mgrValidated'] == 1){
          // print the FMM_chunk contents
          $output .="{{FMM_chunk}}";
      }
      
      return $output;
      ?>
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 10357
        • 573 Posts
        thank you, worked like a charm grin