|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Modification Name: Games 2.6.1 - Integrated Author(s): Ian Spence Description: Adds a game gallery to your forum Difference between this and Allen's version:This version is completely integrated with your UBB. Using who's online, you can tell what game a person is playing. This also uses the spider friendly links. Wordletized, so you can change names of games. (ie, Allen's mod had games' names in this format: "rigelianhotshots", whereas mine has "Rigelian Hot Shots" I've added the requested link at the top of forums. 2.6 adds use of cached pages and the PHP acclerator 2.6.1 adds the ability to restrict game access to members who can access certain forums. Also fixes the bug that allowed unregistered users to play games with the accelerator pages even if disabled in the .cgi pages Demo: http://www.alforadmin.com/ubb/ultimatebb.php/games.html Requirements: 6.7+ Credits: Allen and Burak for the original code. LK for the code for sorting. Josh Pettit for ubb.threads version - www.ubbdev.com Download Links: Current Version - Use if upgrading or first install (1.8mb) - only the flash/graphics files Download both zips if this is your first install.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
|
|
|
|
Joined: Apr 2004
Posts: 21
Junior Member
|
Junior Member
Joined: Apr 2004
Posts: 21 |
I followed the instructions in your "Games Install" .txt and nothing appears in my forums for the games. I must be missing something. Also I assumed that "image" directory would be uploaded to "modules" in my CGI directory and that games would go in to my non-cgi directory. Is this right? Thanks!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
clear the cache 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
remember that the game files and images go in the same folder.
Also, you need to update the paths at the top of ubb_games.cgi
|
|
|
|
Joined: Apr 2004
Posts: 21
Junior Member
|
Junior Member
Joined: Apr 2004
Posts: 21 |
Originally posted by Ian Spence:
remember that the game files and images go in the same folder.
Also, you need to update the paths at the top of ubb_games.cgi
I'm afraid that I am not following you. I cleared the cache and now the games show up. 4 of the games are showing up and working perfectly while the remaining 4 are not. I get a can't find message and their titles are messed up. I'm confused why half work and half do not.
|
|
|
|
Joined: Apr 2004
Posts: 21
Junior Member
|
Junior Member
Joined: Apr 2004
Posts: 21 |
Ok so I was able to get all of the games to work by chaning their file names on my server. There was a discrepency with regards to the names that were being called when clicking on their respective links and what the actual names of the games were from the download. Now I'm trying to figure out how to correct the issue of their titles being off within my game index in the forums.
|
|
|
|
Joined: Apr 2004
Posts: 21
Junior Member
|
Junior Member
Joined: Apr 2004
Posts: 21 |
I had to go in to vars_wordlets_games.cgi and change the names to the correct file names in order to fix the titles within my forums. All is well just thought I'd share the fix with other who may be having issues with this mod.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Actually, I just updated the zip with the correct file names.
Should fix the issues
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK, so I downloaded this one, and I seem to have similiar problems to Hamr. 4 games show up and work just fine (Battleship, Rigelian Hot Shots, Sheepish, and Smashing).
The other 4 games show up like this, $vars_wordlets_games{crash}, $vars_wordlets_games{flash}, $vars_wordlets_games{paint}, and $vars_wordlets_games{rocketman}.
These last 4 do not work when you click the links initially but by changing the name of the game files, you can make then work. However, I'm still stuck with the $vars_wordlets_games game names... Any ideas? Thanks in advance...
P.S. I looked in vars_wordlets_games.cgi but I'm not savvy enough to figure out what I need to change.
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
You have to add the games to vars_wordlets_games.cgi to have the wordlet show; it's liek any standard wordlet on your boards.
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Originally posted by Gizzy:
You have to add the games to vars_wordlets_games.cgi to have the wordlet show; it's liek any standard wordlet on your boards.
You must think I know what I'm doing...  You give me a lot more credit than I deserve. Can I get the wordlets for dummies version please? Thanks!
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Open the file, copy the line from one of the other games, and change the last part to the name of the file minus the swf (you'll get the hang of it)
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK, I opened vars_wordlets_games.cgi and this is what I have below. I tried to make a correlation between the games that worked, the file names, and what was showing on the games page. %vars_wordlets_games = ( q!crashdown! => q!Crashdown!, q!battleships! => q!Battleships!, q!flashman! => q!Flash Man!, q!smashing! => q!Smashing!, q!rocketmandemo! => q!Rocket Man!, q!sheepish! => q!Sheepish!, q!stressgame! => q~Stress Relief! Paintball~, q!rigelianhotshots! => q!Rigelian Hot Shots!, File names battleships.swf - *WORKING* bg1.swf *Displays as $vars_wordlets_games{rocketman}* crashdownwm.swf *Displays as $vars_wordlets_games{crash}* flashmanwm.swf *Displays as $vars_wordlets_games{flash}* rigelian_hotshots.swf - Displays correct name, but error "Sorry I can not find the game 'rigelianhotshots' you requested!" rocketmandemo.swf sheepish.swf - *WORKING* smashing.swf - *WORKING* stressgame.swf *Displays as $vars_wordlets_games{paint}* This would almost all seem to make sense about what to do except for Rigelian Hotshots where it's listed in the code as q!rigelianhotshots! => q!Rigelian Hot Shots! and diplays correctly but the file and/or link name is wrong. So what is it I do where? Just trying to understand so that I can one day move past these kinds of questions. Thanks again...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Ah... In that case, some of your Wordlets aren't matching. In other words, the script is looking for $vars_wordlets_games{rocketman}, but since $vars_wordlets_games{rocketman} doesn't exist in the Wordlets file (it's actually supposed to be $vars_wordlets_games{rocketmandemo}, which does exist) then it won't display as it should. Any clearer? If not, don't worry. This is what the part of vars_wordlets_games.cgi that you posted should look like: %vars_wordlets_games = ( q!crash! => q!Crashdown!, q!battleships! => q!Battleships!, q!flash! => q!Flash Man!, q!smashing! => q!Smashing!, q!rocketman! => q!Rocket Man!, q!sheepish! => q!Sheepish!, q!paint! => q~Stress Relief! Paintball~, q!rigelianhotshots! => q!Rigelian Hot Shots!, 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Freaking awesome. It worked. Thanks so much for your help Gizzy and CTM!
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Was mainly chris lol... But you're welcome none the less... See, now that you've done it, isn't it friggen easy?
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Trust me, I couldn't have done it without CTM's help. I have a long way to go before I can say it's easy. Without the detailed instructions of what to do, I'd be very lost. If things don't match up exactly from instructions to what I have in the code, I get nervous.
So far I've installed 13 hacks and various small design changes and I learn a little something on every one. I greatly appreciate all the help that's been given to me by everyone along the way.
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Updated to the new 2.6 version with new features.
Now uses the cache, so there should be much less server load. Uses PHP acclerator, which reduces server load even more, and compresses the page The games are now sorted by wordlet, not file name.
To upgrade, upload ubb_games.cgi, do the steps for ultimatebb.php, and do the new step in ubb_lib.cgi(it is marked)
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
I have a question... Could this hack be implemented for one forum only, or installed in such a way as to only be accessible via a certain link (i.e., not be available board-wide)? I have a separate private forum and I'd like this be only available there. Any suggestions on how I would go about doing this?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
So you're saying that you only want people who've been given access to Forum X be given access to the games?
I'll look into this. No promises though
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Ian, how about a referrer line?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
couple problems with that. one: we've learned from the upload script that you can't use the $ENV{REFERRER}. Not only that, but even if I were to use a form, it could easily be bypassed by anyone who viewed this topic.
I could do a password, but I don't wanna have to set up a cookie system.
So I'm back with checking permissions the normal way.
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
"So you're saying that you only want people who've been given access to Forum X be given access to the games?"
Short and sweet, yes. That'd be ideal.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
New Version 2.6.1 Fixes a bug that allowed guests to play even if you disabled that. Adds the ability to restrict access to members who have access to certain forums. You can choose multiple forums. To upgrade: Redo the "really big" step in ultimatebb.php Upload the new ubb_games.cgi Set the forums for which you want access permissions for in both ultimatebb.php and ubb_games.cgi. (This is explained in the files.) Leave the arrays empty to disable this feature. You can edit the new variable in ultimatebb.php to make it members-only // Set to 1 if you only wish logged in users to play games $RequireUserLogin = 1;
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
Thanks Ian, you rock! I'll get this installed ASAP! 
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
Erm... I can't download the 1.8MB games zip...?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
There are two
if(preg_match("/^(ubb|f|t|p|daysprune|hardset|start_point|category
in ultimatebb.php - you don't specify after which one |show|page needs to be added. First, second, both? Thanks.
|
|
|
|
Joined: Mar 2001
Posts: 172
Member
|
Member
Joined: Mar 2001
Posts: 172 |
OK, I think I got it work (just used it in the first instance).
Also, the game names in vars and game file names are still half wrong. Had to do a lot of renaming...
|
|
|
|
Joined: Jan 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Jan 2003
Posts: 28 |
I'm baaaaaccccck! (been pimped out by my consulting company for a while).
Sorry Ian. Great app from the demos but I can't seem to get my "upgraded" board running. I went from 6.4.whatever to 6.7.1 and tried to reinstall all the major hacks. This one just keeps eluding me though. I got it to the point where I get an "image/size.pm" error and can't get any further. (Get some "Sorry, can't find the game..." errors too).
Giz should remember I don't do much in the way of programming but I have managed to dig my way through a couple of the hacks already.
Am I missing a required hack like the CP Mods hack or something? I don't seem to have the size.pm file anywhere.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Size.pm is in the zip file. The games need to be renamed, but I do not have access to that zip to rename them, so you'll need to rename them yourself. Check earlier in this thread for working names
|
|
|
|
Joined: Jan 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Jan 2003
Posts: 28 |
Already renamed the games. Like I said, I have been up and down this one trying to get it to work. I will take a closer look at the zip. Doesn't surprise me that I missed it. I was trying to slip it in to my upgrade and was moving a little too fast I guess.
I have also set this up as a MultiHack file if anyone is interested. I will obviously have to fix it now.
Thanx for the quick response Ian.
|
|
|
|
Joined: Jan 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Jan 2003
Posts: 28 |
Thanx. Got it working once I opened my eyes... Can't believe I missed the pm file.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Don't worry about it, we've all done it (a few times hehe)...
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
I upgraded to the new version on this hack and it seems that unregistered users can still play games even though I have $RequireUserLogin = 1; in ultimatebb.php. Any ideas? Thanks in advance...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
if it's set to 1, it forwards the user to the cgi script if they're not logged in. The script then needs to also be set to registered only
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Uhh, OK. How do I do that? 
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
in ubb_games.cgi where it says so
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|