12.02.2013 Views

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If that is not appropriate for your site, you can modify the above to only<br />

obtain a Pass Ticket (and add a <strong>ChatSpace</strong> Members table record) for users<br />

that click the Our Chat Site link.<br />

To add a new link on the web site <strong>with</strong> single sign-on, that only adds<br />

members when they actually click the chat link, add the following JavaScript<br />

and HTML code.<br />

1. Add the following JavaScript to the web page:<br />

<br />

function SSO<strong>ChatSpace</strong> {<br />

// Set the form's userid from a session variable<br />

containing the userid the user signed on <strong>with</strong><br />

//<br />

document.sso<strong>ChatSpace</strong>Form.nick.value = "";<br />

document.sso<strong>ChatSpace</strong>Form.pass.value ="";<br />

document.sso<strong>ChatSpace</strong>Form.submit();<br />

}<br />

<br />

Where you replace i5wu9456grfs$faw <strong>with</strong> the password for<br />

SSO_ACCOUNT, which is provided to you at the end of the SSO installer.<br />

2. Add the following HTML to the web page to define the link:<br />

Our Chat Site<br />

<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!