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

XF 1.5 Message via index.php

Discussion in 'Styling and Customization Questions' started by CabCon, Feb 23, 2016.

  1. CabCon

    CabCon Member

    Hello,
    I have a simple question. How it is possible to set a message via editing the index.php just over the generell site:
    [​IMG]

    At the red line via editing the index.php.


    Simple my site have a login problem so I want to set a message for my users. But to test and work on the fix my site should be also up. So I just want to put a message upper my site for the users.

    I tried this but It just displays the text without the website.
    Code:
    <?php
    echo "MESSAGE ERROR";
    $startTime = microtime(true);
    $fileDir = dirname(__FILE__);
    
    require($fileDir . '/library/XenForo/Autoloader.php');
    XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
    
    XenForo_Application::initialize($fileDir . '/library', $fileDir);
    XenForo_Application::set('page_start_time', $startTime);
    
    $fc = new XenForo_FrontController(new XenForo_Dependencies_Public());
    $fc->run();
    
    
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. CabCon

    CabCon Member

    I know but I can't login to my pannel. I have a sign up problem which I want to notice to everyone!
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    We can't recommend any other solutions. Wouldn't your time be better spent trying to solve that problem?
     
    Amaury likes this.
  5. CabCon

    CabCon Member

Share This Page