Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 12 1 2 3 11 12
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Mod Name / Version: Games Arcade Deluxe v1.9

Description: Games Arcade with tournament play. I have included 5 games. the rest can be found around the web.. As the versions change rerun the instarcade.php script to update any variables that may have changed.

## I was gonna charge for this mod but I decided instead to make it so that if you find it useful you can donate to the "Send me back to college fund"

to donate click Game Arcade v1.8

or go to Paypal and send to me at [][email protected][/]


Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites: UBBT 6.5

Author(s): scroungr

Date: 03/14/05

Credits: Me, Myself, and I, Ian Spence, Allen Ayres

Files Altered: /languages/english/showprofile.php, /languages/english/online.php, showprofile.php

New Files: A directory chock full of files for the arcade

Database Altered: Yes adds new field to users table

Info/Instructions: Read the enclosed instructions

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


[:"red"] Differences from Last Version[/]
From 1.8
*updated to work with 6.5.2
*LOTS of html/xhtml bugfixes
Fixed:
From v1.6
* Added categories.
* Added ability to import ibproarcade, v3arcade, and shadowarcade games.
* added marque to showflat.php for games won.

From v1.5
* Sorts alphabetically now.
* Saves games correctly.
* Changed some wording in admin panel to make things easier
* removed miniimage and made it all under one gif so use the largest
* made highscores pull username and highscores from gamesessions table
From v1.4
* Global Variables fixed in instarcade.php and arcadeadmin.php
* avatar in stats now shows the user you are looking at yours
Attachments
119058-Arcade1.8.zip (0 Bytes, 725 downloads)

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Glad you decided to release this! One thing, there are no files in the admin direcotry.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
had to have something for you to pay for j/k I updated the file.

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Okay, it says the DB is altered in your post but there is nothing in the instructions for it. Also, I am getting headers already sent when I bring up arcade.php. Could it be because I am still on 6.4?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmm could be since I built it around 6.5 and the install script actually modifies the database. I will need to see your setup send me a PM with some info so I can check it.

Sponsored Links
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Sweeeeet! Up and running no sweat!

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
installed on 6.2.3 and running - THANK YOU!!!!!

Very simple issues...
in the two included edit files, i had to change...

Code
<br />// Require the library<br />require ("/home/ctadmin/public_html/ubbthreads/includes/hack.inc.php");<br />$config['iip_call'] = 1;<br />require ("$thispath/arcade/languages/{$myprefs['language']}/arcade.php");<br />


to...
Code
<br />// Require the library<br />require ("../main.inc.php");<br />$config['iip_call'] = 1;<br />require ("../arcade/languages/${$config['cookieprefix']."w3t_language"}/arcade.php");<br />


and the admin path to the config is changed to "../../main.inc.php"

Everything else was PERFECT - I especialy like your attention to details in the install script... AWESOME WORK!!!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
When trying to add a game, there is no submit button.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I took out the avatar line from the stats page since it always showed the user's avatar of who was viewing the page and not the person you were viewing:

<td width="1" nowrap>$avatar</td>

I would like to change the order in which the games appear, but haven't found that part yet.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
This is only the 1.4 Version and still needs some work. If I find the time I will update it to I think version 1.8 which I am running locally..

Sponsored Links
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Buy me a Chainsaw for this big arse Evergreen I need to Chop Down Fund"


LMAO!!!

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
does 1.8 address the weird tables?

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Nice job bud. I really like this one and now that I've gotten a faster connection, I think I'll put it on my site for my users. Maybe I can get more of our goofy members to visit more frequently.

There are some funky table layouts, but I can tweak that NP. I'll see if I can save a few bucks and send your way. (depending on how many diapers our friends and family supply us )

Can you recommend a site to get some more compatible games?

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
For the record, I sent the $25 up front - a bargin considering what I am sure was a heck of an effort to get done. Chop away!

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Ill have to wait and hope for the next one. Im on 6.5b4 still. (I dont want to have to re-do all the mods untill the 6.5 final comes out.)

I dont have this in shoprofile.php (6.5b4)
Code
 <img src="{$config['images']}/addtobook.gif" align="top" alt="" /><br />$addresslinkstart<br />{$ubbt_lang['ADD_BOOK']}$addresslinkstop 

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I put the code in showprofile.tmpl myself; but I'm running a modified showprofile page in 6.4. If you notice he's just adding two links to the profile page - you should be able to find a place to add them in your tmpl file that suits you.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
[]PhotoPost said:
I took out the avatar line from the stats page since it always showed the user's avatar of who was viewing the page and not the person you were viewing:

