Description of the Hack:
This takes all your Flash Games you have uploaded into the /forums/games/ folder, and parses them into an array, then creates a vB3 (so cool) drop-down menu, and populates that menu with nicely-labelled links to every one of your games (provided they have the extension .swf.
HACK INSTALLATION DETAILS: Files modified for this Hack:
global.php
includes/functions.php
Templates modified for this Hack:
navbar
NOTE: In attachment are both HTL and text instructions.
Pop the HTL file and the XML file into your htlfiles folder (remember to ensure the htl file is uploaded as BINARY) and run it thru the HTL, or read the text file and DIY
Enjoy! and props to Erwin for his great work ...
UPDATE: 1.2 Upgraded to HTL format.
UPDATE: 1.1 Added a script to format visible link names more neatly.
RELEASE: 1.0 Initial vB.org release.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I have a question. Is there any way that you can use the swfs array to populate another array, where you can tell it to use titles, etc via switch?
So like it goes through the swfs array and as it populates, it runs it through a switch to determine a Formal title for the file, like blaster.sfw becomes Blaster
Is that possible? I think it would make the hack more credible (although that's a great job done already!), and it would make the forums using it more professional. I don't have enough knowledge in PHP to even begin thinking about how to do it... so this is just a suggestion/request I guess.
Thanks again! I'm going to install this weekend regardless.
I have a question. Is there any way that you can use the swfs array to populate another array, where you can tell it to use titles, etc via switch?
So like it goes through the swfs array and as it populates, it runs it through a switch to determine a Formal title for the file, like blaster.sfw becomes Blaster
Is that possible? I think it would make the hack more credible (although that's a great job done already!), and it would make the forums using it more professional. I don't have enough knowledge in PHP to even begin thinking about how to do it... so this is just a suggestion/request I guess.
Thanks again! I'm going to install this weekend regardless.
When I enter the following into global.php on RC3 my forum comes up as a blank white page. When I remove this line, the forum loads fine. It still doesn't fetch the games though:
When I enter the following into global.php on RC3 my forum comes up as a blank white page. When I remove this line, the forum loads fine. It still doesn't fetch the games though:
PHP Code:
$nav_flash = genFlashMenu($flashdir);
Did you:
a) Edit the path to your forums in the line above this one and
b) make all the other alterations as well ?
The only reason this line will actually do anything is if you also have made the additions to the includes/functions.php file, and added the approriate changes to the navbar template.