Log in

View Full Version : is this possible / modification request: loading SWF from alternative location


admin0
12-23-2006, 08:06 AM
Hi,

:: Please move this to the appropriate forum if this is not the one.


My forum is http://www.nepalhub.com/ and the server is in the USA.
50% of my users are from abroad and 50% of them are from Nepal.

The members from Nepal, to play the games, the image is loaded all the way from the server in the USA (latency 850ms). I also have a server here locally which is accessible in under 100ms from most of the users here.

I want to know if it is possible to load the SWF game files from my local server here in nepal for those who visit from Nepal.

Scores are to be submitted to the server in the USA .. just the flash served from the local system


I have a simple .txt file of all the IP ranges that are local to Nepal, which I can also insert to the database.

I want to know if something like this is possible, and how much might it cost ?


Thanks,

robb9
12-23-2006, 02:08 PM
hy.

In your skin search:


<embed src="./arcade/{$game['gname']}.swf?tgame=0&pn_gid={$game['gid']}&pn_license={$game['license']}&pn_checksum={$game['checksum']}&pn_domain={$game['domain']}&pn_uname={$game['username']}" width="{$game['gwidth']}" height="{$game['gheight']}" bgcolor="#{$game['bgcolor']}" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer/" flashvars="location=./&gamename={$game['gname']}" menu="false"></embed>


You should change location embed . try.

admin0
12-24-2006, 07:40 AM
hy.

In your skin search:


<embed src="./arcade/{$game['gname']}.swf?tgame=0&pn_gid={$game['gid']}&pn_license={$game['license']}&pn_checksum={$game['checksum']}&pn_domain={$game['domain']}&pn_uname={$game['username']}" width="{$game['gwidth']}" height="{$game['gheight']}" bgcolor="#{$game['bgcolor']}" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer/" flashvars="location=./&gamename={$game['gname']}" menu="false"></embed>


You should change location embed . try.


Thanks,
I will use an if to check for the IP and provide the alternate location

:)