It works great in the newest sNews!
But a little change has been done.
Changes:
4. In function settings()
Find
echo '<p><a onclick="toggle(\'sub5\')" style="cursor: pointer;" title="'.l('a_openclose').''.l('comments').'">'.l('comments').'</a></p>';
Add before it:
# Offline status
echo '<p><a onclick="toggle(\'sub5\')" style="cursor: pointer;" title="'.l('a_openclose').''.l('offline').'">'.l('offline_maint').'</a></p>';
echo '<div id="sub5" style="display: none;">';
echo html_input('checkbox', 'offline', 'offline', '', l('offline'), '', '', '', '', (s('offline') == 'on' ? 'ok' : ''), '', '', '', '', '');
$message = retrieve('text','articles','title','Offline');
echo html_input('textarea', 'offline_mess', 'offline_mess', $message, l('offline_mess'), '', '', '', '', '', '2', '100', '', '', '');
echo '</div>';
But ive got a problem, when i change the status to ON, i cant see the page aswell, but still im logged in as admin.
What can be here the problem?
Thanks!
Dai