I tried with the code I know from another forum
<span id="hidden_content" style="display: none;">Code for Chat Box here</span>
But then it dissapears all together even when I'm logged in. Is there another code that can be used on vforums? Or am I doing something wrong.
First of all what chat box is it?
That is rather simple:
Global (If you want it to show on every page) or Main (if you only want it to show on the main page) Header:
Code:
- <script type="text/javascript">
- if(vf_username != "guest"){
- get('chatbox','id').style.display = '';
- }
- </script>
Put this in the header/footer where ever you want it to appear:
Just got to edit where it says *Chat Box Code here* with the code for your chat box.
This will go a check to make sure the user is actually logged in. There is NO restriction based on the type of chatbox it is outside of their own ToS![]()
Edit: Make sure you place the first part at the very bottom of your footer.![]()
Broken: I have updated your code to work![]()
Hmm ok, though I don't see why it wouldn't of worked before since i've done it that way for codes several times![]()
Hmm ok, though I don't see why it wouldn't of worked before since i've done it that way for codes several times![]()
get('chatbox','id').innerHTML;
Would do nothing, you haven't told it what to do with the innerHTML
Thats interesting because I've bene using it in - http://www.divineshadowsonline.com/private/forum/regmodv1.js which has a coding base off of the "Extra Registration Page" code, for page creation, that you wrote And the code works great
I just mimicked the system and added the login check
but I could of missed something, just going off of what i've seen and done in the past
my js sucks, i'll stick to PHP and .NET languages XD
Thanks a million. It helped:)
Thats interesting because I've bene using it in - http://www.divineshadowsonline.com/private/forum/regmodv1.js which has a coding base off of the "Extra Registration Page" code, for page creation, that you wrote And the code works great
I just mimicked the system and added the login check
but I could of missed something, just going off of what i've seen and done in the past
my js sucks, i'll stick to PHP and .NET languages XD
Where exactly? I don't see the same syntax in your code.![]()
The fixed code is just like the code I have been using alot on one of my forums