WordPress.org

Forums

Quick Chat
Allow Transcript Saving for Non Admins (2 posts)

  1. jhoylman
    Member
    Posted 3 years ago #

    I was able to make the link visible to non admins by removing the check to make sure that $quick_chat_user_status == 0. But then the link only opened the chat page again...it is missing the Javascript code to pop up the transcript. I am not very good at Javascript...only PHP. Can anyone help me accomplish this task?

    http://wordpress.org/extend/plugins/quick-chat/

  2. Marko-M
    Member
    Plugin Author

    Posted 3 years ago #

    Hello jhoylman,
    non admin users have no nonce for transcript ajax call (security measure), also ajax call in Javascript isn't registered for non admins (again security measure). I've tried to write you detailed instructions but I realized it's too complicated cause you need to modify php to give non admins transcript nonce, shuffle transript click event code between javascript quick-chat-power.js and quick-chat-core.js files and modify javascript in multiple places. I made it all that way to make sure non admins couldn't trick code into doing admin only actions. On top of it you need to minify .js files into .min.js files using google closure compiler for performance or run your site in debug mode otherwise. You can put something into my paypal bucket and I'll package it for you. Good luck!

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

No tags yet.