Code:
- <script>
- <!--
- /* Stop Guests From Viewing Profiles */
-
- var tbl = get('table','tag');
- if(location.href.match(/action\/view_profile\//) || location.search.match(/action=view_profile/)){
- for(t=6;t<tbl.length;t++){
- tbl[t].style.display = 'none';
- }
- document.write('<table width="'+vf_width+'" class="border" align="center" cellspacing="1" cellpadding="3"><tr><td align="center" class="title1">An Error Has Occurred</td></tr><tr><td class="window1">You must be logged in to view user profiles.</td></tr></table>');
- }
- //-->
- </script>