[MOD] No Javascript Message

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

[MOD] No Javascript Message

Post by Raven »

/*************************************
Title: No Javascript Message [MOD]
Version: 1.0
Author: Raven
Demo: Image
Download: See instructions below
Website: N/A

Short description:

This small 2 min modification allows you to show your visitors that HESK requires both javascript and cookies to be enabled. Note: the user will not see anything if javascript and cookies are enabled as they should be. See screen shot here for more information.

Follow these instructions to add this mod to your version of HESK.

1. Open hesk_style.css in notepad and find:

Code: Select all

BODY {
	background-color: #f3fef4;
	color: black;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	margin-left:0;
	margin-right:0;
	margin-top:0;
	margin-bottom:0;
}
2. Directly below the above code add:

Code: Select all

.NoJSAlert {margin:1em; border:1px solid #f00; padding:.5em; color:#f00; text-align:center;}
3. Save hesk_style.css
4. Open header.inc.php and find the following:

Code: Select all

<table border="0" cellspacing="0" cellpadding="5" class="enclosing">
<tr>
<td>
5. Replace the above code with:

Code: Select all

<table border="0" cellspacing="0" cellpadding="5" class="enclosing">
<tr>
	<td><noscript><p class="NoJSAlert">NOTE: Many features on this website require Javascript and cookies.<br />Both can be enabled via your browser's preference settings.</p></noscript></td>
</tr>
<tr>
<td>
6. Save header.inc.php

Thats it, all done :) - Now whenever anyone views your website with javascript or cookies disabled they will get your message.

Only a small alteration but a worthy one in my opinion.


*************************************/
Post Reply