![]() |
Word Scramble Game
This word scramble game is a modification of Kyttias's HiLo game! ~courtesy of Kyttias Word Scramble Game http://i1290.photobucket.com/albums/...pswnetlzoj.png Demo: JSBin Preview Download: Compressed Folder View game at yoursite.com/wordscramble Please upload these files: games/.htaccess games/wordscramble/sendscore.php games/wordscramble/wordscramble.php games/wordscramble/wordscramble.css games/wordscramble/wordscramble.js wordscramble.php classes/class_cookies.php (replace the original file) view/wordscramble.php Create this table if you haven't: phpMyAdmin->SQL->paste Code:
CREATE TABLE IF NOT EXISTS `adopts_games` ( The script runs games/wordscramble/wordscramble.js not games/wordscramble/wordscramble_non.js. wordscramble.js is obfuscated for security: Re-obfuscate Edited Files Here. This game uses three filler words to unscramble! Don't forget to add more! To do so, edit the arrays at lines 8 and 40 in wordscramble_non.js. Then, obfuscate the code and paste it into wordscramble.js. |
Er, ok, something's definitely not right. As soon as I submit the answer it tells me game over, see you tomorrow, and says I have 0 plays left for today (though I've only played once), and then if I refresh the page it resets and says
"Plays Left Today: of 20" Not updated my currency amount at all, though I guarantee I am getting the answers correct. The only thing I changed in the files would be the words available to unscramble. It's also not updating at all anywhere in the database, despite me now having attempted to play 4 times. Even with the 100% original files it's still having this error. |
*bangs head on table*
I forgot one more thing... I recently posted a code replacement for the class cookies file in the hilo thread. Please replace your original file with that? Sorry, Ill do a proper thread update when I have access to my computer. |
Oh dear, I tried that and it resulted in this;
Catchable fatal error: Argument 2 passed to Registry::set() must implement interface Resource\Native\Objective, instance of Cookies given, called in /home/catisserie/public_html/classes/class_mysidia.php on line 237 and defined in /home/catisserie/public_html/classes/class_registry.php on line 198 |
Quote:
PHP Code:
|
Okay, it seems to be working so far...hopefully the reset tomorrow works as well (since that's where I was running into major issues with Kyttias's game script).
Thank you, Wallie :) Edit; Just a note, all of my users have had to log out and then log back in to get it to work correctly. |
Quote:
|
Uploaded the files, tried to visit the game, I get this message;
http://prntscr.com/a445x7 |
Error Message
Quote:
Hope this helps. |
Quote:
|
This one does the same exact thing as Kyttia's hi-lo game-- if you get it correct, it malfunctions and stops working
|
It's really weird two of you are having issues when I know three or four of us are using it actively on our own sites without issue... I almost want to ask if you guys are using a certain browser? (I develop mostly in Chrome, but my gf tests everything in FireFox.) Do the JSBin previews in both our threads present the problem for you?
|
The JSBin preview is perfectly fine, and I am using Google Chrome. Many of my users are experiencing the issues, sadly (and they use a wide range of browsers). However, the HiLo game has been working fine since the most recent update of it.
|
I use firefox; I tested it on the jsb preview, andd it works perfectly fine.
|
Works perfectly. Thank you so much for providing this.
|
I also had the problem with it not working correctly but after clearing my cookies it fixed itself. That might be an issue with some people?
|
I needed to put jQuery in my template to make it work, that might be the problem for others
|
Tested this now that I have jQuery in my template and it seems to be working so far. I'll have to wait out the time-stamp to know for sure.
EDIT: After waiting out the time stamp I had issues where I just could keep replaying it but not ever receive a reward. I just replaced the sendscore.php file with that from the HiLo game, changed "HiLo" to "Word Scramble" and now it's working perfectly! |
All times are GMT -5. The time now is 06:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.