View Single Post
  #1  
Old 12-20-2002, 03:18 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default Detect For Non Javascript enabled users, and Warn them!

I put this in [skin1]/customer/home.tpl after my </head> tag.

Code:
<noscript> <p align="center"><FONT COLOR="#FF0000" SIZE="-1">*** ERROR JAVASCRIPT IS REQUIRED TO USE THIS SITE! ***</FONT></p> <hr size=1> <p align="center"> How to Enable/Disable JavaScript</p> The following describes how to enable JavaScripts in Internet Explorer, Netscape Navigator and AOL browsers. To disable JavaScript, follow the same step, but uncheck the JavaScript options that you set when you enabled JavaScript. 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 right. The Security settings dialog box will pop up.
  5. Under Scripting category check Active Scripting, Allow paste options via script and Scripting of Java applets
  6. Check radio boxes.
  7. Click OK twice to close out.
Internet Explorer 4.0:
  1. Select Internet Options from the View menu
  2. click the Secutity tab
  3. click Custom
  4. click Settings
  5. scroll down to locate Scripting
  6. click Enable for Active Scripting
  7. click OK, then click the Reload button
Internet Explorer 3.xx:
  1. Select Options from the View menu
  2. click Security
  3. check Enable Java Programs
  4. Click
  5. OK, then click the
  6. Reload button
Netscape 4.0 or higher:
  1. Select Preferences from the Edit menu
  2. click Advanced
  3. check in both Enable Java and Enable JavaScript
  4. click OK
Netscape 3.0:
  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
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 Java script error but, when using an external browser (i.e., Netscape or IE) this does not occur. AOL uses compressed graphics by Default. This doesn't allow Java to work while browsing inside AOL. (This also makes photos you view on web pages look less than their best.) 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. AOL 3.0:
  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.
</noscript>

This should really ALREADY be implemented into the templates on install, since 10% of the total net population has it disabled, makes x-cart for any customer browsing your site with it disabled, utterly annoyoed because x-cart is so heavily based on javascript.

I was trying to add a {php}exit;{/php} before </noscript> but it triggers anyhow. Anyone know a way to make the templates stop parsing?

Happy holidays!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote