Skip to content

Instantly share code, notes, and snippets.

@Neo1981
Last active December 17, 2015 15:09
Show Gist options
  • Select an option

  • Save Neo1981/5629535 to your computer and use it in GitHub Desktop.

Select an option

Save Neo1981/5629535 to your computer and use it in GitHub Desktop.
This is code for applying a custom message when a site hits capacity.
<!-- Written by: Nadeem Ramjan on 5/22/2013 -->
<!--Step 1: Add the followin above the "MetronDiv"-->
<div id="CustomCapacityMessage">
<p>
We apologize but the capacity for this meeting has been met.<br/>
Please contact <A href="mailto:[email protected]">[email protected]</a>
</p>
</div>
<!--Step 2:Add the following to the the bottom of the template-->
<script>
if( document.getElementById("Message_MessageLabel")!=null)
{
$("#Message_MessageImage").hide(); //hide standard message
$("#Message_MessageLabel").hide(); //hide standard confirm message
$("#CustomCapcityMessage").show(); //show custom confirm message
}
</script>
<!--Step 3: Add the following CSS to the "<style>" section in the "head" of your template-->
#CustomCapacityMessage {display:none;}
<!-- Upload your file and test. With this code you can implement a custom confirmation message-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment