View Single Post
  #1 (permalink)  
Old 05-15-2008, 02:57 PM
chuckroast's Avatar
chuckroast chuckroast is online now
Pligg Developer
 
Join Date: Jun 2006
Location: PA
Posts: 2,112
Downloads: 48
Uploads: 18
Thanks: 157
Thanked 414 Times in 254 Posts
How to alert visitors using <NoScript>

This little script will alert users (that may be using the Firefox extension NoScript) that they need to disable it in order to participate properly in your Pligg site.

Place the following code in between </head> and <body> in your pligg.tpl file.
Code:
<noscript>     
<body scroll=no style="text-align: center"><center><table border="0" style="height: 100%; width: 100%; right: 1%; left: 1%; background: #F5E391;; position: fixed">
                                     <tr><td align="center">
<div style="position: fixed; font-size: 18px; z-index: 2; cursor: help; background: #F5E391; width: 480px; color: black; padding: 5px 5px 5px 5px; border: 1px solid; border-color: #000000; height: auto; text-align: left; left: 20%">
<span style="font: bold 20px Arial; color:#000000; background: #F5E391; vertical-align: middle">NO SCRIPT ERROR:</span><br> 
     Sorry this site will not function properly without the use of scripts.
     The scripts are safe and will not harm your computer in anyway. 
     Adjust your settings to allow scripts for this site and reload the site.</div> 
          </td></tr></table></center> 
</noscript>
Enjoy.
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
The Following 3 Users Say Thank You to chuckroast For This Useful Post:
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.