vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Hidding A Boards Header & Footer From Guests - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
[F] Hidding A Boards Header & Footer From Guests (24th Feb 08 at 10:08am UTC)
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>
 
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 40
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Hidding A Boards Header & Footer From Guests (24th Feb 08 at 10:54am UTC)
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?
dog199200
Guest
Re: Hidding A Boards Header & Footer From Guests (24th Feb 08 at 10:58am UTC)
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..
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 40
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Hidding A Boards Header & Footer From Guests (24th Feb 08 at 11:10am UTC)
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}
dog199200
Guest
Re: Hidding A Boards Header & Footer From Guests (24th Feb 08 at 11:15am UTC)
i have disabled access to guests, but the headers and footers still show...
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Hidding A Boards Header & Footer From Guests (24th Feb 08 at 12:12pm UTC)
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.
dog199200
Guest
Re: Hidding A Boards Header & Footer From Guests (24th Feb 08 at 12:56pm UTC)
awesome that works
 Printable View

All times are GMT+0 :: The current time is 2:06pm
Page generated in 0.1996 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums