SubDevo
Administrator
Creator of LSD...
Posts: 109
|
Post by SubDevo on May 9, 2009 3:59:21 GMT -5
Guests Cannot View Profiles by SubDevoTested in IE, FF, Opera and Safari. You may want to look at this code for an enhanced version! Preview: Just log out and try to view someones profile! This code prevents guests from checking out YOUR members. Is it really any of their business? hmm... Ok folks, in my opinion, this is one of the better "Guests Cannot View Profiles" code out there! When a guest clicks a profile link, they are presented with a blank page and a popup message. You may edit this line: var eMsg=" Sorry, Only Members have Permission to Access this Area."; Put whatever message you wish to be displayed to those pesky guests! Enjoy! Michael Location: Main Footer<script type="text/javascript"> <!-- /* Guests Cannot View Profiles by SubDevo */ /* Main Footer - Please leave this header intact. Do not repost. */ /* [url]http://lsdp.proboards.com[/url] */ var eMsg="Sorry, Only Members have Permission to Access this Area."; if(location.href.match(/action=viewprofile/)&&pb_username=="Guest"){ var tb=document.getElementsByTagName("table"); for(x=4;x<tb.length;x++){tb[x].style.display="none";} alert(eMsg); } // --> </script>
|
|