vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Hidding A Boards Header & Footer From Guests

[F] Hidding A Boards Header & Footer From Guests - Posted By dog199200 (dog199200) on 24th Feb 08 at 10:08am
Can i possibly get a code that will allow me to hide the header and footers of a select board from guests. I'm asking for this because i have a chatroom and i don't want guests to see it when they click into the board. Please don't tell me to just hide the board from guests because that don't work they can still see the headers and footers of that board...if it helps just in case you will have to edit the chatroom code, here it is:

Code:
 
  1. <center>
  2. <script type="text/javascript">
  3. <!--
  4. if(location.href.match('http://deluxeanimeforum.vforums.co.uk/board/chatroom/')){
  5. document.write('<applet code="Client.class" codebase="http://client11.addonchat.com/current/" archive="scclient_en.zip" width="600" height="425" alt="Java Chat Software - AddonChat" MAYSCRIPT>');
  6. document.write('<param name="room" value="288071">');
  7. document.write('</applet>');
  8. }
  9. // -->
  10. </script>
  11. </center>
 

Re: Hidding A Boards Header & Footer From Guests - Posted By Graham (amusedtodeath) on 24th Feb 08 at 10:54am
Let me get this right...you want to try to hide the source code from people, or just allow the board to be hidden from guests?

Re: Hidding A Boards Header & Footer From Guests - Posted By dog199200 (dog199200) on 24th Feb 08 at 10:58am
i want it so that guest cant view the header or base of a select board.

http://deluxeanimeforum.vforums.co.uk/board/chatroom/

ok if you clicked the link, you should have seen a chat room. Well i want it so thaty guest can see that, only people that are logged in can see it..

Re: Hidding A Boards Header & Footer From Guests - Posted By Graham (amusedtodeath) on 24th Feb 08 at 11:10am
Right. The easiest way really would be to disable access to guests unless some of the coders can come up with a better idea {Unsure}

Re: Hidding A Boards Header & Footer From Guests - Posted By dog199200 (dog199200) on 24th Feb 08 at 11:15am
i have disabled access to guests, but the headers and footers still show...

Re: Hidding A Boards Header & Footer From Guests - Posted By Michael (wrighty) on 24th Feb 08 at 12:12pm
how's this:

Code:
 
  1. <center>
  2. <script type="text/javascript">
  3. <!--
  4. if(vf_username != 'guest' && location.href.match('http://deluxeanimeforum.vforums.co.uk/board/chatroom/')){
  5. document.write('<applet code="Client.class" codebase="http://client11.addonchat.com/current/" archive="scclient_en.zip" width="600" height="425" alt="Java Chat Software - AddonChat" MAYSCRIPT>');
  6. document.write('<param name="room" value="288071">');
  7. document.write('</applet>');
  8. }
  9. // -->
  10. </script>
  11. </center>
 



I think htat's what yo uwant.

Re: Hidding A Boards Header & Footer From Guests - Posted By dog199200 (dog199200) on 24th Feb 08 at 12:56pm
awesome that works