Mod Name / Version: Game Arcade 1.1 Version 1.1 fixes some table bugs in IE on the PC and adds instructions to update the who's online location.
Description: This is an integrated Game Arcade for your forum with flash games from MiniClip.com. This mod includes 8 games an allows you to limit play to registered users if you desire.
Working Under: UBB.Threads 6.2-6.4
Mod Status: Beta
Any pre-requisites: none
Author(s): JoshPet
Date: 06/01/03
Credits: MiniClip.com for Free Game Content
Files Altered: none
New Files: A whole "games" directory which is placed inside your threads directory.
Database Altered: none
Info/Instructions: Upload all files to a /games directory inside your threads directory.
If you wish to limit play to registered users only, edit the variable at the top of the /games/index.php file.
Add a link to /games/gameindex.php somewhere on your site. You may wish to add this to your menu bar (ubbt_registerednav.tmpl & ubbt_unregisterednav.tmpl) or into your footer (ubbt_footer.tmpl).
See the AAAInstructions.txt file included for more instructions and instructions on having the who's online location update correctly when users are playing games. <img src="/forum/images/graemlins/smile.gif" alt="" />
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.
Let me ponder that and see if I can easily post instructions. I'm not sure if adding the script name to the online.php language file will work right because it's in a sub directory.... and thus may show up as private like all admin functions.
Add this into the /languages/english/online.php file
$ubbt_lang['battleships'] = "Playing a Game - Battleships"; $ubbt_lang['crashdown'] = "Playing a Game - Creash Down"; $ubbt_lang['flashman'] = "Playing a Game - Flashman"; $ubbt_lang['paintball'] = "Playing a Game - Stress Relief Paintball"; $ubbt_lang['rigelianhotshots'] = "Playing a Game - Rigelian Hotshots"; $ubbt_lang['rocketman'] = "Playing a Game - Rocketman"; $ubbt_lang['sheepish'] = "Playing a Game - Sheepish"; $ubbt_lang['smashing'] = "Playing a Game - Smashing";
The only sticker - the game index is "index" but if you're using IIP you're already using that.... so without changing the name of the script you can't really show location on that script easily.
No do what I said above - the exception is the game index - index.php as if you have IIP you already have an 'index' file.
You'd have to rename the game index to something else - and change the links back to the game index in all the game scripts if you wanted the game index to show up on who's online - otherwise - right now - it'll show up as the "entrance page" because it's got the same name "index.php" as your IIP page.
One thing I noticed Josh since I use the tablewrappers and you would not see unless you validate the page is the HTML after the embed does not work. There is not links BACK TO THE GAME or anything.
Yes, you can use the game pages as templates - there are loads more at that Miniclip site - you just basicaly embed the swf file in the page. And add links to the game index of course.
Updated this - this fixes the issue with the HTML not appearing after the embeded SWF file. This also updates instructions to update the who's online page (including the game index).
Instructions to upgrade - upload all the new PHP files - and follow the enclosed instructiosn (AAAInstructions.txt) for the who's online steps.
I uninstalled Flash and reinstalled it again just to see if that was the problem. Weirdest thing but the closing tags are not there. The UBBThreads footer is not even sent. Nothing after the embed tag is loaded.
Yes Josh I decided to look at it further after it peeved me and saw the missing OBJECT tag. That will do what was happening by blocking the rest of the HTML. Thanx for the update. I was going to comment and I saw ya found it. Now ya got to stop putting things out like this. I like Allen spent two hours last night playing FLASHMAN.
I forgot you like that ole MAC. Yeah when I first looked at the code I did not think about looking for that closing OBJECT tag. I went and looked for the proper closing tr and especially tbclose variables. You had them there.
You don't expect the code to be valide do you They just slap the stuff together and go. They do not care about validity. The problem with that is that until browsers stop accepting outdated html everyone will not jump on the bandwagon.
Hmmm, I went a different route. Just loaded up Dreamweaver, copied some of the code from the main site page and inserted the games. Saved it as an html file and it works great that way too.
most of my users aren't that bright, and since you have to be logged in, they would essentially need to figure out the URL to the SWF to pass on to people
Firstly should the player name fill in automatically as it dosnt on my install?
Secondly I wanted to put my games folder outside of the threads install I try and do this with all hacks as I find it neater.
So I created a paths.php file with the following in: <? $threadspath = "PATH TO THREADS"; $baseurl = "PATH TO WEB ROOT"; ?> ========== then I have removed this section of code in every game php file and gameindex.php:
// What is the PATH (not URL) to your threads install
and added this in its place:
// Require the Paths require ("paths.php");
========== and in gamesindex.php did a find and replace: find: $config['phpurl'] replace with: $baseurl
========== and index.php now looks like this:
require ("paths.php"); // Require the library require ("$threadspath/main.inc.php"); header ("Location:$baseurl/games/gameindex.php");
Working fine at games.nonleague.com - if you add additional games, it is worth checking the swf size by doing a view source at the version on the miniclip site - I added Solitaire - as it means people can play slowly, and I can put ads beneath it
I haven't checked, but I'd be shocked if it didn't work for 6.4. How many other MiniClip games are there? I hadn't thought of the possibility of trying to add more.
[]donJulio said: I haven't checked, but I'd be shocked if it didn't work for 6.4. How many other MiniClip games are there? I hadn't thought of the possibility of trying to add more. [/]
Rather a lot. I'm not sure if they're all free or not, but there appears to be over 50 games at Miniclip.com.
Of course, I'd have to make a point of "testing" those games to determine which ones would be worthwhile of my users' attention.
Now see what you've started? SilentStalker User Acolyte 02/29/04 04:32 PM Playing a Game - Battleships (I)DragonTears Moderator Queen of the Island 02/29/04 04:32 PM Playing a Game - Battleships (I)HomeSlice User l33t 02/29/04 04:31 PM Playing a Game - Battleships SoulMan Moderator Waaaaaa! 02/29/04 04:41 PM Viewing the Game Arcade Frost User addict 02/29/04 04:41 PM Playing a Game - Sheepish SoulMan Moderator Waaaaaa! 02/29/04 04:41 PM Viewing the Game Arcade Frost User addict 02/29/04 04:41 PM Playing a Game - Sheepish
How do I go about adding other games from that site? How do you get the .swf files? They love it..Thankyou
edit-There is a spelling error in the languages/*/online.php for Crashdown (Creashdown)
Go here http://www.miniclip.com/download.htm and get the games, then take a look at the corresponding scripts in the directory and you can add them in there by copying and pasting existing lines. It's pretty easy once you see how it's done.
if (($anonplay) && (!$user['U_Username']) || ($user['U_Username'] == '')) {
and in gameindex.php
# #find # $html = new html; $html -> send_header($pagetitle,$Cat,0,$user);
# #and change to #
$html = new html; // ---------------------------------------------------------------------- // If we are not logged in, then present a log on form, otherwise present // a menu of options. if(($user['U_Username'] == '')) { $config['iip_call'] = 1; $html -> not_right ("{$ubbt_lang['ADMOD_ONLY']}",$Cat); } $html -> send_header($pagetitle,$Cat,0,$user);
[b]the above code also works in the genericpage.php that is posted on this site and pretty much locaks them down in they aren't logged in
I haven't the foggiest idea, on how to add the "Games" link to the top of my forum page(s). Can someone tell me what file(s) to edit & what to put in it?
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.