Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Doah.

htaccess file coming soon.

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Anyone know what sort of bandwidth these consume - are they light or heavy eaters?


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
They are SWF files which download then play in the person's browser. The largest one is 416 KB and the smallest is 108 KB.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
aren't SWF files cached also, just like images?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, they load much faster when you go back to the game.

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks - was interested to see if anyone had noticed their bandwidth shoot through the roof with these


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
I might need to hotlink protect mine before I give a real answer. LOL

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
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

Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
looks great installed and working

2 things though

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");

HTH


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Nice I just installed it

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
I installed only 4 games(from six), which swf size < 300KB

Joined: Apr 2002
Posts: 56
Power User
Power User
Joined: Apr 2002
Posts: 56
Works great at audi-sport.net, I've set it for registered users only, think I got carried away as I've got 30 games installed

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
I noticed

Great to see you around here again...


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2002
Posts: 56
Power User
Power User
Joined: Apr 2002
Posts: 56
I shall be around a fair bit more now, probably a bad thing as I'll be annoying you all with my dumba$$ questions

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
We all have those questions from time to time

And beleive me I speak from experience


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
Is this confirmed to work under 6.4?

Can additional MiniClip games be added to this?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yes and Yes

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
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.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Yes, it works just fine under 6.4

ANd yes, you can add different games if you wish.

Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
[]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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, it's really an "addon" and yes, you can follow the format and add additional games from mini-clip.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Working great under my 6.4 at www.f-bodyhideout.com

Thanks Josh!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Yeah and really easy to add games to also.. added Hangaroo

Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
This is just great!

Anyone knows where to find some "adult oriented" games?

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
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)

Last edited by ChAoS; 02/29/2004 8:34 PM.
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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.

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Yup I started on this last night. I have allready added Bush Shootout by copying and changing one of the scripts. Now I just need to change this

Code
// Games Page by Joshua Pettit <br />// aka JoshPet of www.joshuapettit.com <br />// UBB.Threads Elements ©Infopop.com and Rick Baker 


To this
Code
// Games Page by Joshua Pettit <br />// aka JoshPet of www.joshuapettit.com <br />// UBB.Threads Elements ©Infopop.com and Rick Baker <br />// Plagiarized by ChAoS <br />


Last edited by ChAoS; 03/01/2004 4:09 PM.
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
The registered users only setting isn't that effective.

http://www.f-bodyhideout.com/ubbthreads/games/gameindex.php

I went there, clicked a link and got this...

http://www.f-bodyhideout.com/ubbthreads/games/cryptraider.php?anonplay=1

I changed the 1 to 0

http://www.f-bodyhideout.com/ubbthreads/games/cryptraider.php?anonplay=0

And I can now play any of the games.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, it's not high security - but fools most fools.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
[]Ian Spence said:
The registered users only setting isn't that effective.

http://www.f-bodyhideout.com/ubbthreads/games/gameindex.php

I went there, clicked a link and got this...

http://www.f-bodyhideout.com/ubbthreads/games/cryptraider.php?anonplay=1

I changed the 1 to 0

http://www.f-bodyhideout.com/ubbthreads/games/cryptraider.php?anonplay=0

And I can now play any of the games. [/]

Ahh....said the wiseman.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yesh you could add the autheicate code to the mod. It would be easy to do. I say go for it

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

heres a tidbit I tried it and it locks it down

in all the games <insertgametitle>.php


#
#find
#

if (($anonplay) && (!$user['U_Username'])) {

#
#change to
#

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

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
scroungr, thanks for sharing!

Joined: Jul 2003
Posts: 46
Junior Member
Junior Member
Offline
Joined: Jul 2003
Posts: 46
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?

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Here is what you will want to add to your registerednav.tmpl, you will see how it's laid out and you can put it where you want accordingly.

Code
<br /><a href="{$config['phpurl']}/games/index.php?Cat=$Cat">Games</a><br />

Joined: Jul 2003
Posts: 46
Junior Member
Junior Member
Offline
Joined: Jul 2003
Posts: 46
Awesome! It Works! Thank You!

Page 2 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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 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)