View Single Post
  #8  
Old 05-07-2003, 05:26 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

Perusing through the forums I discovered this simple but very nice mod. Thanks Boomer!

I implemented it using the method mickna described.

I have updated the content of the file to better reflect current browsers as well as some corrections for language, spelling, layout, and etcetera.

The following browsers are included in the information below:

Mozilla 1.X
Opera 5.X
Opera 7.X
Safari Public Beta 2 for MACOSX
Internet Explorer 3.X
Internet Explorer 4.X
Internet Explorer 5.X
Internet Explorer 5.X for MACOSX
Internet Explorer 5 for MACOS9
Internet Explorer 6.X
Netscape 3.X
Netscape 4.X
Netscape 4.X for MACOS9
Netscape 6.X for MACOSX
Netscape 7.X
AOL 3.0
AOL 4.0 and 5.0

The resulting code for a file called skin1/customer/no_javascript.tpl:

Code:
<center> <table bgcolor="white" width="80%" cellpadding="5"><tr><td> <p align="center"><FONT COLOR="#FF0000" SIZE="-1">*** ERROR *** JAVASCRIPT IS REQUIRED TO USE THIS SITE! </FONT></p> <p align="center"> How to Enable/Disable JavaScript <a name=Top></a> The following instructions describe how to set JavaScript options for: Mozilla, Opera, Safari, Explorer, Netscape, and AOL browsers.</p> <hr> <a name="Mozilla">Mozilla 1.X </a>
  1. Open Mozilla.
  2. Select Preferences from the Edit menu.
  3. Click the arrow next to Advanced.
  4. Click Scripts &amp; Plugins.
  5. Check Navigator beneath "Enable Javascript for".
  6. Click OK.
  7. Click Reload.
<hr noshade size=1><div align="right">Back to Top</div> <a name="Opera">Opera 5.X</a>
  1. Open Opera.
  2. Select Quick Preferences from the File menu.
  3. Make sure Enable Javascript is checked.
  4. Click Reload.
Opera 7.X
  1. Open Opera.
  2. Select Quick Preferences from the File menu.
  3. Make sure Enable Javascript is checked.
  4. Click Reload.
<hr noshade size=1><div align="right">Back to Top</div> <a name="Safari">Safari Public Beta 2 for MACOSX </a>
  1. Open Safari.
  2. Select Preferences from the Safari menu.
  3. Click Security.
  4. Check both Enable Java and Enable JavaScript.
  5. Close the window.
  6. Click Reload.
<hr noshade size=1><div align="right">Back to Top</div> <a name="IE">Internet Explorer 3.X</a>
  1. Select Options from the View menu.
  2. Click Security.
  3. Check Enable Java Programs.
  4. Click OK.
  5. Click Reload.
Internet Explorer 4.X
  1. Select Internet Options from the View menu.
  2. Click the Security tab.
  3. Click Custom.
  4. Click Settings.
  5. Scroll down to locate Scripting.
  6. Click Enable for Active Scripting.
  7. Click OK.
  8. Click Reload.
Internet Explorer 5.X
  1. Open Internet Explorer.
  2. Select Internet Options from the Tools menu.
  3. In Internet Options dialog box select the Security tab.
  4. Click Custom level button at bottom. The Security Settings dialog box will pop up.
  5. Under Scripting category enable Active Scripting, Allow paste options via script and Scripting of Java applets
  6. Click OK twice to close out.
  7. Hit Refresh.
Internet Explorer 5.X for MACOSX
  1. Open Internet Explorer.
  2. Select Preferences from the Explorer menu.
  3. Click the arrow next to Web Browser.
  4. Click Web Content.
  5. Under Active Content check Enable Scripting.
  6. Click OK.
  7. Click Refresh.
Internet Explorer 5 for MACOS9
  1. Open Internet Explorer.
  2. Select Preferences from the Edit menu.
  3. Click the arrow next to Web Browser.
  4. Click Web Content.
  5. Under Active Content check Enable Scripting.
  6. Click OK.
  7. Click Refresh.
Internet Explorer 6.X
  1. Open Internet Explorer.
  2. Select Internet Options from the Tools menu.
  3. In Internet Options dialog box select the Security tab.
  4. Click Custom level button at bottom. The Security settings dialog box will pop up.
  5. Under Scripting category enable Active Scripting, Allow paste options via script and Scripting of Java applets
  6. Click OK twice to close out.
  7. Hit Refresh.
<hr noshade size=1><div align="right">Back to Top</div> <a name="Netscape">Netscape 3.X </a>
  1. Select Options from the Edit menu.
  2. Click Network Preferences.
  3. Click Languages.
  4. Check both Enable Java and Enable JavaScript.
  5. Click OK.
  6. Click Reload.
Netscape 4.X
  1. Open Netscape.
  2. Select Preferences from the Edit menu.
  3. Click Advanced.
  4. Check both Enable Java and Enable JavaScript
  5. Click OK.
  6. Click Reload.
Netscape 4.X for MACOS9
  1. Open Netscape.
  2. Select Preferences from the Edit menu.
  3. Click Advanced.
  4. Check both Enable Java and Enable JavaScript
  5. Click OK.
  6. Click Reload.
Netscape 6.X for MACOSX
  1. Open Netscape.
  2. Select Preferences from the Edit menu.
  3. Click Advanced
  4. Check both Enable Java and Enable JavaScript for Navigator
  5. Click OK.
  6. Click Reload.
Netscape 7.X
  1. Open Netscape.
  2. Select Preferences from the Edit menu.
  3. Click the arrow next to Advanced.
  4. Click Scripts &amp; Plugins.
  5. Check Navigator beneath "Enable Javascript for".
  6. Click OK.
  7. Click Reload.
<hr noshade size=1><div align="right">Back to Top</div> <a name="AOL">AOL 3.0 </a>
  1. Click Prefs.
  2. Click Security.
  3. Check Enable Java Programs, if the box is blank, single click on it.
  4. Click OK .
  5. Click the browser's back button, once back, click reload.
AOL 4.0 and 5.0
  1. Click My AOL.
  2. Click Preferences.
  3. Click WWW.
  4. Click the Secutity tab.
  5. Click Custom.
  6. Click Settings.
  7. Scroll down to locate Scripting.
  8. Click Enable for Active Scripting.
  9. Click OK, then click the Reload button.
Note to AOL 4.0 & 5.0 users When using the use AOL browser, you may get a Javascript error but, when using an external browser (i.e., Netscape or Internet Explorer) this does not occur. AOL uses compressed graphics by Default. This doesn't allow Java to work while browsing inside AOL. (Additionally, this makes photos you view on web pages look less than optimal.) Do the following:
  1. Click My AOL.
  2. Click Preferences.
  3. Click the WWW icon.
  4. Click Web Graphics tab.
  5. Uncheck the box next to Use Compressed Graphics.
  6. Click OK Restart the computer.
Note that there are both 16-bit and 32-bit versions of AOL 4.0. Only the 32-bit version has full Java capabilites. <hr noshade size=1><div align="right">Back to Top</div> </td></tr></table> </center>


The code for skin1/customer/home.tpl (placed beneath the <Body> tag):

Code:
<noscript> { include file="customer/no_javascript.tpl" } </noscript>

__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote