![]() |
Already did. :)
Quote:
|
Question, for anybody who might still be reading this:
Did the original vbTetris Leaderboard hack that john did work well (or at all) with Netscape 6? I am going through fits here trying to get Netscape to send/receive variables to/from the PHP files. For example, when you play vbTetris, instead of displaying the board's name, it displays "dynamic field" and so on... I don't have tons of Flash experience, so maybe I'm just missing something minor. Did anybody get it to work? Everything works great with Internet Explorer. Thanks. |
After a lot of reading and digging around, it looks like I am going to have to give up on Netscape compatibility for the time being.
Reason: There is a known bug with Flash/Netscape when sending variables via POST. The resulting HTTP headers (which would contain the variable name/data pairs) become corrupted. The only option would be to send the variables from the SWF to the PHP file via GET, but in this case the variable info (score var and score, etc.) would be seen in the URL bar and thus easily spoofed by a malicious user. I considered adding basic encryption to the score (say, an MD5 hash) but that really isn't accomplishing much since it can be cracked so easily. There really is no way to make the transmittal of data between the SWF and PHP completely secure, but I think that by using GET we would just be inviting problems. Unless somebody can come up with a better way, I am just going to dump Netscape support for now and concentrate on getting this sucker out the door. If anybody knows more about this issue or has any ideas, please, please let me hear them. Thanks. |
If only explorer users could play, then 100 % of our visitors could.
Netscape support can always follow later when the hack is out for download. Then the reactions of the minor group netscape users can trigger support from the browserwizards. I'll stay here all night refreshing. ;) |
Yea, I basically decided that Netscape will wait.
Progress so far: I just finished recompiling "release" versions of the 5 games, with a bit more security in them (still not much though). With Netscape out of the equation, all variables are now passed via POST. I am going to start pulling code now for the install instructions. Once that is done, Lani is going to do a test-install on his site for me, and if that goes well, the whole thing will get posted. |
YAY! soon :) I can't wait until it is availible :(
|
I am working hard on getting this thing packaged right now. I am trying to do it with vbHacker but the thing keeps trashing my files. The alternative is to have you guys manually add 19 templates (!) which is not something I want to put anybody through!
|
:) I would add 19 templates :)
|
I just finished packaging it for the first time. Lanigironu is going to test-install it on his forum right now and let me know if it works or not. If all goes well, I will post it.
I *think* I got vbHacker to work correctly, in which case the installation should go pretty well. I'm sure there will be problems (always are!) but I am confident that this release does, at the very least, work correctly. I've been running it for about a week on my site, and with over 10,000 games played everything is humming along nicely. |
Can you also include a text file for those of us that like to be hands on with the code? :)
|
It looks like I am going to have to include the text file anyway -- vbHacker works for the templates but does not seem to want to do anything else -- it fails on the queries just about every time as far as I can tell, even though they work just fine from the command line.
|
Alright, the file is out there -- see the first post in this thread.
I installed the hack on my secondary test site (a clean v2.2.6 install) and it worked great, no problems. So far so good. I'm going to bed now, and will be gone during the day tomorrow, but I'll be back tomorrow evening to troubleshoot and, if necessary, do damage control. :) |
---edit--- i had a parse error but it was a bad paste in functions.php. Working now.
No errors so far........ |
Division by zero in /home/www.url/HTML/proarcade.php
--ok when a game is finished it goes straight to the proarcade.php without score, comment etc. and "view topscore board" gives the error above. All games are doing this, so i think it's a typo or direction error somewhere in the templates. --when i put in the: (Code for Query String Enter the query string to be used for the game (if applicable) after the game it displays a double url: http://www.url.com/www.url.com/proarcade.php |
I am getting the division error too.. So far everything else works great.
How can I add a different Icon by users name if they are the king of a certain game. King icon for each game. so say I am king of tetris and snake I would have 2 icons by my name 1 for tetris and 1 for snake. ? Thanks and great hack! |
Superb hack, works great for me too. :D
Only error i had was when viewing where people were online, but i just upped my old online.php Thanks again Craig |
hmmm....all went well until the allgames.sql query was run. I ran it both by source, and then also by copy/pasting. Got the same errors. Tried to run the queries one at a time, still had issues:
Quote:
Quote:
|
After the game is played, it still displays a double link and no highscore..... I've looked it over and over but can't find why it is doing this.
|
I tried the manual install of the games since the allgames.sql isn't working for me. Just working with Tetris for now.
These are the errors I get: Quote:
1) It installed the leaderboard, scoreboard fine (get the Division by '0' error that is mentioned above. 2) When I try to play Tetris, it merely hangs on me, the game doesn't pull up (the page does though). 3) The thumbnail won't upload. |
Seems to be working great, the only problem I've had is with:
PHP Code:
PHP Code:
|
Regarding the URL problems:
The hack assumes that in your vBulletin Options section, the value of "URL" is in the "http://www.yoursite.com/somedir" format. If you are having problems, make sure the URL is set up in that format and it should work OK. For those of you who *were* having problems with that, let me know what your "URL" value was so that I can fix the logic of that function. |
Quote:
It should look exactly like this: PHP Code:
|
Not sure where the slashes came from either...perhaps corrupted during download?? I don't know.
I copied pasted the above, this is what I got: Quote:
|
Have you tried uploading it with no thumbnail?
Your server looks like it has "safe mode" enabled in PHP, which is preventing fopen() from opening the temporary uploaded file. I don't have an immediate solution for that, I will have to go back and find another way to do it. I just looked at your query once again, and I see the error. This part: [sql] 'Tetris Champion', ' '$tetrisscore', [/sql] Should be: [sql] 'Tetris Champion', '#FF0000', '$tetrisscore', [/sql] I'm not sure how it could be changing the query like that. Could you be using some weird thing to cut and paste, or a weird file editor? I'm really stumped on that one. |
ack! nvm...I'm SURE this is due to not having 2.2.7. I have 2.2.6 installed and was trying to get around the upgrade. This has to be it.
I didn't want to have to upgrade because I have several hacked .php files w/ all the hacks on the site. Looks like I'll have no choice though if I wanna use this hack (which I do). I'll update sometime soon, then check the thread back. Updates are a lot of work and I just updated to 2.2.6 a few weeks ago. lol |
Here is a corrected version of proarcade.php that fixes a couple of problems from the original release:
- division by zero in top score board - URL logic problems (should be fine now) This is for Beta 1 ONLY! If you have a different version, do not use this. As of 9/1/02, the first post in this thread has been updated to include this file. |
Quote:
|
Quote:
Also I have made this change in the bit of code for fuctions.php so that I can place the text for Game Champ anywhere in the postbit, not just under the usertitle, just place $post[arcade] in the postbit template. PHP Code:
|
NTLDR: Thanks! I should have thought of that myself. In the next version that will actually look to a template, so people can change between icons/text and so on.
ALL: I have fixed both the divide-by-zero error and the URL error. They should both work fine now with no modifications. Please see a couple posts back for the corrected file (also updated the first post). Thanks! |
Quote:
Quote:
|
Thanks futureal, this is an exelent hack and if this is only Beta 1 then the final version is going to be very spectacular. Thanks for all the hard work you put into this, its a great addon for my board :D
|
Fixed.
Here is what I did for those (if any) have the same issue that I did above (which will probably be very few lol). I manually installed the games via admin cp. Did NOT reference ANY icons whatsoever because of the safemode issue. I did not get any install errors. I also changed the default dir from /games/ to /forums/games/ in the General Options for ProArcade. I believe this was addressed above already. That fixed it all. Works like a charm, no errors thus far. I'm testing now... |
Breakout: The song is good, but there is too much of a space (silence) between the end and start during the loop. Anyway to fix that?
Also, the paddle is way too dark for the black background. Also, which template is it, that allows me to type in the comments for a score? I need to edit the coloring on one of my themes, it's just way too dark, we can't see what we are typing, WHILE we are typing. It shows up just fine after we enter it, and we view the scoreboard. *edit* For the Who's Online... Is there a way to show WHICH game the members are playing? Right now, they show the link w/ an ungodly length. It'd be nice to just say: Playing Tetris Viewing Tetris Scoreboard Playing Breakout etc... |
Quote:
Quote:
Quote:
|
The hack seems to be working great but I have one problem. When I upload images for the games it adds /forum/ to the image name when there should be nothing. This is in the admin panel only, the images work fine elsewhere. Causing the images to be broken.
|
Ok found something else.
As Admin I can play all games etc.. As user or Mod you get a "you do not have permission to access this page" You are trying to access admin features etc... How do you set permissions on games ? Admins are fine everyone else is permission denied |
If someone is palying a game in the arcade and I go in the in who's online page I get this error:
Quote:
PHP Code:
|
Quote:
PHP Code:
Quote:
edit: I just looked at your site and it looks like the Champions System is working fine. I see Champion titles on users for all five games. I think your users stole two of your crowns from you without you realizing it. :) |
How many scores will be recorded? The hack has been installed for only about 4 hours or so, and in the Snake scoreboard, I have 190 rankings (scores recorded).
If there is a limit, what is it? And how do we edit that to suit our own boards needs? And if there is no limit, won't that cause the db to get pretty large? We really don't need anything more than the top 100 scores on the scoreboard. |
Quote:
usergroup 2 -- Registered usergroup 5 -- Super Moderator usergroup 6 -- Admin usergroup 7 -- Moderator If you need to change the groups, open up proarcade.php and look at the first switch(...) statement. It is pretty easy to figure out what to change. Also, make sure you have the games set to "Active" in the admin panel! Inactive games will only work for administrators (usergroup 6). A complete access-control system will appear in Beta 2 of this hack. |
All times are GMT. The time now is 04:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|