Integration Setup
If you have website with existing userbase, you can easily setup your shoutbox to use data from your userbase. With integration, only members logged in at your site can view and use your shoutbox.
Getting started
To get the integration working, you simply need to pass two parameters via GET request, appended at the end of your shoutbox URL.
Codice:
Example
...ix.com/?rev_admin&name={name}&code={code}
The variables needed to be passed and their explanations are as follow:
Codice:
{name}
Member name to be passed onto the shoutbox.
{code}
MD5 value of {name} + {unique code}, to verify that user is coming from your site.
{unique code}
The unique security code for your shoutbox is 0bd868fdb0
An example of how the shoutbox would be called with the name tester:
Codice:
Example
.../?rev_admin&name=tester&code=24750f304ce92fd79cb0752057c915b1
... where 24750f304ce92fd79cb0752057c915b1 is MD5(tester0bd868fdb0).
After setup, be sure to set your access control to Integrated mode for this to work.
Access Control
PHP Function
If you're using PHP, you can add the following function to your script for quick integration. The function will produce correct parameters to be appended at the end of your shoutbox URL.
Codice:
unction shoutmix($name = '') { return htmlspecialchars( '&name='.rawurlencode($name) .'&code='.md5($name.'0bd868fdb0')); }
Then alter your shoutbox HTML codes by adding the following codes (after your shoutbox URL):
Codice:
Example
...mix.com/?rev_admin<?=shoutmix($name);?>" width="...
Replace $name with the variable that holds the name of your member, as retrieved from the database.