|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Yes, just go to miniclip.com and download some
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Hello,
how can I add more Games at the index at games.cgi?
Thanks d-talk
|
|
|
|
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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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: 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? 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  Am I close? 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
 doesn't, tried it with the compact headers templates to test, it stays the old way EDIT: Wow, 2 posts from 15000, congrats 
|
|
|
|
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?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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 I'll test it and fix tonight 
|
|
|
|
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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
um... if no difference in code... why 2.2.3?  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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
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 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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
got it 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  The only fix right now it to replace the bad one with one that works 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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. 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}; }  just set those 2 numbers to your desired dimensions for buggy games and voila 
|
|
|
|
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 I'll update the files hopefully tomorrow 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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 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 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 q!alalal! => q!The AlAlAl Game!, Voila 
|
|
|
|
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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
Joined: May 2001
Posts: 684 |
Ok, thank you Al, than I have to wait :-(
|
|
|
|
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  To upgrade, set your paths/urls in the games.cgi file options and upload demo: https://www.ubbdev.com/ubbcgi/games.cgi
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
Joined: May 2001
Posts: 684 |
Thank you Allen 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
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 
|
|
|
|
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  Zip updated 
|
|
|
|
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...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
uh... Allen... Weird... not... Wierd 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
kinda a cross between weird and wired 
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|