Okay, I updated all the files and it's working now the initial instructions said only to re-run the instarcade.php script. Even my Blackjack is working <img src="http://www.ubbdev.com/forum/images/graemlins/yay.gif" alt="" /> <br /><br />Another quick fix on a path here.<br /><br />In both arcade.php and arcadeadmin.php<br /><br />change this:<br />require ("$thispath/arcade/languages/{$myprefs['language']}/arcade.php");<br /><br />to this:<br />require ("$thispath/arcade/languages/english/{$myprefs['language']}/admin/arcadeadmin.php");
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
hmmm {$myprefs['language']} should be english so it would be redundant? unless of course theres an english directory inside english? or your not getting the cookie setting?
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
It didn't work without that path for me so I changed it according to where the file was in the structure provided. Not sure why I wouldn't get the cookie setting if that's the case.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
hmm yeah thats strange..
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
Hi, i need some help. Im not really good with php, but anyways, when i run instarcade.php i get this error: <br /> <br />Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/4/d95285407/htdocs/ubbthreads/instarcade.php on line 311 <br /> <br />Now i imagine its something to do with my paths.....By the way im running ubbthreads 6.4....any help would be appreciated, thanks..
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
In instarcade.php<br /><br />Find this:<br /><br /><br /> echo "<br /><br /><center><font color = "red" face=\"Verdana, Arial\" size=\"2\">You must manually go in and change all gifs from gamename1.gif or gamename2.gif to gamename.gif using the larger of the two files</font><br /><br /><font face=\"Verdana, Arial\" size=\"2\">Upgrade complete! Read Installation.txt for the next step! Remember to remove this file.</font></center><br /><br />";<br /><br /><br /><br />Change to this:<br /><br /><br /> echo "<br /><br /><center><font color = \"red\" face=\"Verdana, Arial\" size=\"2\">You must manually go in and change all gifs from gamename1.gif or gamename2.gif to gamename.gif using the larger of the two files</font><br /><br /><font face=\"Verdana, Arial\" size=\"2\">Upgrade complete! Read Installation.txt for the next step! Remember to remove this file.</font></center><br /><br />";
[]DrChaos said:<br />Here is an example.<br /><br />on the main arcade page it shows a user (cn3089) as the winner of snake with 1599.<br /><br /> []http://www.leetgamers.org/images/threads/cn.jpg[/] <br /><br /> but when you click high scores its actually corbin that is the leader with that amount.<br /><br /> []http://www.leetgamers.org/images/threads/corbin.jpg[/]<br /><br />I also added the pacman game from the same site that snake came from and I used the install page. it created the code but I had to upload the files. the files didnt upload with the install page. I cant figure out how to get pacman to keep scores. [/]<br /><br />I have this problem too, but only on some games archery being one, my thought is that it depends if the user has submitted the score or not, the high score viewed next to the game is correct in the gamesessions table but not in the game table.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
actually I found a bug will post a bug fix tomorrow
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
[]Turbosport said:<br />[]DrChaos said:<br />Here is an example.<br /><br />on the main arcade page it shows a user (cn3089) as the winner of snake with 1599.<br /><br /> []http://www.leetgamers.org/images/threads/cn.jpg[/] <br /><br /> but when you click high scores its actually corbin that is the leader with that amount.<br /><br /> []http://www.leetgamers.org/images/threads/corbin.jpg[/]<br /><br />I also added the pacman game from the same site that snake came from and I used the install page. it created the code but I had to upload the files. the files didnt upload with the install page. I cant figure out how to get pacman to keep scores. [/]<br /><br />I have this problem too, but only on some games archery being one, my thought is that it depends if the user has submitted the score or not, the high score viewed next to the game is correct in the gamesessions table but not in the game table. [/]<br /><br />Me too <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /> everything else is great though <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay uploaded a new copy its installed here it does fix the hiscore issue make sure your not getting a cache'd copy look for this line in arcadeadmin.php <br /><br />for ($files=0;$files<2;$files++){<br /><br />make sure it is NOT<br /><br />for ($files=0;$files<3;$files++){
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
<img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /> that fixed the score issue but my admin shows me a blank screen now ? <br /> <br />(not thats that's the end of the world as i add games through phpmyadmin anyhoo <br /> <br /> <br />Thanks
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmm thats totally weird try doing what Eric did above and <br /><br />change this:<br />require ("$thispath/arcade/languages/{$myprefs['language']}/arcadeadmin.php");<br /><br />to this:<br />require ("$thispath/arcade/languages/english/admin/arcadeadmin.php");
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
also make sure the path in arcade/admin/arcadeadmin.php is set correctly.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
Wheres the scores fix ? the attachment is still 1.6 however its different to my 1.6 but still hasnt fixed the scores <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
see <br /> <br /> <br /> <br /> $query = " <br /> SELECT score, U_Number, U_Username <br /> FROM {$config['tbprefix']}gamesessions AS t1 <br /> LEFT JOIN {$config['tbprefix']}Users AS t2 ON t2.U_Number = t1.userid <br /> WHERE valid=1 AND $sessionclause <br /> AND gamename = '$shortname' <br /> AND score = '$currenthiscore' <br /> ORDER BY gamename ASC <br /> "; <br /> $stj = $dbh -> do_query($query,__LINE__,__FILE__); <br /> list($currenthiscore_q,$usernumber,$username) = $dbh -> fetch_array($stj); <br /> <br /> <br />if you don;t you don;t have the latest copy that is here.. <br /> <br /> <br />its getting pulled from gamesession and displaying the currenthighscore and the username associated to it thats the part I fixed it use to be seperate puylls in arcade.php so I will need more info like your URl and also create a user called threadsdev with password threadsdev so I can poke around ya know.. help a little <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
Edited by scroungr (09/07/0412:08 PM)
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
BTW it was a minor change that was suppose to be in the 1.6 zip but wasn't so I didn't change the version number only updated the proper files in the zip that I missed.
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
Thanks m8, I used the zip file just before my last post <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br /><br />my url is http://www.turbosport.co.uk user and password = threadsdev