I have a chat room that the chat activity box shows up fine, and I can click on the "chatting link" just fine, however, the button to open a popup window won't work. I would also like this to show up where the mission statement goes, so that it is always on the top of the every page. Is there a way to make this happen?

<center><input type="button" name="B1" value="Live Chat" onclick="window.open('http://ohs77.suesman.net/Chat/index.php','Live Chat', 
'width=600,height=400,location=no,menubar=yes,scrollbars=yes')" border="0" type="image"><br>

<iframe name="FRAME1" src="http://ohs77.suesman.net/Chat/chat_activity.php" width="250" height="100" scrolling="auto" frameborder="1" ></iframe>
</center>

This is the code I am currently useing and have it set up as a block currently on the right sidebar, when created I did make sure I selected full html input type. The button code works fine on a NON drupal site, what is the issue with drupal and how do I correct it?

Thanks for any information.

Comments

keith.smith’s picture

While a block will allow you to set a "Full HTML" input format, the mission text area on the Site Information page does not allow that "out of the box", as far as I know.

Plus, the mission statement is only going to appear on the front page anyway (and not on other pages) so that might not be what you want anyway.

Of course, with a bit of code editing in your theme, you can create a new block region, assign your chatroom block to that region, and have that block region display at the top of your page (or really, anywhere you want).

You can start at http://drupal.org/node/29140 to learn more about regions. Good luck!

--keith

keith.smith’s picture

And one other option, which is not quite as flexible. Keep in mind that if you edit your page.tpl.php, you can just as easily insert html (like what you have pasted above) directly into the page.tpl.php file itself. While this is easy, it comes with several tradeoffs: (1) you have to deal with the stuff you add or edit in page.tpl.php each time you need to update your theme to a new version. (2) if you switch themes, you'll have to make this change in the page.tpl.php file of every theme you use. (3) I haven't looked in detail at the html you are using here and can't speak to it specifically, but you need to be aware of any potential security concerns of using it.

The more "Drupalish" thing to do might be to use it in a box set to Full HTML like you are doing, or if you need it in a different location, add a new region to your page.tpl.php/template.php and add the block to that region, as I described above.

--keith