<td width="1" nowrap>$avatar</td>
[/]

Dirty fix, change the above to:

<td width="1" nowrap><img src="$userstat[avatar]"></td>

Works for me. I'm sure there's a more proper way to fix that.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I fixed it in the version 1.5 so it will display the correct avatar

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
and whats so weird about my tables? Please explain I am NOT a guru

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
[]ericgtr said:
When trying to add a game, there is no submit button. [/]

There's a missing > that causes the button not to show.

In arcadeadmin.tmpl find (This appears 3 times, the first 2 instances are broken):

Code
 <center<br /><input type="submit" name="submit" value="{$ubbt_lang['SUBMITCHANGES']}" class="buttons"> 


Notice the missing > on center. Adding it fixes the missing submit button.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
[]scroungr said:
and whats so weird about my tables? Please explain I am NOT a guru [/]

I went through and made many of the tables wider. Seemed to have a lot of empty space around them that I wanted filled. Other than that, nothing I could find.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Doh, just now realized you update to a new version.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
In arcade.tmpl, you have $tbclosed, instead of $tbclose. It's on line 17 when I view it in UltraEdit.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
okay thanx

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
In line 245 of arcade.tmpl

There is an extra "$" in the "User=$challenger[U_Number]" string

Simply search for "$$" and replace with "$"

Last edited by id242; 08/28/2004 4:09 AM.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
Int the instructions it says:
## FIND in showprofile.php

should be .tmpl

Scrougr I got past the Accept bit, all workin absoluty brill thanks for you help m8.


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
for some reason when I click on the admin link it gives an error,
Warning: main(../includes/hack.inc.php): failed to open stream: No such file or directory in /home/leetgame/public_html/arcade/admin/arcadeadmin.php on line 5

Fatal error: main(): Failed opening required '../includes/hack.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/leetgame/public_html/arcade/admin/arcadeadmin.php on line 5


everything else is working fine....

Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
replace hack.inc.php with main.inc.php


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Zackary 's post helped out. i added an extra ../ in the line.

the only thig i notice now is that when you add a game, it dont add the score anywhere. it acts like it was never played.

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
[]DrChaos said:
Zackary 's post helped out. i added an extra ../ in the line. [/]



Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Okay some are asking how to convert games and this thread here is the best link as to how to convert games that you have the author's permission to convert.

Thread by Xmorpher over at v3arcade

Also to upload games already converted if there is an included php file for that game than just

add game1.gif, game2.gif, and game.swf

and look in the php for these lines

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "games (shortname, gameid, title, descr, file, width, height, miniimage, stdimage, gamesettings, highscorerid, highscore) VALUES ('gamename', NULL, 'gametitle', 'gamedescription', 'game.swf', [:"red"]WIDTH[/], [:"red"]HEIGHT[/], 'game2.gif', 'game1.gif', 29, NULL, NULL)");

and take the values listed and plug them into the admin panel.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I just paid to the chainsaw fund and installed it here - Click Game Arcade in the menubar.

Great mod!

Now - please help me get the blackjack game installed here - must practice for my vegas trip at the end of the month.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
did anyone notice any problems with the correct "points leader" being named correctly.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
not I? does it show up anywhere? Do some database diving and make sure of the results and post back please

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Here is an example.

on the main arcade page it shows a user (cn3089) as the winner of snake with 1599.

[]http://www.leetgamers.org/images/threads/cn.jpg[/]

but when you click high scores its actually corbin that is the leader with that amount.

[]http://www.leetgamers.org/images/threads/corbin.jpg[/]

I also added the pacman game from the same site that snake came from and I used the install page. it created the code but I had to upload the files. the files didnt upload with the install page. I cant figure out how to get pacman to keep scores.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmm that is pretty weird it works perfectly on my site. Hmmm is CN3089 = Corbin or ?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
okay to add the files via the admin panel I created you need to set the fiel directories up so that images and games in the arcade directory are set to 777 and you "may" also need arcade to be set 777. try a game and see if it uploads through the admin panel correctly

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
I set the directores to what you said. Ill try to upload another game tonight when I get home. the main prob was that it didnt recgonise it to keep the scores.

like blackjack was installed here. it keeps the scores for competing

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
no changes. I changed the directories to 777 and uploaded the simon game from the same authors site. I used the admin panel to upload everything. it didnt upload the images or the swf file.

im going to remove it and start over and see what happens

Page 1 of 12 1 2 3 11 12

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
Posts: 70
Joined: January 2007
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
Morgan 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)