View Single Post
  #4  
Old 07-27-2006, 05:12 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default

Quote:
Originally Posted by Eddie Hillegers
I thought about commenting it out but that doesn,t get rid of the
no javascript messages in the productpages, that's where i tell them
how to switch on javascript. so just to be absolutely sure "if there is
somebody out there who switched of javascript" i did this
in auth.tpl and authbox.tpl


Code:
{if $usertype eq "C"} <TR> <TD class="VertMenuItems" colspan="2" align="right"> {if $js_enabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if}

that way it only shows up when javascript is switched off.

Cheers Eddie

WHY isn't this an automatic, "everyone must do this" mod?

Thanks a zillion for figuring this one out.

I use my wife as a test site... she doesn't know what javascript is, let alone if it is on or not on her iBook. I can assume that my customers barely know how to turn on their computer and I am grateful that they figured out how to get to my site. I will assume most everyone has js enabled, and for the few that don't, they know exactly what they're doing (and why they disabled it). "js off" is not a default on any brand name browser that I know of...

Once again, the geeks (er, programmers) decided that this warning needs to be visible to all... but the customers couldn't care less. So this little bit of code takes the clutter away from 99% of the customers, and it makes the site less "geeky".

Eddie, you ROCK!

Thanks,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote