Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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).

Demo: At JoshuaPettit.com

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.


Attachments
82668-games.zip (0 Bytes, 229 downloads)

Last edited by Ian_W; 12/13/2003 4:54 AM.
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Wheeeeee!!


- Allen wavey
- What Drives You?
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Nice idea

Time for another sub-domain


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Josh,

This is GREAT.

I know this is probably an easy one, but how do I code the "online" file to show "In Game Room"?

Thanks,

Bobby

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Sponsored Links
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Thanks

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
So, if I understand you correctly, there isn't a way to make this work without major hacking?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Oh, ok. I must have miss read your post, sorry

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I wouldn't be that hard to rename "index.php" to "games.php" then add an entry in the online language file for :

$ubbt_lang[games] = "Viewing the Game Arcade";


Then in each of the game scripts - there's a link back to index.php - you'd need to change that to games.php

But what I posted above will cover all except the index file. Didn't think about online when I was setting it up.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Works PERFECT !!!

Thanks,

BWilliams

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

http://www.reeftalk.com/ubbthreads/games/battleships.php

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmmmm I wonder why that is.

Is that a PC thing - I see it.

Am I missing something HTML wise in the embed tag. I inserted the code that Miniclip said - but I wonder if it's not valid. LOL
Attachments
82708-screen.gif (0 Bytes, 47 downloads)

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Thats the weirdest thing ever. One mine it does not load the html after the embedded game.
Attachments
82711-screen.jpg (0 Bytes, 48 downloads)

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Haven't looked at the code yet - but is it easy to add other games - there are a few UK games, that should keep my members hapy


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Oh man! That Josh thinks of everything..... Thanks Man!!!!


Some people read their stars..... I choose to write my own
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I just like playing the games at josh's site


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK

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.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ok, played the 'crashdown' game ~2 hours tonight


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
LOL

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Even with the update?

It was missing a closing tag.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Cool! I tried to do something similiar, but the games I found were only IE! (Lame, Java). This is much nicer. lol

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
LOL

Well I used the code that the MiniClip site gave - which wasn't compliant. Then I didn't test it on the PC.

All my Mac browsers had no trobule recovering from the missing </object> tag - but the PC didn't like it.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

<param name=quality value=high>

I mean come on should it not be

<param name="quality" value="high">

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think Allen is playing games at my site again.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
forget the mod, I just scored 140,372 in crash down



- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I've been hooked on Smashing. Level 40-something!!

Joined: Oct 2001
Posts: 102
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 102
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Well.... just don't serve the games off my $ite and bandwidth... make sure the large .swf files are on your site.

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
These games are served from the game site right? Otherwise looks like a major bandwidth hog.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Served from your own site.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Would be good to post an example .htaccess file to keep other sites from hot-linking to these files...


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah.

/me pokes someone who is much better at that than I.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Try this...

Code
<br />RewriteEngine on<br />RewriteCond %{HTTP_REFERER} !^$<br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?joshuapettit.com(/)?.*$     [NC]<br />RewriteRule .*\.(swf)$ - [F,NC]<br />

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Installed this today, and the users love it Now we just need some games that allow multiplayer

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
I think serving them from your site Josh might be the way to go.

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

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