Forum Sitebox Blocking players from accessing the game

Discussion and help relating to the PlayerIO webpage and Facebook app hosting solution, Sitebox.

Blocking players from accessing the game

Postby cjcenizal » May 18th, 2011, 1:35 am

I'd like to create a whitelist of beta testers to only allow certain people to access the game. I've been trying to create simple if expressions using the Sitebox markup in my index.html page, like so:

Code: Select all
{% if fb_user_id is 'WhiteListedID' %}
   {% swf src='game.swf' width=760 height=635 id='game' AllowScriptAccess='always' %}
{% end %}


Obviously I'm still kind of clumsy with this syntax. :) Am I going about this the right way? Can you suggest the best way of doing what I'm trying to do? Thanks.
cjcenizal
Paid Member
 
Posts: 115
Joined: March 29th, 2011, 12:31 am

Re: Blocking players from accessing the game

Postby Oliver » May 19th, 2011, 1:25 pm

Hey,

Most likely you'll want to do it inside the flash file somewhere, where you have a full programming language. I've seen solutions that store banned/blocked users in BigDB and load that from the client.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Blocking players from accessing the game

Postby cjcenizal » May 19th, 2011, 4:53 pm

Oh, good idea. Thanks Oliver!
cjcenizal
Paid Member
 
Posts: 115
Joined: March 29th, 2011, 12:31 am


Return to Sitebox



cron