In a custom page template, I have tried embedding the recommended drupal html code:

<style>
.drupalchat-embed-chatroom-content {height: 550px !important;}
</style>
<script type="text/javascript">
Drupal.settings.drupalchat.embed = "1";
Drupal.settings.drupalchat.ur_hy = "1";
Drupal.settings.drupalchat.embed_msg = 'Type your message here. Press Enter to send.';
Drupal.settings.drupalchat.embed_online_user_text = 'Online Users';
</script>
 
<div id="drupalchat-embed-chatroom-0" class="drupalchat-embed-chatroom-container"></div>

and the recommended php code:

<style>
.drupalchat-embed-chatroom-content {height: 550px !important;}
</style>
<script type="text/javascript">
if(typeof iflyembed == "undefined") {
  iflyembed = {};
  iflyembed.settings = {};
  iflyembed.settings.ifly = {};
}
iflyembed.settings.ifly.embed = "1";
iflyembed.settings.ifly.ur_hy = "1";
iflyembed.settings.ifly.embed_msg = 'Type your message here. Press Enter to send.';
iflyembed.settings.ifly.embed_online_user_text = 'Online Users';
</script>
 
<div id="drupalchat-embed-chatroom-0" class="drupalchat-embed-chatroom-container"></div>

but neither option displays the chat window. The default chat room does display however.

Comments

darklrd’s picture

Status: Active » Fixed

Hi there,

This embed code works when you are using iFlyChat Servers as your polling method.

Please visit us at iflychat.com for further discussion related to this.

Thanks,
Shashwat

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.