Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 6 1 2 3 4 5 6
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 smile
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 tipsy


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
quote:
Originally posted by AllenAyres:
[b]PS: I've scored 201,392 on crashdown tipsy
It's no 279,014 is it? tipsy

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
go to your error log and paste the error please tipsy

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


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
[/code]I checked out that line and it's from the ColorForums hack

Code
</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


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 87
Member
Member
Offline
Joined: Jan 2003
Posts: 87
Allen, You're The Greatest!!!!!

[Linked Image] [Linked Image] [Linked Image] [Linked Image]

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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 tipsy


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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'?


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Ed Offline
Member
Member
Offline
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
Offline
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 smile

my next goal will be a setting to allow or disallow guests from viewing/playing smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Try to uncomment the line you commented out (or just remove the "#" tipsy ), and in games.cgi, find:
Code
[/code]add below:[code]
(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 smile I'll add that to the base code tonight in case others run into the same problem smile


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
Offline
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 smile

reak, you can add a link to there in your public_common.pl file, look for the mainbuttons sub routine smile


- Allen wavey
- What Drives You?
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 smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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 smile


- Allen wavey
- What Drives You?
Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
works great smile this will be fun, thx. smile

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? smile

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"! laugh

Sorry, just thinking out loud. smile

Still, great work AA, Josh!

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
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? smile
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. tipsy

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 smile


- Allen wavey
- What Drives You?
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 smile

[code][/code]


- Allen wavey
- What Drives You?
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 smile


- Allen wavey
- What Drives You?
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. laugh

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?


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 87
Member
Member
Offline
Joined: Jan 2003
Posts: 87
Allen

I 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. help

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
[/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 smile


- Allen wavey
- What Drives You?
Page 1 of 6 1 2 3 4 5 6

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)