Skysa features Social Apps like Chat, Instant Messaging and so on. While Skysa does offer a built in Member Registration System, you can configure your website to support integrated membership. Currently if you are using Ning or Spruz for your website, you will notice that Skysa is already integrated with these platforms. In this post I will show you the code you need to add to your website in order to setup custom membership integration.

When Skysa is running on your website our system looks for the code below in the your webpage to discover information about the user logged into your website.

<script type="text/javascript">
var _SKYAUTH = {
loginUrl:'REPLACE WITH FULL LOGIN URL',
memberNick:'REPLACE WITH CONTEXT CODE TO GET MEMBER USER NAME',
memberId:'REPLACE WITH CONTEXT CODE TO GET MEMBER ID',
profileUrl:'REPLACE WITH MEMBER PROFILE URL',
photoUrl:'REPLACE WITH MEMBER PHOTO URL'
};
</script>

The code above needs to load on every page of your website and output information for the user that is logged into your website. If the fields are empty we assume no user is logged in.

Field Details:

  1. loginURL (Required): This is the full URL to the page your member would use to Login (http://mydomain.com/login). If a visitors of your website uses a feature that requires login we will redirect them to this page to login.
  2. memberNick: Displays the member public display name in Apps like Chat, Comments, IM and so on
  3. memberId: Is the unique identifier (GUID) for the user on logged in.
  4. profileURL: This allows us to create the link for the members profile. (http://mydomain.com/john
  5. photoUrl: The full URL path to a members profile pic (100px in width recommended). If the member has no profile photo you should response a generic photo for us to use. Always set this with some value.

We hope this helps get you started with using custom membership with your CMS platform.

NOTICE!! We are looking for developers to design plugins for Dupal, Dophine, and Joomla that adds Skysa Bar and Setups Custom Membership. If interested email help at Skysa.com