|
Post by careless on Feb 6, 2005 16:20:49 GMT
<script language="JavaScript"> //Disable guests viewing certain pages //by careless,keep header intact and do not repost without permission //carelessrabbit@gmail.com var iTD = document.getElementsByTagName("TD")[2]; function disable(page){ if(iTD.innerHTML.match(/Welcome Guest./i) && iTD.innerHTML.match(/Please/i) && location.href.indexOf("action="+page+"") != -1){ alert("This Feature is unavailable to guests \n Please Sign in or Register") window.location="/index.cgi" }} disable("search") disable("viewprofile") </script>
this code goes in the main footer and works in firefox as far as i remember, a bit basic but hey.. im basic just edit/add/delete the disable("PAGENAME") parts, only wrks with the ?action=PAGENAME type pages.
|
|