The Arcive of vBulletin Modifications Site. |
|
is this possible / modification request: loading SWF from alternative location Details »»
|
|||||||||||||||||||||||||||
|
is this possible / modification request: loading SWF from alternative location
Developer Last Online: Oct 2015
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, Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
hy.
In your skin search: Code:
<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>
|
|
#3
|
||||
|
||||
|
Quote:
Thanks, I will use an if to check for the IP and provide the alternate location
|
![]() |
|
|