Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Changing the background and letters color of 'maintenance mode activated'

Asked Modified Viewed 3,252 times
J
josh1307
J
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Hi evrybody

When I run the maintenance mode, I would like to change the background and letters colors of the note in the main page: 'maintenance mode activated'
background color strip -----> black
letters color -----> white
size-font ----> 16px

Can I get some help how to do that?

Thank you

my theme is : Gillette
Edited by josh1307 on 09-04-2011 03:00,
josh1307 attached the following file:
09-04.jpg [No information available / 60 Downloads]
0 replies

6 posts

J
josh1307
J
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you very much Ankur and Mangee.
Ankur by his answer, solved my issue. Now it has been changed perfect .
God bless you all. ;) ;)
0 replies
M
Mangee
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
answered
Senior Member

Had some time so tested the actual maintenance message in the admin panel.

Change your message to this

[syntaxhighlighter brush=plain,first-line=1,highlight=0,collapse=false,html-script=false]<div style='background:#fff;color:#000;font-size:16px'>Sorry site is under maintenance.</div>[/syntaxhighlighter]

Sorry didn't know you could style the message itself.
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Try editing your styles.css of your Theme.

Look for :
[syntaxhighlighter brush=css,first-line=1,highlight=0,collapse=false,html-script=false]
.admin-message {
etc etc... Coding here !
}[/syntaxhighlighter]

But remember, this will change all the admin-message notifications in your Website !

For example : When you update your Main Settings, then it shows :
[bcolor=#ffccff]Settings Updated[/bcolor]

So that will also be changed !
0 replies
M
Mangee
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
answered
Senior Member

I just looked at several of my sites and when I went to maintenance it did not use the theme default or the theme I choose.

Check the source code on the maintenance page for theme name, check for style sheet.

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<link rel='stylesheet' href='themes/XXXXXXXX/styles.css' type='text/css' media='screen'/>
[/syntaxhighlighter]

Also looking at your picture might require a code change too. The place you point to does not have its own style class or id.
0 replies
J
josh1307
J
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you , but it dosn't solve my issue. It still remain the same
my theme is : [bcolor=#0000cc]Gillette[/bcolor]
here is the code of my the styles.css and maintenance.php :

styles.css

}

.tbl-border {
   border: 1px solid #e1e1e1;
       
}

.tbl {
   font-size: 11px;
   color: #fff;
   background-color: #000;
   padding: 4px;
}

/* theNoam mod */
.tble {
   font-size: 11px;
   color: #FFF;
   background-color: #000;
   padding: 4px;
   direction: ltr;
}

.tbl1 {
   font-size: 11px;
   color: #FFF;
   background-color: #000;
   padding: 4px;
}

/* theNoam mod */
.tbl1e {
   font-size: 11px;
   color: #FFF;
   background-color: #555;
   padding: 4px;
   direction: ltr;
   text-align: left;
}

.tbl2 {
   font-size: 11px;
   color: #FFF;
   background-color: #000;
   padding: 4px;


maintenance.php
require_once "maincore.php";
include THEME."theme.php";

if (!$settings['maintenance']) { redirect("index.php"); }

echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n";
echo "<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<style type='text/css'>html, body { height:115%; }</style>\n";

echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen'/>\n";
echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n";
echo "</head>\n<body class='tbl2 setuser_body'>\n";

echo "<table style='width:100%;height:100%'>\n<tr>\n<td>\n";

echo "<table cellpadding='0' cellspacing='1' width='80%' class='tbl-border center'>\n<tr>\n";
echo "<td class='tbl1'>\n<div style='text-align:center'><br />\n";
echo "<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' /><br /><br />\n";
echo stripslashes(nl2br($settings['maintenance_message']))."<br /><br />\n";


echo "</div>\n</td>\n</tr>\n</table>\n";

if (!iMEMBER) {
   echo "<div align='center'><br />\n";
   echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
   echo $locale['global_101'].": <input type='text' name='user_name' class='textbox' style='width:100px' />\n";
   echo $locale['global_102'].": <input type='password' name='user_pass' class='textbox' style='width:100px' />\n";
   echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' />\n";
   echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' />\n";
   echo "</form>\n</div>\n";
}

echo "</td>\n</tr>\n</table>\n";

echo "</body>\n</html>\n";

if (ob_get_length() !== FALSE){
   ob_end_flush();
}

if ($settings['login_method'] == "sessions") {
   session_write_close();
}

mysql_close($db_connect);
?>

Edited by josh1307 on 09-04-2011 02:53,
0 replies
M
Mangee
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
answered
Senior Member

If you open the file maintenance.php in the root of your domain or download look for the class's listed.

tbl-border
tbl1
tbl2

These class's are listed in styles.css file of the theme you are using.

Remember that the above class's are used many other places inside php-fusion, example the default forums of php-fusion.

You can change the colors in styles.css but be sure to check what these colors do to other parts of your site.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

M
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
J
J
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet