|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Modification Name: [6.4 +] Games 2.5.1 Author(s): AllenAyres and Burak Description: Adds a game gallery to your forum Demo: https://www.ubbdev.com/ubbcgi/games.cgi Requirements: UBB 6.4+ Download Link: (1.8mb) - only the flash/graphics files (6kb) - download this if just upgrading (6kb) - download this for ubb 6.7 Credits: Josh Pettit for ubb.threads version - www.ubbdev.com Burak for extensive work on v2 Notes: This is a beta quality version, let me know how it works for you. If you have a question about it, please post a link to your installation. Install Notes: Set config options on line #22-26 in games.cgi. Upload in the directories specified in the zip, set permissions to 755 on the .cgi files and yer ready to waste hours of time on the games. History: June 8, 2003 - [1.2a] original ubb version released June 10, 2003 - [1.3] ubb subs used where possible June 16, 2003 - [1.4] cleaned up some code (unreleased) June 23, 2003 - [1.5] added ability to set to 'members only' June 24, 2003 - [1.6] optimized code a bit July 06, 2003 - [2.0] automatically scans /games folder and adds them to the index (unreleased) July 06, 2003 - [2.0.1] small bugfixes and xhtml validation work July 09, 2003 - [2.1] small bugfixes and combination of games.cgi and lib_games.cgi July 14, 2003 - [2.1.1] Burak's fix for the pages bug August 8, 2003 - [2.2] automatically determines the size of the game.swf file (unreleased) August 23, 2003 - [2.2.1] bugfixes for above Sept. 25, 2003 - [2.3] released for 6.6 December 30, 2003 - [2.4] released for 6.7 February 6, 2004 - [2.5] minor code cleanup for 6.7 February 16, 2004 - [2.5.1] more minor code cleanup for 6.7 PS: I've scored 630,347 on crashdown 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
quote: Originally posted by AllenAyres: [b]PS: I've scored 201,392 on crashdown It's no 279,014 is it? 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I keep getting an Internal Server Error. I uploaded everything into the correct directories, CHMODDed everything correctly, and whenever I try to access I get an internal server error. I've never gotten this error before, and I don't get it with the boards, I don't know what went wrong
EDIT: I ported it to css, but can't tell if that worked yet.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
go to your error log and paste the error please 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I just installed it on a new site the way prescribed and it works fine... how's it going for you? http://www.praisecafe.org/ubbcgi/games.cgi
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
[/code]I checked out that line and it's from the ColorForums hack
</pre></div></div>from within<br><br>[code]
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
make sure you have the latest modules uploaded... I believe that is part of the ubbcgi.pm file
|
|
|
|
Joined: Jan 2003
Posts: 87
Member
|
Member
Joined: Jan 2003
Posts: 87 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
where would I get this? I read the contents of ubbcgi.pm and it said to get an updated version, go to http://stein.cshl.org/WWW/software/CGI/ do I just download it and rename it ubbcgi.pm? My version is 2.56 and the latest cgi.pm is 2.93. Are they the sae thing? If not, where do I get it?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
make sure you've uploaded all files from your Modules directory 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I do have them all uploaded, I even reuploaded all of them fresh from the 6.5 zip
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
did you try to install it without 'porting it to css'?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
yeah, of course. I uploaded files straight from the zip, chmodded the cgi files to 755, and the rest into the noncgi/games folder
Don't worry about it though, I noticed something more important in my error logs that I'm gonna work on now.
|
|
|
|
Joined: Dec 2000
Posts: 78
Member
|
Member
Joined: Dec 2000
Posts: 78 |
Cool it works - Just what I need - more stress
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
weird, I commented out the one line and now have a fully functional games hack.
*goes off to ask LK importance of line*
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
cool my next goal will be a setting to allow or disallow guests from viewing/playing 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
that would be awesome, I wanted to request it, but wanted to get it to work first
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Try to uncomment the line you commented out (or just remove the "#"  ), and in games.cgi, find: (untested)
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks LK  I'll add that to the base code tonight in case others run into the same problem 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
no, it's not the best solution, because if it's in the base code you should remove "use CGI qw(:standard);" and change the line with $q = something with CGI. but I'm not sure how to change it and I can't test, so I said to add below... (which might cause a conflict and not work, I don't know)
|
|
|
|
Joined: Apr 2003
Posts: 12
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 12 |
Hey this is really cool.. Can someone tell me how to add a link to the games menu to the top nav bar. where my profile, faq etc.. sit..i looked but dont know enough cgi coding to figure it out
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
ok, thanks LK reak, you can add a link to there in your public_common.pl file, look for the mainbuttons sub routine 
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
works perfect! Thanks AA!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
no problem, glad you like it 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
hey Allen, is there any chance in the next version this will be more intertwined with the boards, ie using the mainbuttonsline instead of having to hardcode it into the games.cgi page?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
that's one of the goals 
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
works great  this will be fun, thx. 
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
Another idea, coming from someone who isn't great at editing code, is to have a Control Panel interface that allows us to add and subtract different games from MiniClip . I have one possible bug: http://ogzr.org/forum/games.cgi The code centers the contents of my menu tables on the right and left. How do I fix that? 
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
Ooooh! And if the Game page could have it's own "Who's Online"! Sorry, just thinking out loud. Still, great work AA, Josh!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
quote: Originally posted by Stilgar: Another idea, coming from someone who isn't great at editing code, is to have a Control Panel interface that allows us to add and subtract different games from MiniClip .
I have one possible bug: http://ogzr.org/forum/games.cgi
The code centers the contents of my menu tables on the right and left. How do I fix that? looking at your code, I would add align="left" in the td declaration for those tables
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
ahhhh, thanks... that could help. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Version 1.3 added to the first post... more closely uses the ubb sub routines. To upgrade, upload games.cgi and lib_games.cgi 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
For those upgrading who don't have the calendar or the mod_wordlets installed, just comment out the require lines toward the top of games.cgi [code][/code]
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
cool, updated... thanks.
What and where do I edit to make the table with the games width="100%" ?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
how do you mean? the index or each individual game? Either way, you'd be editing inside games.cgi 
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
the table that the games are listed in as a link. Now that you reminded me, the table that the game is viewd in while playing would be great too. Thanks AA. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
table width for those are set in your styles templates.. I beliave they are 95% for most. What are you seeing different?
|
|
|
|
Joined: Jan 2003
Posts: 87
Member
|
Member
Joined: Jan 2003
Posts: 87 |
AllenI want to add the game link with the other UBB links at the top of the forum (i.e. login, register, search, faq, etc.). which file do I edit to do this? I thought it was the public_forum_summary.pl or public_common.pl, but I can't seem to find the line(s) to do this. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
[/code]that's if you have the Wordlets Mod hack, if not
[code] Allen, this version is so much better, the css only included changing cells,no real hard stuff. Where do I go to change my mainbuttonsline?, it's smaller on the games page compared to everywhere else on my board
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I'm using standard_title_table from public_common.pl (~ line #191), font size is set at one in there. Hopefully I'll get the members-only thing done soon 
|
|
|
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
|
|
|
|