I am having troubles with craeting a site lock for a simple small game, Is there someone who can help me with it? I am willing to pay for it.
Printable View
I am having troubles with craeting a site lock for a simple small game, Is there someone who can help me with it? I am willing to pay for it.
Qustions about site locks seem to come in regular intervalls and the info about solutions is scattered across the forum. I'll make a simple, but effective demo, just be patient :)
Here's my site lock tutorial:
Download site lock demo
As Don Vito Corleone would say: you owe me nothing, but someday I may ask you a favour... ;)
Wow how easy your tutorial is Thank you so much! you are my favorite Don!
Hope to return you some favor soon!
thanks
I've added this example to the FusionWiki Q&A database.
another question about this.
Is it possible to sitelock more sites with this tutorial or is it only for one site.
It's only for one site. You could check each paragraph of the String Object manually or create a fastloop to test for multiple sites.
You could test each instance and set a counter to 1 if it's true.
Use this one: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=184788#Post1847 88
It supports unlimited site locks, and site blocks.
You said the following thing:
It is advised that you upload this to where you want your game/app to be hosted before you impliment this into your apps, and then use the host it gives you in the string (on the second line).
I have to deliver a game with 5 urls that are sitelocked.
If I read it right the widget needs to be uploaded to the site first and then implemented into the app.
Looks impossible because it's not my site I am doing this for but a game portal.
Nope, you just need to change the conditions to match the domains you want to lock your game/app to.
sorry for being a naab lol but if i would have a 3 sites example:
site1.com site2.com site3.com and I would want them to be the only sites who be able to play the game.
What condition should i change The editor is empty
Can't you guys just use a list object?
Store those sites in a list, then when the app is started, use Find String Exact on the current site, then if its less than 0, end the application. Not so difficult.
That sounds very good, but i'm a standard clicker not good with the calculator. would it be possible if you could make some sort of demo :?
I discovered the problem with my idea is that it wouldn't be able to use subdomains, so you guys can just fast loop through a list's items or a string's paragraphs.
Look at my example in the Wiki, it shows how to cut the relevant part of the url string returned by the Flash Object. This solves problems with subdomains.
I know, I understand that perfectly fine, I was just assuming that it returned the domain, not including subdomains. My bad ;)
If there was no substring chopping, you could use the FindStringExact of List. All I'm saying ;)
Hmm can't seem to get it work to use multiple sitelocks
Since everyone is talking about sitelock recently i am starting to think it might be best to just have a dedicated object for that. Maybe clickteam or a extension developer would be interested in making one.
It would be better than needing multiple objects to make them, you could have more advanced features also, or just use the other methods in combination with it.
Evilized: Just copy the following condition into the same event for each sitelock:
It's in event 3. Don't make it it's own event, just paste it into the same event :)Code:GetDomain$( "Flash® Player" ) <> "mmfgamer5.webs.com"
cool thanks it works!
No problem :)