WordPress.org

Forums

Quick Chat
[resolved] How to php embed (8 posts)

  1. littleantz
    Member
    Posted 3 years ago #

    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/

  2. Marko-M
    Member
    Plugin Author

    Posted 3 years ago #

    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!

  3. littleantz
    Member
    Posted 3 years ago #

    Thanks.. it works.

    CSS fits well. Although I made some adjustments.

    Does this logs every chat on the DB?

  4. Marko-M
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, everything including IP adress of message authors is in wp_quick_chat table inside your wordpress database.

  5. littleantz
    Member
    Posted 3 years ago #

    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

  6. Marko-M
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for support, wish you all best :)

  7. littleantz
    Member
    Posted 3 years ago #

    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

  8. Marko-M
    Member
    Plugin Author

    Posted 3 years ago #

    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. If you don't care about chat rooms you just use 'default'. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Quick Chat
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags