vForums Support > System Improvements :: Suggestions :: > Personalise Maintenance Mode

Personalise Maintenance Mode - Posted By Vanquish (scott1707) on 16th Aug 10 at 9:29pm
The ability to customise the maintenance mode message would be a nice little addition.

Eg. This forum is offline and in maintenance mode.
We are offline due to updates and plan to open on 'date'

Suppose it could either be some sort of code request or a built in feature of vforums.

{Cheesy}

Edit: fixed typos.

Re: Personalise Maintenance Mode - Posted By Graham (amusedtodeath) on 17th Aug 10 at 10:45pm
I quite like this idea.

Re: Personalise Maintenance Mode - Posted By Marc (cr0w) on 19th Aug 10 at 3:30am
I like this idea as well. Here it is in code form...

<script type="text/javascript">
<!--
/* Change Maintenance Mode Text */

var mm_title = "Forum Be Down"; // New Title
var mm_desc = "Yo homeslice, this forum's down right now. Come back later fo sho."; // New Description

// No more editing...
var mm_tbl = document.getElementById("maintenance_mode");
mm_tbl.getElementsByTagName("td")[0].lastChild.innerHTML = mm_title;
mm_tbl.getElementsByTagName("td")[1].lastChild.innerHTML = mm_desc;
//-->
</script>


Global footers {Smile}

Re: Personalise Maintenance Mode - Posted By Vanquish (scott1707) on 19th Aug 10 at 11:09pm
Works perfectly.
Only question is, how would you add a link to the new description. Using <a href="....">Link</a> seemed to prevent the code from working.

Re: Personalise Maintenance Mode - Posted By dog199200 (dog199200) on 20th Aug 10 at 12:10am
don't use " within the code at all or escape it like so: <a href=\"....\">Link</a> by adding a \ before any " in the code your telling the code thats its meant to be ignored as a closing to that function.