XF 1.5 Message via index.php


Active member
I have a simple question. How it is possible to set a message via editing the index.php just over the generell site:

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.
$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());

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?