The Arcive of vBulletin Modifications Site. |
|
Can I change games directory? Details »»
|
|||||||||||||||||||||||||
Hi,
Thanks a million for this incredible gift of yours. ![]() My question is this, can I tell the script to use a different (outside) directory for installing games? Like give it a different path... Thank you. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
if you edit the files..
Like I have my games installed to a different dir called /arcade/games instead of /arcade example.. in the arcade.php you'll find Code:
function pnFlashGames_getChecksum($file){
$file = "arcade/".$file.".swf";
if($fp = fopen($file, 'r')){
$filecontent = fread($fp, filesize($file));
fclose($fp);
return md5($filecontent);
}else{
return false;
}
}
Code:
function pnFlashGames_getChecksum($file){
$file = "arcade/games/".$file.".swf";
if($fp = fopen($file, 'r')){
$filecontent = fread($fp, filesize($file));
fclose($fp);
return md5($filecontent);
}else{
return false;
}
}
2nd example Code:
$dirr = PATH."/arcade"; Code:
$dirr = PATH."/arcade/games"; Code:
value="./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']}" />
Code:
value="./arcade/games/{$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']}" />
and your 2 skin_ files have around 4 places to edit.. there is like 10 in your admincp in your arcade.php file if you go ahead with this do it on a test site .. and back up your DB and files If you attempt this on your live site |
![]() |
|
|