Node template chat link
QTChat Views example node template, insert the chat link "Chat with user".
The example with the usage of the function qtc_chat_link()) works. But, better is to use an view to display the "Chat with user" link. It's better, trust me.
Example
The used view qtchatlink as simple views example are attached.
<?php
// $Id: node.tpl.php,v 1.17.2.2 2010/06/19 19:50:54 jarek Exp $
...
//$link_text = t('Chat');
//$cat_link = qtc_chat_link($node->uid, $node->name, FALSE, $link_text, TRUE);
$cat_link = views_embed_view('qtchatlink', 'default', array($node->uid));
?>
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
<div class="node-header">
<?php if (!$page): ?>
<h2 class="node-title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
<?php endif; ?>
<?php if ($submitted): ?>
<div class="meta"><?php print $submitted ?> <?php print $cat_link ?></div>
<?php endif; ?>
The advantage of using the view also has a disadvantage.
It must be formatted many HTML elements to display the chat link not in an separate content line. A very good idea in this situation is to use additionally the Semantic Views module.