I have been trying place a chat on my site, http://www.cigardiary.com, where groups of cigar smokers can gather to chat. There were a number of modules dedicated to chat. One of them, PJIRC looked promising, but the client threw a security violation when starting up, and I didn't want to subject my folks to clicking off a security violation each and every time they fired up the client.
Then I found LightIRC.com who produced a Flash chat client that was pre-integrated into their irc.lightirc.com server. I was thinking that I would need to write a module to do it, but then I got another idea.
Step 1: Create a custom node type.
I created a node type called LightIRC Chat. This allows you to create a custom node template that only applies to the chat node type.
Step 2: Create your custom node template.
My template is called node--lightirc_chat.tpl.php and contains the following code:
print $node->nid; " class="
print $classes;
clearfix"
print $attributes;
>
print render($title_prefix);
if (!$page && $title):
endif;
print render($title_suffix);
<?php
if (!$logged_in) {
print "Please log in to use the Chat.";
} else {