Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 6 1 2 3 4 5 6
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Yes, just go to miniclip.com and download some

Sponsored Links
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hello,

how can I add more Games at the index at games.cgi?

Thanks
d-talk


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
find the game you like, upload it and a .gif file representative of the game (use the same name for each game.gif / game.swf smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
the full format for it is.

for the game allen.swf

upload allen.swf and allen_bigicon.(gif/jpg)

make sure it's all in lowercase letters

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Quote
quote:
Originally posted by Weird Al:
hey Allen, you wouldn't be able to make a version that worked with 6.6's universal headers etv, would you? smile
Have been checking this out, it should already work with 6.6, as I'm calling $Header and $standard_title_table , nada else for the top smile Am I close?

tipsy


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
smile doesn't, tried it with the compact headers templates to test, it stays the old way

EDIT: Wow, 2 posts from 15000, congrats thumbsup

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
That is probably what the problem is, the compact headers. I haven't tested it with them. Do you have a link?


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
not any more, I tested it a while ago on my 6.6 Beta 1 board. I just know it didn't work smile

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
yeah, it doesn't work with compact headers because it relies on the universal headers, but instead of using the universal headers games.cgi makes its own header..

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
hmmmm... ok, it calls $header for its header, mebbe that ain't good enough anymo tipsy

I'll test it and fix tonight smile


- Allen wavey
- What Drives You?
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
ok, no changes to files:

https://www.ubbdev.com/ubbcgi/games.cgi

It looks a little funny because we use css here, but the headers/etc work fine tipsy


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
If you want, I'll post a css version later on, I'll be doing it for me tonight

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
um... if no difference in code... why 2.2.3?

smile and where's the new zip?

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, I've uploaded my current files, it works here, so give it a shot. Unzip, set your url's/path's, upload and set permissions smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I leave the Size.pm right? not upload it

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
yes, upload... it determines the size of your flash files.

It is a bit buggy tho, it doesn't work 100% on all games, some don't work for some reason


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I'm downloading my server error log, I get a server error

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ok, I got that fixed.

This requires the wordlets mods, which I hadn't installed yet

I uploaded the Size.pm to the cgi-bin/Modules folder, but I still get

Code
Can't locate Image/Size.pm in @INC (@INC contains: ./Modules . . 
what did I do?

[edited for screen width]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
keep the Modules/Image/size.pm structure in place (when unzipping you should set folder structure to remain unchanged smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
got it smile

any change of getting a minimum size? one of my games is now 1px*1px

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
that's the one with the bug, not sure if it's a bug with the flash file or the size.pm smirk The only fix right now it to replace the bad one with one that works smirk


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I wrote a fix that will detect if the bug is in effect, and if it is, default to a certain dimension.

Code
find:
# game_max_width: Maximum game width. The height will be calculated from this option. If you want to show the games in their original sizes, set this to zero.

add after:
# bug_fix_width: The width for any games will fall victim to the bug
# bug_fix_height: The width for any games will fall victim to the bug

find:
members_only => 0,
game_max_width => 600,

add after:
bug_fix_width => 400,
bug_fix_height => 400,

find:
if ($max and $width > $max) {
$height = $height / ($width / $max);
my $tmp = int $height;
if ($height - $tmp > 0.5) {
$height = $tmp + 1;
} else {
$height = $tmp;
}
$width = $max;
}

add after:
if ($width == '') {
$width = $opt{bug_fix_width};
}

if ($height == '') {
$height = $opt{bug_fix_height};
}
smile just set those 2 numbers to your desired dimensions for buggy games and voila smile

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thank you Weird laugh

I'll update the files hopefully tomorrow smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I wrote a mod for this mod. If you want to be able to customize the titles of games via wordlets, do these steps.

Disclaimer: This will only work if all the files in your noncgi/games/ folder all COMPLETELY lowercase. Not a single captital letter in any file, that means both the images and the swf file itself


In games.cgi
Code
FIND:

<font color="$vars_style{TableStripTextColor}" size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>$game</b></font></td></tr>

REPLACE WITH:

<font color="$vars_style{TableStripTextColor}" size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>$vars_wordlets_games{$game}</b></font></td></tr>

FIND:
$vars_wordlets_games{games_game}: $game

REPLACE WITH:

$vars_wordlets_games{games_game}: $vars_wordlets_games{$game}
FIND:

printf $opt{img_temp}, $name,"$opt{url}/$_",ucfirst lc $name,$name;

REPLACE WITH:

printf $opt{img_temp}, $name,"$opt{url}/$_",$vars_wordlets_games{$name},$vars_wordlets_games{$name};
Next, open vars_wordlets_games.cgi and follow this pattern to add the wordlets

Code
    q!the_name_of_the_swf_file_without_extension_LOWERCASE! => q!THE ACTUAL PHRASE YOU WANT TO SHOW UP!,
so if I had a game with the files...

alalalbigicon.jpg and alalal.swf (notice that is all lowercase), then you should add

Code
    q!alalal! => q!The AlAlAl Game!,
Voila smile

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thanks Al, when I get a bit-o-timeâ„¢ I'll update the mod smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi,

I have a little problem with the games mod,

http://www.ubb-test67.board-world.net/cgi-bin/games.cgi

Can someone tell me what's that?


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
there's a WHOLE LOT of porting needed to work with 6.7 I've got it working on my board mostly, but Allen says he's gonna update it

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Ok, thank you Al, than I have to wait :-(


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
files updated for 6.7 thumbsup To upgrade, set your paths/urls in the games.cgi file options and upload smile

demo: https://www.ubbdev.com/ubbcgi/games.cgi


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Allen, look at the urls for the main button line. that's the error I was telling you about

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Thank you Allen thumbsup


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Quote
Originally posted by Weird Al:

Allen, look at the urls for the main button line. that's the error I was telling you about

hmmm... ok, I'll dig a bit and see where the probem is smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Allen, it's lookin like 2.4 isn't Mozilla capable, whereas 2.2.3 is...

2.2.3 (works in mozilla) https://www.ubbdev.com/db/cgi/games.cgi
2.4 (doesn't work in mozilla) https://www.ubbdev.com/ubbcgi/games.cgi


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I blame strict!

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, thanks to charles for some pointers, 6.7 zip file has been updated to fix the mainbuttons line and the mozilla issue smile


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
breadcrumbs fixed with wierd al's help smile Zip updated smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
YEY, i can play dumb java games in mozilla agian! I shoudl get shouts for tellin al and allen :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
tipsy


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
uh... Allen... Weird... not... Wierd tipsy

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
tipsy

kinda a cross between weird and wired tipsy


- Allen wavey
- What Drives You?
Page 4 of 6 1 2 3 4 5 6

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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)