• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Simple Drupal 5 integration question

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby pinn » Thu Feb 15, 2007 7:15 pm

Hi, I'm new to both Drupal, and phpfreechat. I have it successfully installed with beta9 on Drupal 5, and it seems to be working fine as chat functionality on given blog/story etc. posts, however I'd like to have a global chatroom and a link on the menu, but I can't figure out how to do this for the life of me. Any help is greatly appreciated!
pinn
New member
 
Posts: 1
Joined: Thu Feb 15, 2007 7:12 pm
Top

Postby phpfreechat » Fri Feb 16, 2007 9:57 am

Please ask such help on drupal forum. I'm not sure it's a phpfreechat problem.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby WhatTheFawk » Fri Feb 23, 2007 2:03 am

If you haven't gotten the answer you're looking for yet, this might help, make sure phpFreeChat is installed and the settings are set in Drupal.

1.) In Drupal go to Administer > Content Management > Content Types

2.) Go to Add Content Type, name it chat. Under Show Chat Room Settings I recommend using "Always" since in this case the Content Type of chat should always have a chat in it. By creating this new chat content type you've just created a global chat, instead of attaching the chat to another node type. :)

3.) Now go to Create Content > Chat set the title which will be the Chat Room name, and under URL Path, is where you would put the path to this chat. Put chat in the URL Path box.

4.) If you want it as a menu item also, go under Menu Settings and fill that out.

5.) Depending on clean urls being enabled or not the path to your chat will now be www.yoursite.com/chat for clean urls or www.yoursite.com/index.php?q=chat for regular.

Hope that is what you were talking about, didn't see you asking on Drupal.org so I answered here. If you have any other questions you can PM me or email whatthefawk[at]gmail[dot]com

Update[Theme]:

Almost forgot if you just do what I said you'll be using node.tpl.php's theme. You should create a new file called node-chat.tpl.php and put this in it, it's basically node.tpl.php without the submitted time and posters image.

Code: Select all
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
   
    <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
   
    <span class="taxonomy"><?php print $terms?></span>
    <div class="content"><?php print $content?></div>
    <?php if ($links) { ?><div class="links">» Links <?php print $links?></div><?php }; ?>
  </div>
Last edited by WhatTheFawk on Fri Feb 23, 2007 3:03 am, edited 1 time in total.
WhatTheFawk
New member
 
Posts: 5
Joined: Thu Feb 22, 2007 11:42 pm
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 17 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub