Hi there,

I've just installed Drupal 6.9 and phpfreechat 1.2. After many troubles eveything seems going right. But now I need to install a block showing permanently a chat box in the right side of my site. How can I do that?

Thanks a lot

:D

A.

Comments

mm167’s picture

just 1 issue ..
how big (width) is your block?

u may need 300px for chat message ..but that will be too big as a sidebar block.

vaphab’s picture

You create a page with chat. (ex title: Node name)

In Home » Administer » Site building / Add block
Body ->
"

$node_result = db_query("SELECT * FROM {node} WHERE title = 'Node name');
while($node = db_fetch_object($node_result)){
  $node = node_load($node_result->nid);
  print(node_view($node));
}

"

OR simply

  $node = node_load(node number of the chat node);
  print(node_view($node));

Some parameter is missing...