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
Glad you decided to release this!
One thing, there are no files in the admin direcotry.
had to have something for you to pay for
j/k I updated the file.
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?
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.
Sweeeeet! Up and running no sweat!
installed on 6.2.3 and running - THANK YOU!!!!!
Very simple issues...
in the two included edit files, i had to change...
<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...
<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!!!
When trying to add a game, there is no submit button.
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.
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..
Buy me a Chainsaw for this big arse Evergreen I need to Chop Down Fund"
LMAO!!!
does 1.8 address the weird tables?
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?
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!
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)
<img src="{$config['images']}/addtobook.gif" align="top" alt="" /><br />$addresslinkstart<br />{$ubbt_lang['ADD_BOOK']}$addresslinkstop
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.
[]
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.
I fixed it in the version 1.5 so it will display the correct avatar
and whats so weird about my tables? Please explain I am NOT a guru
[]
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):
<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.
[]
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.
Doh, just now realized you update to a new version.
In arcade.tmpl, you have $tbclosed, instead of $tbclose. It's on line 17 when I view it in UltraEdit.
In line 245 of arcade.tmpl
There is an extra "$" in the "User=$challenger[U_Number]" string
Simply search for "$$" and replace with "$"
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.
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....
replace hack.inc.php with main.inc.php
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.
[]
DrChaos said:Zackary 's post helped out. i added an extra ../ in the line. [/]
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.
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.
did anyone notice any problems with the correct "points leader" being named correctly.
not I? does it show up anywhere? Do some database diving and make sure of the results and post back please
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.
Hmm that is pretty weird it works perfectly on my site. Hmmm is CN3089 = Corbin or ?
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
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
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
There's a buglet on the high scores page for blackjack, seems I keep winning
That and there's an html/ tables bug on the row for DrChaos' score.
oh my. it was me and SG for a while there. I dont think it likes me anymore. i cant get past 3000
Fun game.
Though, the text is very hard to read, is it possible to increase the height and width just a bit?
ya, its set in the file when you upload it as a new game.
where did you guys get that game. I would like to try to add it and see if it works for me. the rest didnt so far..
[]
DrChaos said:ya, its set in the file when you upload it as a new game.
where did you guys get that game. I would like to try to add it and see if it works for me. the rest didnt so far.. [/]
Yeah I know it can be changed. That's why I asked.
This is working well on my site. Check the post where Scroungr talks about that thread for converting the games to work on your site. That site has many games that will work "out of the box". I've downloaded quite a few already and have some installed on my site.
I can't get blackjack to submit, I get a permission denied error but all of the other games do work. BTW I have a ton of these games from when I ran it on a vb board that are ready to go, you can also grab games from existing sites, make a couple of mods to an existing game.php file and make them your own
So if you have something specific you would like go ahead and request it and I will post it here as long as it's not on the black list.
Anyone have a MsPacMan? We have a diehard MsPacMan fan who doesn't like PacMan.
[] I've downloaded quite a few already and have some installed on my site. [/]
and they are tracking scores? wtf am I doing wrong............
Here is a list of what I have, and I have more at home..
v3 Arcade - Barb Jump
v3 Arcade - Butch Mushroom
v3 Arcade - Cat Bowling
v3 Arcade - Curveball
v3 Arcade - Flexi Combat
v3 Arcade - Ice Hockey
v3 Arcade - Mahjong
v3 Arcade - Minigolf
v3 Arcade - Minigolf v2
v3 Arcade - Missile Strike
v3 Arcade - Monkey Diving
v3 Arcade - Pinball
v3 Arcade - Pop-Up Killer
v3 Arcade - Power Play
v3 Arcade - Rotation
v3 Arcade - Seal Bounce
v3 Arcade - Squirrel Soccer
v3 Arcade - Stick Fighter (v2)
v3 Arcade - Suicide Puppy
v3 Arcade - Virus
v3 Arcade - Yeti 4
Quick question. My games are sorting by the order in which I uploaded them (ie gamesid), but the one place I could find in arcade.php where it states ORDERBY $gamesid, I changed that and it did not take.
What would you change in the code to sort by shortname instead?
[]
ericgtr said:I can't get blackjack to submit, I get a permission denied error but all of the other games do work. BTW I have a ton of these games from when I ran it on a vb board that are ready to go, you can also grab games from existing sites, make a couple of mods to an existing game.php file and make them your own
So if you have something specific you would like go ahead and request it and I will post it here as long as it's not on the black list. [/]
Simple Simon
Got mine fixed, found the shortname issue.
If anyone gets the Yeti Pentathlon working properly, let me know. Cannot seem to get it working right (won't launch to the language selector)
I think I found a bug in the arcade.. need someone that hasn;t added games but is gonna to try this.. it works on my site
hey eric
how about a zip file....
okay made some bug fixes lets see how this goes. So upload the new files and rerun instarace and pick upgrade option.
Okay I ran the new instarcade.php and upgraded, now I get this error when I go into the arcade:
SQL ERROR: Thu, Sep 02 2004 13:34:11 -0400 Unable to do_query: SELECT gameid, shortname, gamesettings, title, width, height, FILE, stdimage, highscore FROM w3t_games WHERE gameid=7
Unknown column 'stdimage' in 'field list'
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /site/name/public_html/ubbthreads/mysql.inc.php on line 133
Also on line 311 the "red" needs to be "red" or you will get a parse error.
[] result resource in /site/name/public_html/ubbthreads/mysql.inc.php [/]
did you edit to make it say that part of code?
I don't like displaying my full paths in public
eric check to make sure you grabbed the right files I just rechecked and all occurrences of stdimage is no longer present in any of my new files I changed it to gameimage
Okay, I updated all the files and it's working now the initial instructions said only to re-run the instarcade.php script. Even my Blackjack is working
Another quick fix on a path here.
In both arcade.php and arcadeadmin.php
change this:
require ("$thispath/arcade/languages/{$myprefs['language']}/arcade.php");
to this:
require ("$thispath/arcade/languages/english/{$myprefs['language']}/admin/arcadeadmin.php");
hmmm {$myprefs['language']} should be english so it would be redundant? unless of course theres an english directory inside english? or your not getting the cookie setting?
It didn't work without that path for me so I changed it according to where the file was in the structure provided. Not sure why I wouldn't get the cookie setting if that's the case.
I think i saw a way to challenge other members before and I liked that but now I can not find a way to challenge anyone. Are the settings changed?
I think you challenge them in their Profile.
Hi, i need some help. Im not really good with php, but anyways, when i run instarcade.php i get this error:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/4/d95285407/htdocs/ubbthreads/instarcade.php on line 311
Now i imagine its something to do with my paths.....By the way im running ubbthreads 6.4....any help would be appreciated, thanks..
In instarcade.php
Find this:
echo "<br /><br /><center><font color = "red" face="Verdana, Arial" size="2">You must manually go in and change all gifs from gamename1.gif or gamename2.gif to gamename.gif using the larger of the two files</font><br /><br /><font face="Verdana, Arial" size="2">Upgrade complete! Read Installation.txt for the next step! Remember to remove this file.</font></center><br /><br />";
Change to this:
echo "<br /><br /><center><font color = "red" face="Verdana, Arial" size="2">You must manually go in and change all gifs from gamename1.gif or gamename2.gif to gamename.gif using the larger of the two files</font><br /><br /><font face="Verdana, Arial" size="2">Upgrade complete! Read Installation.txt for the next step! Remember to remove this file.</font></center><br /><br />";
[]
DrChaos said: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. [/]
I have this problem too, but only on some games archery being one, my thought is that it depends if the user has submitted the score or not, the high score viewed next to the game is correct in the gamesessions table but not in the game table.
actually I found a bug will post a bug fix tomorrow
argh, took me oer 2900 seconds, but I finally beat my old score
[]
Turbosport said:[]
DrChaos said: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. [/]
I have this problem too, but only on some games archery being one, my thought is that it depends if the user has submitted the score or not, the high score viewed next to the game is correct in the gamesessions table but not in the game table. [/]
Me too
everything else is great though
okay uploaded a new copy its installed here it does fix the hiscore issue make sure your not getting a cache'd copy look for this line in arcadeadmin.php
for ($files=0;$files<2;$files++){
make sure it is NOT
for ($files=0;$files<3;$files++){
that fixed the score issue but my admin shows me a blank screen now ?
(not thats that's the end of the world as i add games through phpmyadmin anyhoo
Thanks
Hmm thats totally weird try doing what Eric did above and
change this:
require ("$thispath/arcade/languages/{$myprefs['language']}/arcadeadmin.php");
to this:
require ("$thispath/arcade/languages/english/admin/arcadeadmin.php");
also make sure the path in arcade/admin/arcadeadmin.php is set correctly.
Wheres the scores fix ? the attachment is still 1.6 however its different to my 1.6 but still hasnt fixed the scores
see
$query = "
SELECT score, U_Number, U_Username
FROM {$config['tbprefix']}gamesessions AS t1
LEFT JOIN {$config['tbprefix']}Users AS t2 ON t2.U_Number = t1.userid
WHERE valid=1 AND $sessionclause
AND gamename = '$shortname'
AND score = '$currenthiscore'
ORDER BY gamename ASC
";
$stj = $dbh -> do_query($query,__LINE__,__FILE__);
list($currenthiscore_q,$usernumber,$username) = $dbh -> fetch_array($stj);
if you don;t you don;t have the latest copy that is here..
its getting pulled from gamesession and displaying the currenthighscore and the username associated to it thats the part I fixed it use to be seperate puylls in arcade.php so I will need more info like your URl and also create a user called threadsdev with password threadsdev so I can poke around ya know.. help a little
BTW it was a minor change that was suppose to be in the 1.6 zip but wasn't so I didn't change the version number only updated the proper files in the zip that I missed.
Thanks m8, I used the zip file just before my last post
my url is
http://www.turbosport.co.uk user and password = threadsdev
[]
ericgtr said:Okay, I updated all the files and it's working now the initial instructions said only to re-run the instarcade.php script. Even my Blackjack is working
Another quick fix on a path here.
In both arcade.php and arcadeadmin.php
change this:
require ("$thispath/arcade/languages/{$myprefs['language']}/arcade.php");
to this:
require ("$thispath/arcade/languages/english/{$myprefs['language']}/admin/arcadeadmin.php"); [/]
just noticed your running 6.4 so yes
{$myprefs['language']}
won't work for 6.4 thats 6.5 cookie handling for 6.4 change it to
${$config['cookieprefix']."w3t_language"}
hi. Im having problems installing the already converted games. I upload the files for a game, i input all the info in the admin for adding games and then i get this error:
Warning: Cannot modify header information - headers already sent by (output started at /homepages/4/d95285407/htdocs/ubbthreads/arcade/admin/arcadeadmin.php:235) in /homepages/4/d95285407/htdocs/ubbthreads/ubbt.inc.php on line 269
Can anyone help me out? Thanks.
Regards, Cro
Just updated. Looking good.
Is there possibly a $gameimage setting that needs to be corrected somewhere, or did I screw something up?
When I get to the "Thanks for playing" page after scoring, the 50 x 50 image is not there, but the link box around it is there.
The PATH is correct if you view the image properties, but somewhere it is not picking up the name of the image from the database.
Working to find it now.
just checked and works fine on mine, this, and my test site...
Yea, had to be some sort of glitch with one of my games. Just got back to it, tried it out, and it worked fine on a few games.
The ones it was not working on were the YETI games, they are now working.
Hmmm bet a Penguin gumed up the works..
Is this working with 6.5b6? I ran the install and got a blank page
[]
ChAoS said:Is this working with 6.5b6? I ran the install and got a blank page
[/]
did you upload all the language files and did you set all the paths.. you need to set a path in both adminarcade.php and arcade.php?
And yes its working on 6.5b6
[]
Turbosport said:Any ideas why my scores still dont work, see here:
http://forums.turbosport.co.uk/bbs/arcade/arcade.php?do=scores&name=minipool2 [/]
without having ftp access and admin access to your boards I wouldn;t fathom but KNOWING that your Running on WIN2003 Web Server. That could be opart of the issue. Windows is finiky and requires some weird settings since I use linux I never tested it on winblows
is there a 6.4 version of this.. me no get this to workie.
6.4 needs to change
{$myprefs['language']}
to
${$config['cookieprefix']."w3t_language"}
in both the arcadeadmin.php and arcade.php
[]
scroungr said: []
ChAoS said: Is this working with 6.5b6? I ran the install and got a blank page
[/]
did you upload all the language and did you set all the paths.. you need to set a path in both adminarcade.php and arcade.php?
And yes its working on 6.5b6 [/]
I definately set the path- require ("c:/wwwroot/ubbthreads/includes/main.inc.php");
as far as the language files files-
C:\wwwroot\ubbthreads\arcade\languages\english\adminarcadeadmin.php
and-
C:\wwwroot\ubbthreads\arcade\languages\english\arcade.php these were all that are contained in the zip
and I am using a windows server as well
okay Chaos did it build the tables or not? What gave you a blank page the install script or the actaul arcade.php? Can ya set me up with some account for testing? Shoot me a PM. I don;t use windows server but I know there are some very basic differences between linux and windows
It did not build the tables I am gathering from this error when linking the aracde.php directly
<br /> Script: c:\wwwroot\ubbthreads\ubbt.inc.php <br />Line#: 1617 <br />SQL Error: Unknown column 'U_Arcadevisit' in 'field list' <br />SQL Error #: 1054 <br />Query: SELECT U_Groups,U_TimeFormat,U_TimeOffset,U_Language, U_Arcadevisit,U_Picture,U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid, U_SideBar FROM w3t_Users WHERE U_Number = ''
and it was the install script which game me the blank page. I believe I am running PHP 4.0 and I am wondering if it is a seting related to that.
I notice this error a lot, both on my forum and here.
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/threadsdev/domains/ubbdev.com/public_html/forum/mysql.inc.php on line 167
Comes up after a score has been submitted, seems to happen only if your score isn't the top score, or maybe in the top 10.
It also flashes by when I install a new game as well in the admin panel.
Hmm will have to check Zack
A couple of questions:
1. I was going to contribute to your fund, but got this message:
"The recipient of this shopping cart link is not an approved shopping cart user. Please review your selection and try again."
2. In the arcade, after you finish a game and it goes to the "Thanks for Playing" page and the one with the "Add Comment page, there is room for a graphic, but it shows up as a box with an "x" in it. The properties are listed as "http://www.roxydollboard.com/ubb/ubbthreads/arcade/images/" with no image name given after that.
3. I would like to add more games, but cannot figure out how to adapt them for your system. I have tried the V3 forum or to put in regular sw games, but they don't work with the high scoring system. Is there something special I have to do?
Thanks for all your hard work!
Regards,
Ellen Thelin
Heya Ellen just checked Roxy and it looks like it works for me
Also I see ya got games added also
If ya need anything let me know
hi, any other sites to get converted games, or is v3arcade the only one? thanks!
you can convert them yourself if your daring and have a little flash skill
and the authors permissions
btw let me clarify something..
if ya try to upload a game.. make sure the shortname you pick is the name of the actual swf file you are using do not make up your own it is important its called in the action script.
line 1059 you are missing a $dbh->do_query
arcade.php - its just above a total_rows which cant return a valid number because we never executed the query.
$query = "
SELECT COUNT(*) + 1
FROM {$config['tbprefix']}gamesessions
WHERE score > '$currentgame[score]'
AND valid=1
AND gamename='$currentgame[shortname]'
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
$scoresAbove = $dbh->total_rows($sth);
ok I will look and check
hurry, I'm ready to start modding 6.5 final
Hmmmmm. Is that a "hint" of whats to come....
I went on v3arcade adn didnt get them to work...
Which games are you guys trying to add and are having trouble? I snagged all of mine out of the v3arcade setup, some took some reading to get working.
I tried one last night. It was the simon one. I installed it before and they liked it but it didn track the score. So after the fixes I tried it again and it has the same problem with scoring..
when all else fails, read it again
I might be able to get it working tonight.
still a no go with simon...
I dont know if its just me, probably is, but im have trouble with this.
I went to v3arcade.com to view the games and add more to my forum. Someoen posted that they worked when installed from there so I dedcided to give it a shot. I registered and now when I click on the zip of the games, I get this error,
DrChaos, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
I deleted every cookig and logged out of the forum. restarted my computer, and still get the same error when I log back in. I can't get the games to work when I try to install them. I cant get more games to add from the v3arcade. Im a poor lost soul
Attached to this post and the few below it, are a few game add-on packs
Simon is included in game pack 3.
I'll upload a few more game packs to this thread as the weeks go by - if anyone else would like to add their GAME-PACK to this thread, please follow my naming convention and also increment the current number sequence as you go. Each game pack should be NO LARGER than 1MB MAX and should include a single JPG file for each SWF game. I have not included a TXT description into each archive, but it might be good practice to do so in the future
I have the descriptions on my site if you care to copy them. The link to the arkade on the site is at the bottom-right corner of the forums. I've setup my arkade in an "easter-egg" style, just like Microsoft use to do with their programs. There are several other "finds" all over the massive 60gb website. I find that these 'easter-eggs' keep the members online longer and promote 'active-clicking'
)
I take no credit in these games - I only provide them in an easily distributable format for this wonderful UBBT Arcade Deluxe hack
...please enjoy
GAME PACK 1: [*] A-Blast [*] Asteroids [*] Burgertime [*] Counter-Strike [*] Donkey Kong
GAME PACK 2:
[*] Frogger
[*] Joust
[*] Kill Kenny
[*] Missile Strike
[*] Monkey Diving
[*] Pac-Man
GAME PACK 3:
[*] Pepsi Pinball
[*] QB Challenge
[*] Simon
[*] Snipers
GAME PACK 4:
[*] Soap Bubble
[*] Spank the Monkey
[*] Spider Jump
[*] Spy Hunter
[*] Squirrel Soccer
[*] TowerBall
Anybody install this and suddenly have new registered users that do nothing but play in the arcade? Sheesh, we run a small very specific site and I've got a bunch of new users who are just in the arcade.
Looks like I'll be setting up some group access. hehe
Yap, I have had a few of those, and my link only appears to Registered Users as well.
I might have to set up a "member" group also. Already have one, just debating the need of locking it away.
you can create a pay user group also and then in the admin panel set it so only people in that group is able to play
Yea, but then I have to drop buck'age on the Payment Pal script (and don't want to do that until I see the new Infopop forum system)...
Or I could hack one out myself, was reading up on it the other day.
Ooooh, the possibilities.
You could use the autogroup change mod, and set it so they have to hit 50 posts, or whatever, and then they are flipped over to a group that can play the games.
hmmm...
I added the first pack of games and none record the score. I also notice that when it does ask you for a comment there is no image for the game, and there is some code on the bottom of all the forum pages thats looks like this,
// http://www.leetgamers.org/user_uploads/6502-SHORTBUS.gif
Thanks so much for the games, id242. That was fantastic!
What was the sql command to delete games? Or a method to remove a game or a few games?
DELETE from w3t_games WHERE gameid = 'number'
[]
PhotoPost said:arcade.php - its just above a total_rows which cant return a valid number because we never executed the query.
$query = "
SELECT COUNT(*) + 1
FROM {$config['tbprefix']}gamesessions
WHERE score > '$currentgame[score]'
AND valid=1
AND gamename='$currentgame[shortname]'
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__); $scoresAbove = $dbh->total_rows($sth); [/]
Does this fix the High Scores ?
BIG UP for Simon
the Highscores should already be fixed in this latest update... its all called from the same query now where before it was two.. I shall be maybe posting a 1.7 version this weekend if I get a mind too..
[]scroungr said:
DELETE from w3t_games WHERE id = 'number' [/]
I tried that. I get this
Script: /home/namehere/public_html/admin/dodbcommand.php
Line#: 103
SQL Error: Unknown column 'id' in 'where clause'
SQL Error #: 1054
Query: DELETE from w3t_games WHERE id = "13"
this is what I am finding out.
lets say I am installing Burger Time. this is what I did.
Title of the Game - Burger Time
Name of the File's excluding the extensions (.swf, 1.gif, 2.gif). This is the internal name given to the game in the swf file - burgertime, burgertime
Height of the Play Window - 400
Width of the Play Window - 400
Description of the Game that will appear in the game menu - Stack burgers and don't get hit.
File Location of the game swf file - i pick it from my desktop
File Location of the game image file (use the largest file) - I pick it from the desktop also
when I hit submit, everything looks great. It adds the game and image to the page and puts it in alpha order. I click to play the game and it plays perfect and there is an image on the right like its supposed to be. when the game ends and you add your comment, there is no image to the left but the place holder (with the red x) is there.
I then went into my cpanel and looked at the files.
in the games folder, Burger time is named like this "burgertime, burgertime.swf" while all others arejust the .swf file.
Blackjack, simon, and counterstrike are all named the sme way and thoose are the ones not keeping score.
the same with the images folder. the games are all named with more then one name....
"swf, 1.gif, 2.gif" .... wasn't the dual-picture feature dropped in the 1.6 update?
I think that may be your problem - re-download the software to get the most recent version
suppose to be burgetime as the shortname not burgertime,burgertime
anyways if ya want to delete the games from the db its actually
DELETE from w3t_games WHERE gameid = 'number'
where number is the gameid of the game. Hopefully ya using phpMyAdmin and you can see the field names...
I get this error
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/steelhea/public_html/ubbthreads/arcade/instarcade.php on line 311
I can't get it to create the tables
on line 311 of "instarcade.php", add the expected ";" to the end
Got this working perfect, great job.
Now if there was only a way to upload several games at one time
The ";" is already there but no workie
echo "<br /><br /><center><font color = "red" face=\"Verdana, Arial\" size=\"2\">You must manually go in and change all gifs from gamename1.gif or gamename2.gif to gamename.gif using the larger of the two files</font><br /><br /><font face=\"Verdana, Arial\" size=\"2\">Upgrade complete! Read Installation.txt for the next step! Remember to remove this file.</font></center><br /><br />";
Try changing "red" to "red"
ok got that script to run, but I still get sql errors when accessins arcadeadmin.
SQL ERROR: Thu, Sep 23 2004 13:27:51 -0700 Unable to do_query: SELECT * FROM w3t_arcadesettings
Table 'steelhea_forum.w3t_arcadesettings' doesn't exist
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/steelhea/public_html/ubbthreads/mysql.inc.php on line 133
SQL ERROR: Thu, Sep 23 2004 13:27:51 -0700 Unable to do_query: SELECT * FROM w3t_arcadesettings
Table 'steelhea_forum.w3t_arcadesettings' doesn't exist
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/steelhea/public_html/ubbthreads/mysql.inc.php on line 133
on that install script it says
You need to install UBBThreads prior to installing this mod
Is it not recognizing my threads? I clicked on accept
it may have only installed half the tables before the error. I would delete the arcade tables and retry with the changed instarcade.php yes it needs "red"
That one is beyond my skill level
I bring it to work on threads 6.5 without any problem. I create missing languagefiles and it seems to run fine.
My Problem:
I cant upload any new games. I fill out the upload mask and submit it. It seems that swf and gif will be transfert but they doesnt show up in the directoy. The mask comes up and told me "Sorry you did something wrong, please try again.". The database is not modified.
Both directorys have chmod777.
Timeout of the server seems to be correct (Pictureupload to photopost works well).
Any idea what to check out ?
Thanks to everyone who has contributed to this so far
Everything appear okay - can add games etc., the only item that is not working is the images are failing to appear. If I right click on the red cross, then the correct path is shown, so I am confused
Puzzled as to why they are missing.
me too and without someone giving me ftp and admin rights on their site can't see.. At least it works on my site and well its all about me anyways
the controlpanel of my server is in rework so I cant give ftp right now. I have to wait until weekend. My server was changed from Apache to Zeus last night. I will post again (or send a pm) if I can handle my site with a control panel. Right now I have superuseraccess only and cant give away this account
Figured it out
In the original zip the image files are say tetris.gif the database was looking for tetris1.gif - corrected the file name and all okay. Sorry didn't spot that originaly.
they should be tetris.gif and not tetris1.gif at least in the latest version? I did away with tetris1.gif and tetris2.gif
Indeed, but in lines 240-256 of the install script the tables are built with tetris1.gif, chopper1.gif etc., these should all be minus the digit 1
hmm will have to look at that thanx
Thanx Ian
Updated the zipfile with the fixe for that. Anyone who has it installed please go into your database and check that the gifs in the games tables do not say
name1.gif and just say
name.gif
I am working on a tournamanet mod for this stioll messing around with the brackets.. hope I can get that licked by Xmas
Tournament, did someone say tournament
are you re-working the brackets from me to use for it?
I also have a major bracket, something like 64 teams / players. it might be a bit eaiser for you to edit.
I cant upload any new games so I try to install them by hand with phpMyadmin. Got it in but scoreing doesnt work. As example I try to install Yeti 1.5
I have the following files:
yeti1_5shots.gif
yeti1_5shots.swf
I upload theses Files to the propper directory and enter phpMyadmin. I set up a new line in the table w3t_games.
The only thing I need to knwo: what is gamesettings ? In the preinstalled games this have a value of 29. Its every time 29 for all games ?
What else is to doo ?
leave it at 29.
why can't you upload new games what happens?
as I write above:
cant upload any new games. I fill out the upload mask and submit it. It seems that swf and gif will be transfert (I see traffic) but they doesnt show up in the directoy. The mask comes up and told me "Sorry you did something wrong, please try again.". The database is not modified.
Both directorys have chmod777.
Timeout of the server seems to be correct (Pictureupload to photopost works well). Server is ZEUS, not Apache. Put method is enabled.
----
Now I have included some games by hand and it work. Yeti Sealbounce have a problem an dont come after load to the start button, but thats may not your problem.
Hmm maybe ZUES is different than Apache would have to look into that..
The tournament addition sounds cool
I've just installed this for v6.5, but when I click Admin Settings, I get this error:
[]Fatal error: Cannot redeclare class mailer in /home/winnie/public_html/ubbthreads/ubbt.inc.php on line 223[/]
Anyone care to shed light on this?
wwelllll.. since mailer isn't even called in the admin script I would say you did something wrong elsewhere..
If I click on Arcade Stats in someones userprofile I see my Avatar near the username of someone and not his avatar.
BTW: sealbounce now runs
Tricky one ...
I have all 5 of the individual Yeti running on my arcade, a few of them ARE a bit tricky.
If anyone wants info, yet me know.
zaral sure you have the latest version? i thought I fixed that bug?
I download the version with the fixed install script (xxxx1.gif replaced bei xxxx.gif) and compared it to my version. No other changes. I will do a second compare but I m sure to use the right version
/edit: compare done. I be sure. I use your archive with instarcade.php date 30.09.2004 08:32
for some reason it took my cache copy not the upload copy so I just uploaded it again
thanks for the new upload, Avatar fixed.
There is a missing usernamestring in the template if you challenge someone.
between $ubbt_lang['NOPREVCHAL'] and ['NOPREVCHAL_2'] should be the name of the challenged one.
in the template is:
<td class="lighttable" align="center">{$ubbt_lang['NOPREVCHAL']} <strong>$user[username]</strong> {$ubbt_lang['NOPREVCHAL_2']}
but it seems that it doenst work as it should. the name is not show
change above to
<td class="lighttable" align="center">{$ubbt_lang['NOPREVCHAL']} <strong>$challenged[U_Username]</strong> {$ubbt_lang['NOPREVCHAL_2']}
i think the upload is updated now
sweeet, working fine on my forum thanks
now where can I get good games
WOW i love the weather page !! man thats AWSOME
I checked the database and I don't see any of those tables to delete. The install script looks like it bypassed installing them unless I missed something.
ok then smiles if the tables for the arcade arent in the threads database then just try and reinstall the arcade but I would double check and make sure in your threads database you don't have the following tables w3t_arcadesettings, w3t_gamechallenges, w3t_gamenews w3t_games, w3t_gamesessions
if any of them are there then delete THAT table and then try reinstall
none exist
I click accept and it says I need "You need to install UBBThreads prior to installing this mod "
what version of threads you running? 6.4.1? Hmmm you did put the arcade in <your ubbthreads directory>/arcade and the install script into <your ubbthreads directory> right? Cause it uses include("main.inc.php"); and include("includes/main.inc.php"); to detect whichversion of threads you are running?
scorungr,
Thanks a bunch for the game dude. Now I have question, when I add a new game, do I need to do it through FTP or in the arcade game admin where its say add new game?
Also where I can get the games that Threadsdev have installed?
Thanks dude
you can use the arcadeadmin script just make sure to use the name of the swf file for the shortname WITHOUT the swf extension.. and basically any v3arcade game works..
aha, now what if I made a mistake, is there anyway I can delete them?. rather than disable them?
manually if you go into the w3t_games table and manually delete em..
thanks
yup thats where I got it at..why it don't read it puzzles me too.
scroungr,
When I used the web interface to upload a .swf game and its avatar, it only created tables for it. I still had to ftp the .swf game files and the avatars to the appropriate containing folders in order to present anything other than the default games that came with the original script.
No biggy, got them all working by ftp'ing files manually.
fyi,
Jason
Hmmm are the games and images directory set to 777?
Nope, I had them set to 755. Didn't occur to me to update the permissions on the folders since I'm owner. Anyway, thanks, I'm sure that's what the issue was.
you are the owner but with Apache the upload is done with permissions of the server, not the owner.
Ahhhh... I see. Funny I didn't get any permission/sql errors when uploading the .swf and .gif files via the browser. In any case, all's fine!
So I found a few games on IPB that might be fun to have on this, but out of all the "arcade" mods I have found, they did theirs differently (bastages).
So I am debating trying to write a pass-through script that will re-label the data passed from the IPB scoring mechanism (and games), and pass the information into arcade.php.
Debating...
Here is an odd one.
After finishing a challenge (I have games 1.6 installed in September), it listed me in the NEWS section as the new champion.
However, I was not the new champ, and it did not reflect my score as such (which was proper).
So somewhere in the challenge script it is telling the NEWS to update people as the new Champ, even if they are not.
?
Have not looked at it much yet, will do so later.
I found an error I believe:
If you go into a user's profile and click on "Arcade Stats" it'll show you that person's stats, but the avatar they show is that of the person reading the page. For example, I click on Arcade Stats in Medar's profile, but my avatar is next to his name
can;t use ipb games they are totally whacked.. I converted a few to v3 arcade type and well lets say v3 passes alot more variables in the flash and ipb passes em via the url...
[]
donJulio said:I found an error I believe:
If you go into a user's profile and click on "Arcade Stats" it'll show you that person's stats, but the avatar they show is that of the person reading the page. For example, I click on Arcade Stats in Medar's profile, but my avatar is next to his name
[/]
yeah was fixed in main zip just not on this site just fixed it on this site...
hmm should say
couchtomatoe has defeated scroungr in an game of Arkanoid!
Yea, figured that out tonight, IPB arcade is a hosed way of doing it.
Scratch that one!
[]
scroungr said:hmm should say
couchtomatoe has defeated scroungr in an game of Arkanoid! [/]
which is developed in these lines
if($challenge['score']<$currentgame['score']) {<br /> $winner=$challenge['challengername'];<br /> $newstext = addslashes("{$challenge['challengername']} {$ubbt_lang['HASDEFEATED']} {$challenge['challengedname']} {$ubbt_lang['INARCADECHAL']} {$challenge[title]}!");<br /> } elseif ($challenge['score']>$currentgame['score']) {<br /> $winner=$challenge['challengedname'];<br /> $newstext = addslashes("{$challenge['challengedname']} {$ubbt_lang['HASDEFEATED']} {$challenge['challengername']} {$ubbt_lang['INARCADECHAL']} {$challenge[title]}!");<br /> } else {<br /> $winner="{$ubbt_lang['TIEGAME']}";<br /> $newstext = addslashes("{$challenge['challengedname']} & {$challenge['challengername']} {$ubbt_lang['HAVEDUELED']} {$challenge[title]}!");<br /> }
Will check out my code to verify it is proper. I do have 1.6 loaded, but I know I am not the latest uploaded version of it (latest minor fixes).
That portion seems to be working, it is just adding a bit of data to it.
[]Warz is the new Mini-Golf Champion! 10/05/04 06:00 PM
Warz has defeated Medar in an game of Mini-Golf! 10/05/04 06:00 PM
Medar is the new Mini-Golf Champion! 10/05/04 05:28 PM
[/]
So it does display the result, but also adds the "champion" statement in there as well, even though neither Warz nor myself beat the properly listed high score.
if someone like german language files for this great add-on you can download the attached zip file. Not a perfect translation but a good start.
This is the ONLY thing I can come up with to figure out why "New Champion" text is showing up each time we play a challenge.
In the SETTINGS, if you set "Show all challenge scores?" to NO - everything works fine.
If you set it to YES - it says that each person playing the challenge is the New Champion for that game (only in the news, it does not change the high scores).
The code that I am questioning is right here, but I have to go to a meeting and have not looked at it in detail yet. JUST figured this out.
<br />if ($arcadepermissions['challengescores'] == 1) {<br /> $query = "<br /> SELECT COUNT(*) + 1<br /> FROM {$config['tbprefix']}gamesessions<br /> WHERE score > '$currentgame[score]'<br /> AND valid=1<br /> AND gamename='$challenge[shortname]'<br /> ";<br /> $sth = $dbh -> do_query($query,__LINE__,__FILE__);<br /> $position = $dbh->total_rows($sth);<br /> if ($position==1) {<br /> $query = "UPDATE {$config['tbprefix']}games<br />SET highscore='$currentgame[score]',highscorerid='$user[U_Number]'<br />WHERE shortname='$challenge[shortname]'<br /> ";<br /> $dbh -> do_query($query,__LINE__,__FILE__);<br /> if ($currentgame['highscorerid']!='$user[U_Number]') {<br />$newstext = addslashes("{$user['U_Username']} {$ubbt_lang['ISNEW']} {$challenge[title]} {$ubbt_lang['CHAMPION']}!");<br />$query = "INSERT INTO {$config['tbprefix']}gamenews<br /> (newstext,newstype,datestamp) <br /> VALUES('$newstext','newchamp','$servertime')<br />";<br />$dbh -> do_query($query,__LINE__,__FILE__);<br /> }<br /> }<br />}<br />
probably sopmething in these lines
if ($currentgame['highscorerid']!='$user[U_Number]') {
will take a look
Medar try this and tell me if it works
Find
<br />if ($arcadepermissions['challengescores'] == 1) {<br /> $query = "<br /> SELECT COUNT(*) + 1<br /> FROM {$config['tbprefix']}gamesessions<br /> WHERE score > '$currentgame[score]'<br /> AND valid=1<br /> AND gamename='$challenge[shortname]'<br /> ";<br /> $sth = $dbh -> do_query($query,__LINE__,__FILE__);<br /> $position = $dbh->total_rows($sth);<br /> if ($position==1) {<br /> $query = "UPDATE {$config['tbprefix']}games<br />SET highscore='$currentgame[score]',highscorerid='$user[U_Number]'<br />WHERE shortname='$challenge[shortname]'<br /> ";<br /> $dbh -> do_query($query,__LINE__,__FILE__);<br /> if ($currentgame['highscorerid']!='$user[U_Number]') {<br />$newstext = addslashes("{$user['U_Username']} {$ubbt_lang['ISNEW']} {$challenge[title]} {$ubbt_lang['CHAMPION']}!");<br />$query = "INSERT INTO {$config['tbprefix']}gamenews<br /> (newstext,newstype,datestamp) <br /> VALUES('$newstext','newchamp','$servertime')<br />";<br />$dbh -> do_query($query,__LINE__,__FILE__);<br /> }<br /> }<br />}<br />
change to
<br /> if ($arcadepermissions['challengescores'] == 1) {<br /> $query = "<br /> SELECT COUNT(*)<br /> FROM {$config['tbprefix']}gamesessions<br /> WHERE score > '$currentgame[score]'<br /> AND valid=1<br /> AND gamename='$challenge[shortname]'<br /> ";<br /> $sth = $dbh -> do_query($query,__LINE__,__FILE__);<br /> $position = $dbh->total_rows($sth);<br /> if ($position < 1) {<br /> $query = "UPDATE {$config['tbprefix']}games<br /> SET highscore='$currentgame[score]',highscorerid='$user[U_Number]'<br /> WHERE shortname='$challenge[shortname]'<br /> ";<br /> $dbh -> do_query($query,__LINE__,__FILE__);<br /> if ($currentgame['highscorerid']!='$user[U_Number]') {<br /> $newstext = addslashes("{$user['U_Username']} {$ubbt_lang['ISNEW']} {$challenge[title]} {$ubbt_lang['CHAMPION']}!");<br /> $query = "INSERT INTO {$config['tbprefix']}gamenews<br /> (newstext,newstype,datestamp) <br /> VALUES('$newstext','newchamp','$servertime')<br /> ";<br /> $dbh -> do_query($query,__LINE__,__FILE__);<br /> }<br /> }<br /> }<br />
I'm a little late to the party but I just wanted to say that the Game Arcade is absolutely brilliant. It may be one of the most popular mods we've ever added to the BB. It has certainly met with more enthusiasm than all the new features in 6.5 combined. I really appreciate your work on this one and I know my members do too.
I've come across a few minor bugs but nothing too serious. However, there are two relatively major issues with the script I was curious if you're going to address. The first is the inordinate number of queries generated by the arcade index. I have 60 games in my arcade, and when they all have high score information stored it takes a whopping 200 queries to build the page. This actually makes arcade.php one of the slowest and most resource-intensive scripts on my site. The problem is that mySQL queries are nested within loops, leading to additional queries the more games you have installed. If you were to retrieve all the information at once with one or two queries, and then store it in arrays to be used by the rest of the script, I think you could improve the performance enormously. For an arcade the size of mine (or yours) it would probably be possible to get the number of queries down from 200+ to something like 5. So this is the first thing I'd like to see.
The second question I have is about the w3t_gamesessions table. In just one day on my site, it grew by over 3,000 rows. Clearly, some of these are necessary since they contain a user's score information and comments. However, there does not appear to be a mechanism in place to expire sessions which never get a 'finish', 'valid' or 'score' value. Anyone who views a game immediately creates a new row in the database, whether they actually play the game through to completion or not. At this rate my sessions table will be quite huge in a year, and although its size pales in comparison to something like the posts table, I hate to see so much unnecessary information being stored and consuming resources.
So these are my two main gripes and I'd really love to see them fixed. It's a testament to the quality of your script that we're still enthusiastically running it even with these issues, but I'm worried that they may become problems down the road if they aren't checked out. So how about it? If I send you a $50 donation will you look into those problems? Actually, I'm going to donate anyway but it sure would sweeten the deal for me. And maybe for people who have been thinking about donating, this would provide the needed incentive.
Anyway thank you again for this great mod!
-Y
Actually 1.7 which I am working on now will address these issues and more. It will also include Categories and if I can get time to work on them. Brackets for Tournaments. 1.7 may come out without the brackets and then 1.8 will come out with them. Its just that since I bought the house I been doing alot of puttering around like mowing, chainsawing trees, etc but now with winter approaching I will find more time and will hopefully get 1.7 out before Election Time..
You're the best roungr. By the way did I mention your script rocks?
I'll be eagerly anticipating the new versions and I'll send over that donation shortly. Keep up the great work!
-Y
I can't even begin to install this mod. I bring up instarcade.php and get this:
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/laondal/public_html/foros/ubbt.inc.php on line 141
Fatal error: Cannot redeclare class mailer in /home/laondal/public_html/foros/ubbt.inc.php on line 223
I've fixed the first warning by disabling zlib compression, but hte one with the fatal error, I have no idea what to do.
Hmm weird error.. I am gonna be updating this soon with version 1.7. The mailer error is fixed and is discussed somwhere in this thread... the ob_start is not part of this mod as far as I know but I will check..
One thing I would like to see is the ability to uninstall games.. or is that there already! I had to change over one game, as the screen was too small, and the hi-score isn't updating on the main screen.
[]SG said:
I've just installed this for v6.5, but when I click Admin Settings, I get this error:
[]Fatal error: Cannot redeclare class mailer in /home/winnie/public_html/ubbthreads/ubbt.inc.php on line 223[/]
Anyone care to shed light on this? [/]
How does this get fixed? I get this error on instarcade.php, but this is the only reference to this error in the whole thread other than mine.
just comment out the mailer = new mailer line
[]scroungr said:
just comment out the mailer = new mailer line [/]
If I comment out that line if ubbt.inc.php, won't that cause a problem with my ability to send emails to the members? What would the consequences of that be?
I think you should just comment it out in the affected script, not in the ubbt.inc.php .
exactly Anno.. do it in arcade.php NOT ubbt.inc.php!
to download your extra games?
Any help is appreciated!
I wanted there to be a trophy icon next to the nick of any user who had a high score in the arcade. I made these changes:
showflat.php
Find:
[]
// ------------------------------------------------
// Keep the current thread number for page linking
$pagelinker = $current;
[/]
Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]
Find this:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username = "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />$Username";
}
}
[/]
Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?
$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";
while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}
if ($trophyalt){
$Username .= "<a href="{$config['phpurl']}/arcade/arcade.php?do=newchallenge&userid=$usernum"><img border="0" src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" /></a>";
}
[/]
showthreaded.php
Find this:
[]
$jumpbox = $html -> jump_box($Cat,$groupquery,$Board);
[/]
Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]
Find:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username .= "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />";
}
}
[/]
Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?
$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";
while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}
if ($trophyalt){
$Username .= "<img src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" />";
}
[/]
[]
camilla1971 said: to download your extra games?
Any help is appreciated! [/]
any game that is converted using the v3arcade way works. Any game created using the ibproarcade doesn't
so basically visit
www.v3arcade.com
[]
Ythan said:I wanted there to be a trophy icon next to the nick of any user who had a high score in the arcade. I made these changes:
showflat.phpFind:
[]
// ------------------------------------------------
// Keep the current thread number for page linking
$pagelinker = $current;
[/]
Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]
Find this:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username = "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />$Username";
}
}
[/]
Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?
$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";
while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}
if ($trophyalt){
$Username .= "<a href="{$config['phpurl']}/arcade/arcade.php?do=newchallenge&userid=$usernum"><img border="0" src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" /></a>";
}
[/]
showthreaded.phpFind this:
[]
$jumpbox = $html -> jump_box($Cat,$groupquery,$Board);
[/]
Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]
Find:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username .= "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />";
}
}
[/]
Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?
$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";
while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}
if ($trophyalt){
$Username .= "<img src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" />";
}
[/] [/]
good stuff
welp cut all queries down from around 400 to 42
also changed a few things.. still beta testing it though but heres a link for those wishing to see
Link to CT Arcade 1.7
Looking sharp scroungr.
FYI, there's a typo in the welcome area:
[]
your mouthe is.!
[/]
Thanx Zack
Wow! Looks completely awesome. I can't wait to try it out!
-Y
Also made it so now in order to play you have to have X number of posts
in my case I set it to one
Any developments on the new version? I can hardly stand the suspense!
-Y
Hey Scroungr I didnt see anything in the instructions about what to put in the ubbt_unregisterednav.tmpl and ubbt_registerednav.tmpl files to make the Link appear in the Title Bar. I know its pretty basic and I am sure I will get it figured before you get the chance to reply but at 4 am on no sleep I am a little slow
something like
·
<a href = "$phpurl/arcade/arcade.php" $target>ARCADE</a> would probably be ok ChAos depending on your site
Nope still working on da Brackets...
When I upload mods and hacks like this do I need to do it in ASCII like the instructions for UBBTHreads (Unix) or will Binary work?
I use smart ftp pro and set it to auto. It has never failed me yet.
Since you are familiar with my Host's funky permission settings do you have any suggestions on how I can add the Flash Games manually? It wont let me edit them with teh current settings of 755 and 644.As soon as I make the directories writeable by anyone other than the owner I get the 500 Error.
yeah
1) tell your host that his server is set up STRANNGEEE.. AND you NEED ability to set directories to 777
2) If he wont change it so that you can set directories to 777 without getting a 500 error I would probably look for another host...
3) when I upload 1.7 you won't be able to use it at all because it needs to write to several tables at once hence the following will only work for this version
in your control panel or phpMyAdmin
do the following SQL for each game
INSERT INTO `w3t_games` VALUES ('<shortname>', '', '<title>', '<description>', '<swf>', '<height>', '<width>', '<gif>', 29, '', '')";
shortname is the internal name of the game for scoring
title is what ya wanna call the game
description is the description of the game
gif is the name of the shortname.gif file
swf is the name of the shortname.swf file
height and width should be determined by hunt and peck..
Here is the reply from my host after I sent him a link to the UBBThreads Permissions/Install page. Since you are the expert maybe you can explain
why this setup isn't working for me and I will send him here.
This Thread may need to be moved to another section
Michael:
It makes no sense that your board would require that other website users (e.g., other clans on our webserver) be allowed write access to your files. When your scripts are executed, they are executed as _your_ user, not as someone else, so they have full access as long as you enable read/write/execute permissions for the _owner_.
You should never need or want to give other clans on the webserver access to your files, for security reasons. You should also be careful not to give global read access to any files that you do not want to be readable by other clans (for instance, configuration files that might have passwords in them).
In other words, your board will work just fine with 755 access to the directories and 700 access to all the scripts (php, cgi, and pl). Their install guide would appear to have been made for much less-secure (and improperly set up) systems, or single-user systems, where other rules might apply.
Here would be my recommendations.
* Any time it tells you to make a directory "777", make it "755", unilaterally.
* Any time it tells you to make a file or directory "666", make it "644", unilaterally.
* Additionally, chmod all files with a php, cgi, or pl extention to "700". If it uses cfg files, you should probably do it to those as well.
Those will work, and they will be much better in terms of security than what the install guide tells you.
-John
INSERT INTO `w3t_games` VALUES ('counterstrike', '', 'Counter-Strike', 'A Mini-Me sized version of our favorite server game', 'counterstrike', '500', '375', 'counterstrike', 29, '', '')";
Produces
Script: /usr/www/efs/ubbthreads/admin/dodbcommand.php
Line#: 107
SQL Error: You have an error in your SQL syntax near '"; ' at line 1
SQL Error #: 1064
Query: INSERT INTO `w3t_games` VALUES ('counterstrike', '', 'Counter-Strike', 'A Mini-Me sized version of our favorite server game', 'counterstrike', '500>', '375', 'counterstrike', 29, '', '')";
What did I miss?
try this
INSERT INTO `w3t_games` VALUES ('counterstrike', 7, 'Counter-Strike', 'A Mini-Me sized version of our favorite server game', 'counterstrike.swf', '500', '375', 'counterstrike.gif', 29,,)";
I went ahead and used PHPMyAdmin's insert function-how cool is that tool? I had never used it before much until now. Boy was I missing out.
On a side note- Is there a way to make certain games available only to certain groups? Say subscription members? Or maybe a section available only to members who are 18 and older if ya know what I mean.
I would still like to have several games available to the general populace but I would like a bonus game roster available to my subscription members.
not uintil the next version
1.7 will have all that and possibly more
Well quit yakking here and go finish 1.7 scroungr!
Your fans await the release.
Did you have any input on that last post about my permissions issue?
Another thing Im a little peeved about is that they are unwilling to allow shell access or create a crontask for me so all my subscription features will not work.
yeah
1) tell your host that his server is set up STRANNGEEE.. AND you NEED ability to set directories to 777
2) If he wont change it so that you can set directories to 777 without getting a 500 error I would probably look for another host...
3) when I upload 1.7 you won't be able to use it at all because it needs to write to several tables at once hence the following will only work for this version
yeah thats a CS server right? That they have the game and the forums on the same server? That might be why they are anal about security. Yeah on my current server I can get shell if I want but I rarely find the need to do it since it has a front end.. It uses CPANEL.. does that server your on have a customer panel like ENSIM? PLESK? CPANEL? WEBMIN?
It has some sort of control panel but I am not sure what the make of it is. As for the CS server I don't think its on the same machine as the webserver as they have seperate IP addy's
*edit*
emeraldforestseattle.nuclearfallout.net (Web Server) tracert looks like its in L.A.
efs.nuclearfallout.net (CS Server) Thats at the Westin Hotel in Seattle at InterNap
so then As I said they shouldn;t have had any issue allowing a 777 directory on the server.. if they knew how to protect it.. When your time for renewwal comes up I would look for a better host offering what ya want for what ya can afford...
I had told Zarzal that I would post a link to all 5 Yeti games (no #6 on mine yet) and their "random" files necessary to get them working properly.
Here you goThat's the 5 I have, they should all function and save games.
insert and its works perfect. Thanks. Strange games
Random/configurable welcome messages
I sent my host this
Do any of your other clients allow subscription and topic notifications from their Forums? How do they perform this without a cronjob?
and he replied,
Michael:
Many forums packages have it built-in. When someone replies to the post, the forum checks to see if anyone needs to be notified of it, and sends out the email if necessary, for instance.
I've never had anyone else ask for a crontab before.
John
am I correct in understanding that UBBThreads needs a Cronjob to do these functions?
Sorry if I have strayed a bit off the Arcade topic
I would ask someone who allows subcriptions to verify but yes as far as I know it requires a cronjob.. I would start looking for a better host for my forums.. the CS server well that I would keep with them if they are the ones with your CS host.
ChAoS
King of the Forest
Arcade XP: 0 Scores
vs
OdDmor
Perma-n00b
Arcade XP: 24 Scores
what does this mean? I noticed it says the same thing no matter who I challenge,including you when you were on my board a minute ago,yours said 24 and mine was 0
as of right now the arcade xp means nothing... it will in the next version... it was a future feature I should have disabled in that version
right now it basically shows how many times you have played in the Arcade...
[]
ChAoS said: Michael:
Many forums packages have it built-in. When someone replies to the post, the forum checks to see if anyone needs to be notified of it, and sends out the email if necessary, for instance.
[/]
This can be mega high load though - what your host describes is notification of favorites - Threads does this, when a post is made, it emails everyone who had the post tagged as their favorites and had the email preference enabled.
What you need is the cron job which runs nightly, finds
ALL the posts made that day, in a particular forum, and emails it to people that have subscribed to that particular forum.
I'm in shock by your webhost's statement. If they honestly say nobody has ever asked for a cron job, then you seriously should find a new webhost. They haven't been in the business long, or don't know what they are doing. Cron jobs are a fundamental building block of web hosting.
They've been around forever.
Remember I say this not just as a webhost, but also a consultant who has hundreds of clients, all with different servers and webhosts. I've seen a pretty good cross section of web hosts.
A good webhost will offer a decent control panel (like CPanel) where you can create and schedule these jobs automatically.
How about working in somewhere either a link or just a bit of info on how to challenge other members to a game? If I hadn't made a post in my forum about doing it from a users profile a lot of my less "advanced" users were lost. I like the fact the link is in a users profile,that gets people who generally don't take advantage of those features a little more involved.
My users aren't posting anymore all they do is play games in your arcade, how about a switch that allows 15 minutes in the arcade per post lol
*edit* check this one out
Sleep it off ya drunk
How do we remove individual scores via the database, or whatever? I have a game installed which must have a bug in it, because there are two hi-scores that are impossible to achieve.
under the admin panel go to the disable/enable games
I just noticed a littl "thing" with the display of the news.
Anyone that plays a game is listed as the new champion. but they only played it and did not ge the high score.
nah is the new Aim Game Champion!
TheClone is the new Aim Game Champion!
CN3089 is the new Aim Game Champion!
but the high score holder it called Ace Freely. theese users only played the game.
I get that as well,I beleive it only happens with challenges though?
fixed in next version. well at least doesn't happen on my server...
Have I said, "I love you" latley....
(not in that way :-o )
You can't have his Bud Liite
/*drool*/
Chaos and Dr Chaos - turn off your "Show all challenge scores" for now and it will fix the problem of every challenge showing in the news as a New High Score.
ditto
[]
Zarzal said:BTW: sealbounce now runs
Tricky one ... [/]
i got the same problem ><~
could u tell me how to solve this problem?
thx
It has a 'web copy protection'. Its not only the main .swf file. You need a seperated soundfile.
First Tip: check your browsercache
Second tip: get the whole yeti pack from this thread. all needet files included.
FYI here is a copy of Yeti Pentathlon - each of the first five games wrapped into one 'tournament' style score.
Also linked is Yeti Sports 6 Big Wave and Yeti 7 Snowboard Freeride.
Fun game.
Yeti Pentathlon Yeti6 - Big Wave Yeti7 - Snowboard Freeride
How can I get the game screen bigger? I set it to 400 x 300 but its super tiny?
You would have to edit your database entries to make the SWF image larger when it loads.
I used phpMyAdmin to edit the fields for several different games. If you are not allready using it I highly recommend it
Aye, phpMyAdmin is a nice tool for MySQL database management on the web.
You know what we need to hack out in the arcade.php?
A 'games per page' limit. Each time I add a game, the page becomes slightly slower on the load.
Still an awesome add-on (best I have ever installed)...just thinking ahead.
be carefull when setting a flash bigger then it was designed. Some games dosnt work correct or display some scrab. I play all games with a standalone player first to find out the correct resolution.
Thanks for the new ones
if anyone has set it bigger, just let me kow what size was best :0
phpmy admin roxxers the boxxers
I believe scroungr is putting that feature into his forthcoming release
my settings (width * height)
yeti 1 650*400
yeti 2 500*308
yeti 3 500*308
yeti 4 550*400
yeti 5 550*400
yeti 6 500*500
yeti 7 500*400
where did you get all of them. I could only get yetti 6 (surfer)and Yetti Pentathlon to work?
Medar post a link to an archive in this thread. Works well, only missing some images. I create my own.
/edit look in flat mode on page 12 of this thread. There is a link
[]
Medar said:You know what we need to hack out in the arcade.php?
A 'games per page' limit. Each time I add a game, the page becomes slightly slower on the load.
Still an awesome add-on (best I have ever installed)...just thinking ahead. [/]
will be in v1.7..
should be soon... still working on tournament play...
got hooked on San Andreas
V1.7 is uploaded here.. still working on the tournament part. But at least you will get a glimpse of upcoming features...
Hello,
finds suitable Games for "Games Arcade" here to her.
http://web200.s123.deinprovider.de/web-dynamic/forum/index.phpNettomo
waiting for 1.7
I am having the same problem as turbosport.
The top scores work on the games included in the first attachment at the very top of this thread.
I have reinstalled this version today.
When I add the other games that another member has attached on this thread I can play the games but it does not register the scores. I does show that I am the champion, but not of what game.
Does anyone have an idea to solve this, it is driving me crazy!
did you name the files correctly? in the swf is a name that if you do not call these files the same name will not display the scores. its usually included in the zip file for that game..
I have found out how to solve my problem.
There is no txt file in the attachments above, but if I add new game and name the file 'newgame, newgame' then in MySql edit the game to 'newgame' it works!
This might be an odd way to go it but it works for me so I don't mind really.
when i added a game there are no highscore stats this is used
[] INSERT INTO `w3t_games` VALUES ('YetiP', 7, 'Yeti-PENTATHLON', 'Now it's time for Yeti to show his skills in all 5 parts', 'yetitoursm', '500', '400', 'yetitoursm.gif', 29,,)"; [/]
My users are calling for more games.. There are quite a few here I dont have.... Any thoughts on where to get more that I can load up easily....
[]MeNaCe said:
when i added a game there are no highscore stats this is used
[] INSERT INTO `w3t_games` VALUES ('YetiP', 7, 'Yeti-PENTATHLON', 'Now it's time for Yeti to show his skills in all 5 parts', 'yetitoursm', '500', '400', 'yetitoursm.gif', 29,,)"; [/] [/]
because I am not mistaken the internal name given to Yeti Pentathlon is yetitoursm not YetiP
[]
DrChaos said:My users are calling for more games.. There are quite a few here I dont have.... Any thoughts on where to get more that I can load up easily.... [/]
have you tried
http://www.v3arcade.com/play/releases.php?s=8fb18fd6216938232c3428f371671e2b&
There's a good number of converted games available
here.
Eeeeesh....well first, I want to thank the author(s) for a great mod!
My members are toying with it on a daily basis. Now, I'm attempting to get some different games installed and I'm having a hell of a time trying to figure out how to do this.
I am attempting to install the games via the Arcade Administration (as I'm running v1.6) and I don't understand some of the fields.
Title of game - Yea I managed to figure this one out.
Name of the File's excluding the extensions (.swf, 1.gif, 2.gif). This is the internal name given to the game in the swf file. - Okay, I'm lost on this one...
Height of the Play Window - Don't know what to set this to.
Width of the Play Window - Don't know what to set this to.
Description of the Game that will appear in the game menu - Yea, I got this one figured out too.
File Location of the game swf file - Yea, figured this one out...
File Location of the game image file (use the largest file) - Yup, figured this one out too....
Help on this is greatly appreciated.
Name of the File's excluding the extensions (.swf, 1.gif, 2.gif). This is the internal name given to the game in the swf file:
** if the image names are frogger.gif then you only put frogger
I set the height and with of the Play Window to 400x400. it useally works good enough
thats just me though. if you dont like the higth and with you can go into the sql tables and adjust them there (phpmyadmin)
Thank you DrChaos.
I don't know what exactly happened, but something went wrong when I tried to install for the first time. My browser sat for more than an hour with nothing coming back. Anyway, I lost my browser session and thought I could try to continue with the install.
If I try to run instarcade.php again, it says that it's already installed and there's nothing to do.
If I try to run it with action=new, I get the following:
<br />Starting instalation...<br />Creating w3t_arcadesettings...<br />Inserting Data into w3t_arcadesettings...<br />Creating w3t_gamechallenges...<br />Creating w3t_gamenews...<br />Inserting Data into w3t_gamenews...<br />Creating w3t_games...<br />Inserting Data into w3t_games...<br />Creating w3t_gamesessions...<br />Altering w3t_Users...<br /><br />(my forum header here)<br /><br />We cannot proceed. <br />Script: <br />Line#: <br />SQL Error: Duplicate column name 'U_Arcadevisit'<br />SQL Error #: 1060<br />Query: ALTER TABLE `w3t_Users` ADD `U_Arcadevisit` VARCHAR(3) NOT NULL <br /><br />Please use your back button to return to the previous page.<br />
Anyone know how I can fix my broken installation?
OK solved my own problem. I basically "uninstalled" and ran the installation again, and it worked fine.
If anyone needs to "uninstall" a broken installation so that you can install again, you just need to run the following SQL commands:
ALTER TABLE w3t_Users DROP COLUMN U_Arcadevisit;
this removes the field added by the installation script
DROP TABLE w3t_arcadesettings;
this removes the arcade table created by the installation script
Just as an FYI, in the template arcade.tmpl, I think there's an excessive use of table widths using the $theme[tablewidth] variable, especially where there are occurrences of tables in two or more cells within the same row.
If your forum is set to use a fixed width (like mine), then the arcade section grows massively sideways.
I think the first table definition should use the $theme variable, and any subsequent table definitions within the table cells should all be at 100%.
If your forum width is already set to 100% then you won't notice this problem.
thanx Myke.. v1.8 is in testing
What happenned to 1.7? Was I
at my desk again?
[]
DLWebmaestro said:What happenned to 1.7? Was I
at my desk again?
[/]
Version 1.7 is actually what's installed here
Here's a feature you might consider putting into the next version (I've noticed that it's not in v1.7 on this site).
When viewing the highscore table, my users asked if the names could be profile links, which makes it convenient for challenging.
To make this simple change, in templates/default/arcade.tmpl, find this:
<td class="lighttable" width="2%" align="center" nowrap>#{$scorecountr}</td>
<td class="lighttable" width="10%" nowrap align = "left">{$score[$scoresize][username]}</td>
<td class="lighttable" width="10%" nowrap>{$score[$scoresize][score]}</td>
<td class="lighttable" width="50%" nowrap>
and change it to this:
<td class="lighttable" width="2%" align="center" nowrap>#{$scorecountr}</td>
<td class="lighttable" width="10%" nowrap align = "left"><a href="$config[phpurl]/showprofile.php?Cat=0&User={$score[$scoresize][useruid]}">{$score[$scoresize][username]}</a></td>
<td class="lighttable" width="10%" nowrap>{$score[$scoresize][score]}</td>
<td class="lighttable" width="50%" nowrap>
This is just a personal nitpick
but is there really a need for 7 or so (identical) links to play the game on the arcade page?
1. "NEW" image
2. Game icon image
3. Game title
4. "PLAY" image
5. "No scores recorded" or "Times played: x" link
6. "Claim that Award!" or "Click here to play" link (btw, what award?)
7. "Click here to play" link in the score column.
all lead to the same place. To clean it up on my installation (v1.6), I've
only made the Game icon and title to be clickable and removed all other links.
BTW, my users really dig the arcade
Many thanks for the work!
How can I make it so that when I play a game, the game itself along with the stat box to the right is centered, and not on the left?
I'm sure it's in the arcade.tmpl, but the file is sooo long that I just don't know what to do with it
donJulio, in arcade.tmpl, find all occurrences of
<td align="right">
<object classid=....
(it's easy if you just search for string "object classid")
and change the alignment in the table cell,
<td align="center">
<object classid=....
For the status box, the table cell should already be center aligned? If it's not for you, then just find the next table cell in that same row and change the alignment.
I am not sure if this is any where else, I have searched about but not found it.
How hard would it be to have some sort of scrowling type text between members username and avatar showing what games they have the top score on?
Ive seen that on other types of forums and it is a sweet idea.
Thats what I thought. My site is still quite new (6 months) and the games room has been a big talking point and does get a few members worked up
I have changed a few member titles and they are always trying to get a new one as they get top score on a game.
Does anyone know how this can be done?
Thank you for this games!
I have a problem with the game "Yeti Sports stagedive"
folder "stagedive_data" can`t help
In attachment 2 versions of this game.
all I can really say is Catshadow this is what I have in mine..
I have a directory /ubbthreads/arcade/games where the yeti_stagedive.swf is and then a ubbthreads/arcade/game_root/stagedive_data directory where the stagedive_score.swf and stagedivesnd.swf are.
see if that helps.. and yes dparvin you can do anything.. in the showflat you will need to add a query for the users that will pull from the arcade table and then use that query to output a flashing sign of what that user has tops in.. sounds hard but is actually easier then it sounds.. but it will add to the time it takes to pull up showflat
Please I need more help...
I have a directory /ubbthreads/arcade/games where the yeti_stagedive.swf is
and then a ubbthreads/arcade/games/stagedive_data directory where the stagedive_score.swf and stagedivesnd.swf are.
And....
The logo picture is loaded... The nearest line of load count is working and loaded full, but top (first and maybe sound) line of load not working. So game not started. I our URL position of browser i can see this line "javascript:count_ivw('stagedive')". I don`t know why? ___________________________________________________________
Thank`s for realy interesting hack for this Arcade! It`s realy cool! It`s very useable and top popularity addon of our users and us.
We will be pleasure to view a 1.8 version (tournament games) or 1.7 at least.
Besides will be very nice if game rating column be present in this hack. This need for admin can delete unpopular games. And in order to a user can sorting games not only in alphabetical order, but as rating!
And one more, we need admin function for deleting games and editing games (title, width, height, discription). Also editing high score comments (for example badwords), deleting this comments and hiding results of baned users.
Thank you!
[]
scroungr said:and yes dparvin you can do anything.. in the showflat you will need to add a query for the users that will pull from the arcade table and then use that query to output a flashing sign of what that user has tops in.. sounds hard but is actually easier then it sounds.. but it will add to the time it takes to pull up showflat [/]
Could be intresting me trying that
I understand my mistake
stagedive is working now
cool Cat did ya have to put it into /games/ or /game_root/
not alot you can do.. if a person WANTS to cheat they will find away. I already disabled the right click menu.
"right click" against "Artmoney" can`t help
New redactions of these games by yetisports.org is interesting...
I haven't seen anything yet? he finally voiced an opinion on one way or the other?
hi guys. i see that thredsdev has v1.7 ...... can i get it somewhere? I just want to be able to organize my games just like on thredsdev, with different genre and categories and pages.... unless there is another mod or something? thanks
shortly I shall be updating to 1.8
ok kewl ty
scroungr, any estimate on when we can expect 1.8 to be released?
Now that 6.5.1 is finally out, I'm working on setting up and configuring the test version of my guild site prior to a live upgrade, and was hoping to offer your spiffy new arcade as an option.
Hmm seeing as I havent upgraded to 6.5.1 hope the code still works
but I shall dispense 1.8 out on the 28th of Feb. Thats an ironclad date.
Cool
When I did a mas simprt of user and messages I blew away the tables that the arcade module created - so now it does not work. When I try to run the install script again it says I have the most recent version... is there any way to just run the table creation part of the script? TO restore the tables I blew away??
yeah if you look at the table creation in the upgrade script you can recreate the tables you need by running that query only in a phpMyAdmin SQL session..
[]
scroungr said:Hmm seeing as I havent upgraded to 6.5.1 hope the code still works
but I shall dispense 1.8 out on the 28th of Feb. Thats an ironclad date. [/]
So, where's 1.8?
Just after 1.7 and before 1.9
actually.. had a few issues.. Root Canal... and a Cold.. it will be delayed about a week.. I am currently writing instructions and the installer/upgrader
take your time - I hope you're feeling better after the cold and recovering well from the root canal surgery
everyone is just anxious because we all love your work!
heh.. yeah the root canal was not fun ended up in the hospital emergency ward.. and this damn cold is just kicking my arese..
pushing this off one more week. I am close to cracking the ibproarcade games issue..
Cool - thanks for all your hard work
fyi: I can workaround the post count requirement by challenging myself to a contest
Who wins?
I did! I totally kicked my own ass
So you lost then - couldn't even beat yourself?
From Mr Hand said.. I hear he beats himself pretty good..
But yeah that was fixed in 1.8
okay uploaded version 1.8
This is great - one issue on a new install:
This line:
$query = "INSERT INTO `{$config['tbprefix']}arcadesettings` VALUES ('arcade', 0, 0, 'images', 10, 0, 1, '-1-2-', '-1-2-', '-1-2-', '-1-2-', '-1-2-', '-1-2-', 100, 10, '$CurrentArcadeVersion')";
Produces a field mis-match, I think I had to change it to :
$query = "INSERT INTO `{$config['tbprefix']}arcadesettings` VALUES ('arcade', 0, 0, 'images', 10, 0, 1, '-1-2-', '-1-2-', '-1-2-', '-1-2-', '-1-2-', '-1-2-', 100, 10, 1, '$CurrentArcadeVersion')";
To get past it.
another installer error for gamecategory:
PRIMARY KEY (`Cat_Number`,`Cat_Number`)
this give an error
should be (?)
PRIMARY KEY (`Cat_Number`)
I think some of the instructions are missing..
At the very end, I have:
[]in showthreaded.tmpl find
$TotalPosts
$Location
add below it[/]
Then nothing else
Also, a path to editing games, etc., produces ubbthreads//admin/arcadeadmin/php, which gives a 404 error. There's nothing in there which tells you to add fields into mySql either.
okay will take a look. thanx.
I'm still getting the double // problem on anything I attempt to click on.
Also, the images aren't pointing to the right directory, ie, I get:
http://www.planet-q.com/ubbthreads//0/disable.gif
Hmmm would have to take a look but something is awry... URL should look like
http://www.planet-q.com/ubbthreads/arcade/images/disable.gifI get
The requested URL /ubbthreads/arcade/images/disable.gif was not found on this server.
so are you sure your paths are set correctly?
Pretty sure I have everything right.
In arcade.php and arcadeadmin.php, I have:
[]require ("$thispath/arcade/languages/{$myprefs['language']}/arcade.php");[/]
and in .htaccess, I have:
[]RewriteBase /ubbthreads/arcade/[/]
Which is the correct directory for the arcade on the server.
and this is set correctly?
require ("/path/to/your/ubbthreads/includes/main.inc.php"); in both admin and arcade?
create a user account called threadsdev and send me a PM with password info...
I am pretty certain of that. I had v1.6 running smoothly, beforehand
Thank you for the new version scroungr! I was eagerly awaiting this.
For some reason my high scores were screwed up after installing this. In case anyone has a similar problem, here's the script I used to fix it.
<? <br />require ("./includes/main.inc.php"); <br /> <br />$query = " <br />SELECT DISTINCT shortname <br />FROM w3t_games <br />"; <br />$sth = $dbh -> do_query($query,__LINE__,__FILE__); <br /> <br />while(list($name) = $dbh -> fetch_array($sth)) { <br /> $games[] = $name; <br />} <br /> <br />for ($i=0; $i < count($games); $i++){ <br /> <br /> $query = " <br /> SELECT userid, score <br /> FROM w3t_gamesessions <br /> WHERE valid = 1 <br /> AND gamename = '{$games[$i]}' <br /> ORDER BY score DESC <br /> LIMIT 1 <br /> "; <br /> $sth = $dbh -> do_query($query,__LINE__,__FILE__); <br /> $result = $dbh -> fetch_array($sth); <br /> <br /> $query = " <br /> UPDATE w3t_games <br /> SET highscore = {$result[1]}, highscorerid = {$result[0]} <br /> WHERE shortname = '{$games[$i]}' <br /> "; <br /> $dbh -> do_query($query,__LINE__,__FILE__); <br /> <br />} <br />$dbh -> finish_sth($sth); <br /> <br />echo "Done"; <br /> <br />?>
m i missing something, is the 1.8 ver out?
thanks
Hmmm will have to check the high score section.
small issue in arcade.php
find
if ($highScore > 0 && $currentgame[score] != 0) {
$setlabel = "You have a new high score!";
// adds a news item
change to
if ($highScore == 1 && $currentgame[score] != 0) {
$setlabel = "You have a new high score!";
// adds a news item
Grazi for the excellent work, donation made
I have now managed to get this running, by deleting it from existence, then doing a fresh install. However, there is a problem when viewing a profile:
[]
http://www.planet-q.com/images/SG/Image2.jpg[/]
In showprofile.php, I can only see this produced once.
Also, the place where I used to download the converted games from is no longer there. Does anyone have any?
Thanks.
check it again or send me a username and password.. because it must be in there three times...
about the games? do a search for ibproarcade games, v3arcade games, shadowarcade games.. they all work
I scrapped my original version. Tried a fresh install, and when I execute the instarcade, it goes blank and wont build the tables back.
I checked all the paths and permissions
if I tack on the ?accept it builds one table and quits.
I know im doing something stupid .....but cant figure it out lol.
The old version installed fine.
Wait wait wait......
Scroungr you coded in the ability to add ipbproarcade games? Those were a totally different flavor than our v3/ubb variety!
Quick bug report:
Your use of the $Cat variable to store the current game category conflicts with UBB's variable of the same name. For instance, go to this URL which is the Misc game category on Threadsdev:
https://www.ubbdev.com/forum/arcade/arcade.php?sb=6&page=1&like=&Cat=6Then, click on the "Main Index" link in the top navbar. It will bring up "V5 Threads Development" since that's category 6 on the BB.
This should be pretty easy to fix, just wanted to let you know.
Peace,
-Y
[]Medar said:
Wait wait wait......
Scroungr you coded in the ability to add ipbproarcade games? Those were a totally different flavor than our v3/ubb variety! [/]
yes..
and Ythan you are right.. I may have to rename that variable...
and minimock when you delete the tables for arcade you are remembering to also remove the Arcade variable added to the w3t_Users table also right?
Silly question - what flags NEW games versus ones that have been installed a while?
[]and minimock when you delete the tables for arcade you are remembering to also remove the Arcade variable added to the w3t_Users table also right?
[/]
Yea ...that was the first to go.
Checked permissions and all.........I dont remember doing anything different from the first install.
[] Silly question - what flags NEW games versus ones that have been installed a while? [/]
whether or not you have a score
and hmm mini not sure.. I had no issues...
ok....I got it to this point.....
Ive got "Call to undefined function: getmicrotime() in" and then my absolute path.
Im starting to think this might be a CPANEL issue...maybe LOL
Also Im sending everything I have in my paypal (it isnt much), havent used it in a hundred years.....Ill send more....I know this stuff isnt free LOL
undefined getmicrotime()? are you using UBBT6 or better? and did you include the main.inc.php? you need to set those in arcade.php and arcadeadmin.php
mini - what file are you getting that error from, and in what folder does it reside?
If you are getting that from instarcade or fixarcade - make sure they are in your ROOT Threads directory.
It sounds like a file is not finding the main.inc.php and cannot 'begin' all the functions.
Yea both are in the root directory of threads, the path is right in both files (arcade.php and the admin)same path from the original install.
The files are all in the same place as the original install.
I used the EXACT same path as in the original install.
The only thing I can think of, is that it might be a CPANEL issue, (they have this combo control for sql....one the original MySql and a funky GUI version......they just upgraded the CPANEL on the server
OYE VEY!!!! LOL
Thanks for all the help
Ill figure it out at some point
or send me a PM with username,password, and ftp info and I will take a look.
ok
scroungr da man!
all fixed.. your server was having issues with the install script so I changed a few things...
And thanks to id242 for adding the game packs earlier in the thread.
If you guys need something related to this ...or not related...
I gave scroungr complete access to about 4 domains....and I was a little leary at first....
But his parting pm was to shut down everything I set up for him ftp and admin
The guy is good....
Step up and take his sig for real, send him a few bucks too.....
He is a professional
And thats all I got to say about that(Forrest Gump) LOL
Thanks bro
[]
minimock said:He is a professional
[/]
I can agree with that, he is the man
Ill jump on ad say, Yes he is! Helped me out may times.
Someone asked about Ms Packman earlier....I found it...installed it, and it works great....Ill attatch it.
Scroungr - I have not dug into this too far yet, but found a glitch or two in the code. Will dig in and write up a fix if I can later today.
On the "index.php?act=Arcade&do=newscore" (ie the New Score page after you are done playing), there are a couple of things...
This is for an IPBPro game:
1. Icon does not show properly.
2. I think it is pulling the game ID instead of the game name (Thanks for playing 69!)
Will see what I can find.
Figured this out one, I attached the arcade.php to this post - but scroungr PLEASE feel free to delete if you have already corrected this or do not want it attached here.
I added
$category and
category=>$category references into queries on or around lines 138, 180, 769, 870, 1171, 1606, and 1672.
I did this so that any
SELECT * would reference properly. Works for me, this corrected my issues with the game IDs showing in the news, and game IDs or session IDs showing in high scores or after you finish the game.
actually I found the problem! it was in the installer for upgrading from 1.6 to 1.8
this line
$query = "ALTER TABLE `{$config['tbprefix']}gamesessions` ADD `category` INT(3) NOT NULL default '0'";
$dbh -> do_query($query);
updated zip
didn't need to be there since it never places any value in that field!
Ahhh, very cool! So I can revert to the original arcade.php and simply remove the category field from the gamesessions table?
yes. Its not in the new installs nor the update from 1.7.. only appeared in the update from 1.6
Getting this error when running the install script:
Fatal error: Cannot redeclare class mailer in /home/xxxxx/public_html/ubbthreads/ubbt.inc.php on line 224
hmm thats a strange error to get... do you have a main.inc.php in the main ubbthreads directory AND one in the includes?
[]scroungr said:
hmm thats a strange error to get... do you have a main.inc.php in the main ubbthreads directory AND one in the includes? [/]
That was the problem, THANKS !!!
Hi all.
Firstly, great hack here. I like it a lot.
I've just upgraded to the 1.8 version, and now my scores arent being submitted.
I get the :
[]
Sorry but you do not have permission.
Please use your back button to return to the previous page.
[/]
These are using the standard games.
I've looked at permissions etc, but nothings jumping out at me. Have read through most of thi thread, but couldnt see anything to help me.
Any ideas peeps?
try the following... delete the tables and the arcade folder and the U_Arcadevisit field from the w3t_users table and try a fresh install and see if that helps any.. back up any game you previously installed.. see if that helps and let me know.
yep, that done the job
Here's an update arcade.tmpl file to fix mismatched table opening and closing tags (which most of you don't notice anyways). All work done by Josh
Thanks for the updated template! (I noticed.) New one works great.
Scroungr I am going to upgrade from 1.6 Do I need to run the install script?
*edit* I didnt wait for you
I ran it. Everything looks fine except my Hi-Scores arent showing usernames. Also what does fixarcade.php do?
fixes the highscore
[]
http://emeraldforestseattle.com/ubbthreads/images/graemlins/foreheadslap.gif[/]
With the marquee enabled I am showing Blank Lines underneath the signature areas now. Is that intentional?
http://emeraldforestseattle.com/ubbthrea...mp;page=0#97278 *edit-I just noticed that some posts are showing the double spacing and some aren't
yeah the marquee was really to show how it could be done.. ya have to mess with the size of text to get it to look right for your site.
*gets out his chainsaw for code editing*
Hmm I ran the fixarcade script but I noticed my Hi Score names are still missing. Any ideas?
Make sure you are overwriting all the scripts and not bypassing any.. then hmmmm did you run the instarcade.php when ya installed it? it may be another upgrade issue.. you may have to try deleting all tables and the U_Arcadevisits field from w3t_users and start a new install...
[]Medar said:
Figured this out one, I attached the arcade.php to this post - but scroungr PLEASE feel free to delete if you have already corrected this or do not want it attached here.
I added $category and category=>$category references into queries on or around lines 138, 180, 769, 870, 1171, 1606, and 1672.
I did this so that any SELECT * would reference properly. Works for me, this corrected my issues with the game IDs showing in the news, and game IDs or session IDs showing in high scores or after you finish the game. [/]
I am getting this problem too. I downloaded the new version today, upgraded from 1.6 to 1.8 followed the instructions, everything is working correctly but I get the same as above.
I tried and used the attachment that Medar has posted but it shows the file name instead, pepsipinball.swf.
Any ideas?
p.s. donation sent
Something else too.
When viewing the top scores it does not show the username of who has the top score.
try the following.. delte the scripts.. delete the U_Arcadevisits field from the threads Users table and the the arcade tables and do a new install there is something wrong with the upgrade but i can't find it...
or pm me and let me take a look at yours...
Ok. Thank you
actually I found it I think.. in your gamesessions do you have a field called ibsessid? if not do this
ALTER TABLE `w3t_gamesessions` ADD `ibsessid` varchar(32) default NULL;
I uploaded a new zip.. will help those that havent upgraded yet...
Again you have shown that you are the man
That sorted it all, thank you
just added this and loving it!
i searched around through this thread, and didn't really find anything... is there, like, a standard way to "fix" a swf game so that it will allow ubb.threads high scores?
for example, i downloaded the fla of the popular neave pac-man game, and uploaded it via the arcade control panel, however, i can't get high scores to work (and noticed others in here couldn't, as well)
anything i have to change to the fla, or something?
you need a few things when altering games to work with IBProarcade, or V3arcade.. you need the authors permission and the to read this thread
http://www.v3arcade.com/play/showthread.php?t=418&highlight=convert
oh man... all those already-modded games were once available for easy download?!
man, did i miss out
I don't know if this is a bug or not, but when I set the minimum number of posts required to play to zero and "became" another member with a zero post count and I couldn't play the games. I upped their post count to one with an SQL command and then I was able to play the games.
BTW, feel free to use the new arcade.tmpl file with the table fixes I posted a few messages back in the original download. All work was done by Josh, so it's good.
hi,
i am using an own session handler for my ubb board.
now the arcades dont work correct any more.
its possible to play, but doesn`t insert the score.
in flashgames u can read "waiting for transmit score" and it never end.
the db connection must be ok, because when i start playing a game it write an insert to table gamesessions. but after the game it doesn`t do any updates of score, validate,...
anybody know this problem?
thx for help.
bye
tydu
PS: sorry for my english...
any particular games? all games? you said you have threads set to sessions?
yes, i set it to sessions and build my own php session handler.
it works great on the forum.
all games are working, but as i wrote there is still the problem with saving the score.
any other idea?
thx & bye
tydu
ALL games have issues with saving score? or just IBPRO type? because ibpro was written using a session script where the stock 5 that came with this did not..
if its just ones marked as ibpro type then it could be that but if its ALL then something else is happening..
if just the ipbro type do the following..
create a file called index.php
and within it place
<?php
foreach($_POST as $key => $value){
echo "key: $key; value: $value<br />\n";
}
?>
and play a game it should run that script afterwords..
if ALL of them try turning cookie back on in threads instead of sessions and see if that works..
All I can say is it works fine for me
Since installing 1.8 I have not been able to play Yeti Sports. I have just reinstalled the game and it starts to open, but does not get as far as 'Type in your name' or (whatever it says) screen.
Anyone know why???
Hmm just tried version 1-7 and stagedive on my site and it works.. could you have a setting wrong? a bad file? Hmmm is it just Yeti Sports?
All my other games are fine. The only Yeti game I have is sports, so I will try and add some.
Thanks scroungr
hi,
what the self createt index.php in the directory arcade is for?
it doesn`t work (save rankings).
i cant switch do cookie moder because of the own session handling on our community.
maybe u have an other idea?
bye
tydu
1) I just looked at the zip again and there is no index.php in the zip...
2) and about session handling sorry but I wrote it for cookies since most people use cookies not sessions...
3) I dont think I am writing another version for threads since threads is at end of life...
4) Cookies/Sessions are only used for ibpro type games so... basically if you can't use cookies.. and you can't use the session function that was scripted for ibpro games.. dont use ibpro games.. stick with the v3arcade type games that don't use sessions/cookies and uses $_POST. $_GET instead...
ok, thx anyway.
u are right, ubb threads is at end of life.
but 1 question i still have:
maybe i can solve the problem by my own.
i just need to know how the flashgames transmit their variables.
which file they are asking for and what are the var names?
thx
bye
tydu
depends on the flash game.. who altered it.. and what they altered it for.. thats not a simple question.
hi... im haveing problems with the MARQUE.... after editing the files to see the marque of the games....my forum doesnt look right...here is an image:
[]
http://geocities.com/zadardalmacija/marque.gif[/]
as you can see the gray area is way to long and stretched now...can anybody help me fix this? thanks
something tells me your missing a table end or something....
you sure you have
<br />
<br />
UBBTPRINT;
if($marquetext) { //UBBTREMARK
echo <<<UBBTPRINT
<table height = "20%" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
Current High Scores in:
<br />
</td></tr><tr><td>
<marquee width = "95%" scrollamount="2" direction="up" loop="true"><center><font class = "small"><strong>
$marquetext
</strong></font></center></marquee></td></tr></table>
UBBTPRINT;
} //UBBTREMARK
echo <<<UBBTPRINT
after
$TotalPosts
$Location
in showthreaded.tmpl?
because it shouldn't expand like that
you can also try changing
<font class = "small">
to
<font size = "1">
to save a little space also
i did do all that but still
this is the code i have in showthreaded.tmpl:
<span class="small"><br />$Title<br /><br /><br />$Rating<br /><br /><br />$Picture<br /><br /><br />$Registered<br /><br /><br />$TotalPosts<br /><br /><br />$Location<br /><br /><br /><br /><br /><br /><br />UBBTPRINT;<br /><br />if($marquetext) { //UBBTREMARK<br />echo <<<UBBTPRINT<br /><table height = "20%" width="100%" border="0" cellpadding="0" cellspacing="0"><br /><tr><td><br />Current High Scores in:<br /><br /><br /></td></tr><tr><td><br /><marquee width = "95%" scrollamount="2" direction="up" loop="true"><center><font class = "1"><strong><br />$marquetext<br /></strong></font></center></marquee></td></tr></table><br />UBBTPRINT;<br /><br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><br /><br /></span><br /></td>
try placing it after the word span and see if that helps any.. those templates vary with mileage
hmm, i still get the same thing .... any other suggestions? thanks
yes send me a PM with some FTP information so I can take a look at your showflat.tmpl
I am also having a problem, but it's a little different and very random.
See Here:
Its something with the avatars. if they have one it spreads them out. if they dont have an avatar is normal.
[]DrChaos said:
Its something with the avatars. if they have one it spreads them out. if they dont have an avatar is normal. [/]
That can't be the problem, those users above and bellow have avatars also.
[]Cro said:
hmm, i still get the same thing .... any other suggestions? thanks [/]
well because you modified your showflat.tmpl the way you did.. the only thing you could try is to find
<span class="small"> {$postrow[$i]['Title']} <br />
{$postrow[$i]['Rating']} <br />
{$postrow[$i]['Picture']} <br />
{$postrow[$i]['TotalPosts']} <br />
{$postrow[$i]['Location']} </span>
and change to
<span class="small"> {$postrow[$i]['Title']} <br />
{$postrow[$i]['Rating']} <br />
{$postrow[$i]['Picture']} <br />
{$postrow[$i]['TotalPosts']} <br />
{$postrow[$i]['Location']}<br />
Current High Scores in:<br />
<marquee width = "95%" scrollamount="2" direction="up" loop="true"><center><font class = "small"><strong>
{$postrow[$i]['marquetext']}</strong></font></center></marquee></span>
if that doesn;t work you won't be able to use the optional marque section. either that or return the showflat.php back to stock version but I figure ya rather not use the marque then do that!
[]BWilliams said:
[]DrChaos said:
Its something with the avatars. if they have one it spreads them out. if they dont have an avatar is normal. [/]
That can't be the problem, those users above and bellow have avatars also. [/]
did you modify your showflat.tmpl any? or is it basically stock? looks like a table size issue? does it happen in ALL browsers?
[]scroungr said:
did you modify your showflat.tmpl any? or is it basically stock? looks like a table size issue? [/]
To the best of my knowledge, it is stock except for this mod.
[]does it happen in ALL browsers? [/]
Not sure as I only have IE available to me right now.
ok if u want me to take a look send me a pm with some details
Barry thats a definite bug with IE.. It does not happen in mozilla.. and if you notice as you scroll up the page the space gets bigger and smaller.. it does happen when I pulled the code out just not as noticeable.. thats one of the reasons I detest Internet Explorer.. You have two choices.. live with it. or do what I ended up doing on my site and not put it in.. thats why its optional.. they can still see the scores in the arcade itself or under their member pages... sorry...
Barry try one other thing.. switch the <span> to <div> above the code and the closing </span> to </div> and see if theres any difference in IE
[]scroungr said:
Barry try one other thing.. switch the <span> to <div> above the code and the closing </span> to </div> and see if theres any difference in IE [/]
I don't see a <span> in the code.
Bobby
right where the {$postrow[$i]['Location']} is in the showflat.tmpl you will notice a <span class="small"> and a </span> is encompassing it.. try changing the span to a div
I actually meant a sig in their posts. (dont know why I said avatar)
I had the very same problem. the way I fixed it was to add a few returns in the sig area of the users preferences.
I dont remember exactly how It was fixed. I think I had to wait untill the last update and it fixed its self.
go into mattymx prefferences and in the sig area just hit return a few times and then save it.
[]DrChaos said:
I actually meant a sig in their posts. (dont know why I said avatar)
I had the very same problem. the way I fixed it was to add a few returns in the sig area of the users preferences.
I dont remember exactly how It was fixed. I think I had to wait untill the last update and it fixed its self.
go into mattymx prefferences and in the sig area just hit return a few times and then save it. [/]
That did the trick, thanks.
Been reading here on where to find games to add and how to do it as well as converting them...and I'm still confused...yea, nothing new.
Is there anyone who has a list of these games available that are already setup for this hack that we don't have to do some tweaking to?
Yea I know....looking for the easy way out but I would rather not attempt to recreate the wheel if it's already been done.
Thanks...
What a great hack, LOVE IT!!!!
of course there are questions lol
I have installed a few flash games, everything works great on the ones that i installed, other than the scores being saved. I ahve checked everything, even the database and everything seems to be the same as far as format, and stuff. i have tried everything in all posts above also and cant seem to figure it out.
Here is the error i get when i try to run fixarcade.php:
SQL Error: You have an error in your SQL syntax near ' highscorerid = WHERE shortname = 'battleships' ' at line 5
SQL Error #: 1064
Query: UPDATE w3t_games SET highscore = , highscorerid = WHERE shortname = 'battleships'
i have tried to even query the database and everything.
any ideas?
thank you
[]
BWilliams said: I am also having a problem, but it's a little different and very random.
See Here:
[/]
IS there a fix for this, as I dont use an avatar and it still displays like Bwilliams post.
help? lol
I guess I am alone on this lol
[]wicked34 said:
I guess I am alone on this lol [/]
The fix I used was mentioned above. Edit the users signature by adding a few line at the end of the signature box of those users that have the extra space.
Thanks all I know
hmmm, weird. I have tried that and hasnt worked. tried it on mine also, and I dont even have a sig.
I am running firefox, and tried IE, and get the same wacky table. I have tried editing the showflat also, no luck.
thanks for the reply,
Mark
I have set the minimum number of posts required to play to zero and users with zero posts still can't play. Is this a bug?
did you also deselect the membersonly and then set the permissioing for their group?
I have it set that anyone can view the arcade, and all user groups, except "guests" can play. I set the minimum posts required to zero. Users with zero posts still can't play.
what about users with at least 1 post can they play?
Yeah. I upped a user's post count to 1 and they were then able to play.
hmm okay I will take a look later.. I think I should have an =< where I may just have a <
OMG, I must be doing something right. I understood that.
"I think I should have an =< where I may just have a <"
Any ideas what is causing this error?
Script: /usr/www/efs/ubbthreads/arcade/arcade.php - Line: 856
SELECT gameid, shortname, gamesettings, title, width, height, FILE, gameimage, highscore,ibpro
FROM w3t_games
WHERE gameid=Mahjong
- Unknown column 'Mahjong' in 'where clause'
gameid should be a number? When did that happen?
a few days ago apparently as I am seeing this in the sql error logs pr maybe some time now and I missed it
What is the purpose of the
fixarcade.php file? Also, when I ran it (fixarcade.php) from my browser, I got the following error:
[]Script: /home/katz/public_html/ubbthreads/fixarcade.php
Line#: 60
SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' highscorerid = WHERE shortname = 'snake'' at line 3
SQL Error #: 1064
Query: UPDATE w3t_games SET highscore = , highscorerid = WHERE shortname = 'snake'[/]
What does it mean?
Hello,
I have got a total of around
2000+ ibproarcade/v3arcade games.
If you want to download ALL of them with just
1 single click go to:
http://v3progames.comHowever you must pay a few bucks because I have to pay for my bandwidth too...
fixarcade is actaully useless at this point.. it was included for those who upgraded from the 1.6 mod to 1.8 mod
A lot of members on my forum are saying that when they go to the Arcade, they're getting a warning saying they
do not have enough posts posted to play. I never setup any restrictions. Where can they be getting this warning from?
TIA
because they probably dont have enough posts to play heh.. i the ctrol panel whats the setting set to? default was 100
Damn! I feel so stupid right now!
Thank You My Friend!
Im still using V1.6.
How do I reset all the game scores back to null.
EDIT:
I did go into the admin settings on the game and clicked on disable / enable games. there is an option to reset all the scores but it didnt work..
I was still scared to. lol. It the zip updated?
hi,
i still have the problem to submit the score after playing an arcade game.
i just want to know, which vars transmitted after pressing the submit score button. if i know that, i can hack the script.
anyone know that?
thx
bye
tydu
hi,
if anybody have the same probs with submitting the score, i found the problem.
on my server php4.3.9 the function "mysql_insert_id()" doesn`t wort.
so i paste this to the script under the line:
// $lastid = mysql_insert_id();
----
$query2 = "SELECT sessionid FROM {$config['tbprefix']}gamesessions ORDER BY sessionid DESC LIMIT 1";
$res1 = $dbh -> do_query($query2,__LINE__,__FILE__);
$row1 = $dbh -> fetch_array($res1);
$lastid = $row1["sessionid"];
---
i also have some problems with permission handling, but thats because i use an own session handling. think u dont get this problem if u use the regular way.
ciao
tydu
thank you for the fix
The line (
$lastid = mysql_insert_id();) is in the arcade.php file twice. Where am I suppose to submit it? After the first one, second one, or both?
hi,
i put the code under both "$lastid = mysql_insert_id();" lines and now the score submit works fine.
bye
tydu
hi,
anyone know, where i can download more arcade games?
thx
bye
tydu
Zip file in original post updated to work with 6.5.2 as well as LOTS of html/xhtml bugfixes.
[]
ChAoS said: []
http://emeraldforestseattle.com/ubbthreads/images/graemlins/foreheadslap.gif[/]
With the marquee enabled I am showing Blank Lines underneath the signature areas now. Is that intentional?
http://emeraldforestseattle.com/ubbthrea...mp;page=0#97278 *edit-I just noticed that some posts are showing the double spacing and some aren't [/]
I recently had to restore from an old backup and it happened to be running this version. How do I disable the marquee again?
I found this is showflat.tpl
UBBTPRINT;
if("{$postrow[$i]['marquetext']}") { //UBBTREMARK
echo <<<UBBTPRINT
<table height = "20%" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
Current High Scores in:
<br />
</td></tr><tr><td>
<marquee width = "95%" scrollamount="2" direction="up" loop="true"><center><font class = "small"><strong>
{$postrow[$i]['marquetext']}
</strong></font></center></marquee></td></tr></table>
UBBTPRINT;
} //UBBTREMARK
echo <<<UBBTPRINT
is there anything there that should not be removed?
all of that should be safe to remove, just remember to make a backup first
I feel kinda silly... but... I cant find the install script in the zip file on the front page.. Am I going nuts, or am I just missing something altogether?
when you unzip the file there's an instructions.txt file that explains how to install it
OK I downloaded the zip file... I only have like 3 php files in it... What install script am I to put in the ubbthreads folder???
There's an instructions.txt file in the root of the folders there
I just downloaded the .zip file and there is no install script.
just the instructions.txt and an arcade dir..
oops!
OK, I uploaded the correct zip in the first post with the install script in it now, sorry for the mixup, most have been updating and not installing new recently