This tutorial describes how you can connect your users' wordpress accounts to the chat.
This tutorial applies to version 2.2.6 and later. If you have an earlier version, please refer to this tutorial.
In this mode of operation, when a user visits your site and logs in, they will be simultaneously signed in to the chat with the same user name (and avatar) as their site account.
This mode is best suited to a larger site, where your visitors are accustomed to logging in. For a small site, with only a few visitors, it is not recommended to use this mode.
Also, this is only going to work if your user accounts are being managed by the default wordpress software. If you are using some other system of user registration and account management, it will not work.
Ok, here are the steps that you must take to set up the link, you should already have FCChat Installed and running before proceding:
1) First, sign in to wordpress with the account you use for administration.
2) Next, go to a web page on your site and click "Open ChatCenter". Sign in to the chat with your FCChat administrative account.
3) Click on your screen name and click 'mod' to go to the FCChat administration panel.
4) Once in the administration panel, type in a secret key where it says, 'Set secret key' and press enter. You may choose any secret key you wish. A good secret key is both long and hard to guess.
5) Next, where it says 'CMS Type', select wordpress. Where it says 'Administrative account', enter the name of your wordpress administrative account. This must be the account you signed in as in step one.
6) After this, you must open the file fcchat/proxies/fcchat_wordpress_proxy.php with a text editor. Within this file, set the secret key parameter to match the value you entered in step 4, as follows:
define('SECRET_KEY', 'OqO,X
and set accordingly.
7) Next, open the file fcchat/config/config.js with a text editor
8) Find the variable forum_proxy and set it exactly as follows:
forum_proxy: window["fc_chat_path"] + "proxies/fcchat_wordpress_proxy.php",
9) Find the variable startText adn set it as follows:
startText:"To begin chatting, please <b>Sign In</b>",
10) Now load up a page on your web site with your browser. You may have to refresh the page a couple of times in order your the new settings to 'catch'.
11) Ok, your done!
If you want to go back to the 'default user registration mode', simply revert the changes to the config file as follows:
forum_proxy: "",
startText:"To begin chatting, press the <b>Open Button. </b>",
You will now be able to access the FCChat administration panel with your wordpress administrative account. (The account you designated in step 5)
