CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | [F] [Marc] Support Please (6th Apr 08 at 3:31pm UTC) On Code : Stop Guest From Viewing Profile | | Marc the code works , but when i go to my profile and i Modify it and i go to click Modify Profile it logs me out and it says "You must be logged in to view user profiles" ??
I took the code out to see if it was the code or a vforums System bug And i did the same things i stayed login, it is the code that's logging me out .
I have the code out right now .
 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>
-
| |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: [Marc] Support Please (6th Apr 08 at 3:36pm UTC) | | try this instead:
<script> <!-- /* Stop Guests From Viewing Profiles */
var tbl = get('table','tag'); if(location.href.match(/action\/view_profile\//) && vf_username == 'guest'){ 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> | |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: [Marc] Support Please (6th Apr 08 at 3:42pm UTC) | | That worked Wrighty thank you . | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: [Marc] Support Please (6th Apr 08 at 4:07pm UTC) | | Glad to help! ^_^ | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: [F] [Marc] Support Please (7th Apr 08 at 2:15am UTC) | | Oops, I forgot to do a username check!
Also, I had non-SEO URL checking in mine which makes it more secure as it can still be accessed using old URL's, Wrighty. | |
rroll.to— Shorten a link, rickroll your friends. |
|