Title: [Plugin: Quick Chat] How to php embed
Last modified: August 20, 2016

---

# [Plugin: Quick Chat] How to php embed

 *  Resolved [littleantz](https://wordpress.org/support/users/littleantz/)
 * (@littleantz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/)
 * Hi,
 * I have a custom page where I want the quick chat to appear. Can you tell me how
   to embed quick chat from page template file like. my_page.php
 * Thanks
 * [http://wordpress.org/extend/plugins/quick-chat/](http://wordpress.org/extend/plugins/quick-chat/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Marko-M](https://wordpress.org/support/users/marko-m/)
 * (@marko-m)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106352)
 * Hi, I haven’t really tested, but this should work:
 * `echo quick_chat_display_chat(500);`
 * The 500 is chat history window height in pixels, you can put your wanted height.
   Just be careful not to place your chat in funny place because it by default takes
   CSS appearance from where you’ve placed it. Hope it works fine for you, I’ll 
   try testing more when I find time and put it in FAQ section 🙂 Cheers!
 *  Thread Starter [littleantz](https://wordpress.org/support/users/littleantz/)
 * (@littleantz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106405)
 * Thanks.. it works.
 * CSS fits well. Although I made some adjustments.
 * Does this logs every chat on the DB?
 *  Plugin Author [Marko-M](https://wordpress.org/support/users/marko-m/)
 * (@marko-m)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106411)
 * Yes, everything including IP adress of message authors is in wp_quick_chat table
   inside your wordpress database.
 *  Thread Starter [littleantz](https://wordpress.org/support/users/littleantz/)
 * (@littleantz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106413)
 * Sounds great.
 * In that case I will look forward for admin interface to review logs of chats 
   via admin or via protected post.
 * Great stuff you have here.
 * Goodluck and thanks
 *  Plugin Author [Marko-M](https://wordpress.org/support/users/marko-m/)
 * (@marko-m)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106416)
 * Thanks for support, wish you all best 🙂
 *  Thread Starter [littleantz](https://wordpress.org/support/users/littleantz/)
 * (@littleantz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106522)
 * Hi,
 * Did you change how to php embed? Mine is now having this warning.
 * `Warning: Missing argument 2 for quick_chat_display_chat(), called in /home/wp-
   content/themes/mcgiwebcast_t2_es/page-livestream.php on line 44 and defined in/
   home/wp-content/plugins/quick-chat/quick-chat.php on line 705`
 *  Plugin Author [Marko-M](https://wordpress.org/support/users/marko-m/)
 * (@marko-m)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106523)
 * Quick Chat has chat room support now so this function call needed to change. 
   Here is new:
 * `echo quick_chat_display_chat($height, $room);`
 * The first argument is old one, the height. Second argument is string with chat
   room name. So for predefined chat room you do like this:
 * `echo quick_chat_display_chat(500, 'default');`
 * You can read more about chat rooms inside [FAQ](http://wordpress.org/extend/plugins/quick-chat/faq/).
   If you don’t care about chat rooms you just use ‘default’. Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: Quick Chat] How to php embed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-chat.svg)
 * [Quick Chat](https://wordpress.org/plugins/quick-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-chat/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Marko-M](https://wordpress.org/support/users/marko-m/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-quick-chat-how-to-php-embed/#post-2106523)
 * Status: resolved