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.
It was just "flash_title" instead of "flash_addon_title". I was simply alerting you so that it can be remedied. I changed the phrase to match the one inserted by the install in the template, however the menu itself is not being created via the javascript.
Lemme post a screen of what's happening.
I think I've gottit now - it looks like you have mislaid some of the HTML for your navbar template:
You are missing the all-important opening <div id=$vbphrase[flash_addon_title]> bit - probably lost when you removed the conditional in one of the navbar inserts.
And the other problem is it seems you have left the conditional in place for one fo the navbar alterations, but removed it in the other - check that out as well.
Check that you have inserted all but the llines containing <if statements - if you want me too look @ your admincp, PM me.
Re: the phrase being mis-inserted, I'll look into that ASAP thanks for the heads-up.
And one more question, and then I'll leave you alone.
For your function that retrieves the flash array, and then displays it, how would I use that on a seperate page? (I'm interesting in having a flash page on my website, which links to flash.php for the forums)
And one more question, and then I'll leave you alone.
For your function that retrieves the flash array, and then displays it, how would I use that on a seperate page? (I'm interesting in having a flash page on my website, which links to flash.php for the forums)
The functions relating to how it formats the info have been hard-coded to behave as a navbar popup menu - if you want a CSS-styleable UL-LI type menu, I can release that as a separate modification to this hack - gimme a day or so and I'll add an attachment that covers that utility.
For more detail, PM me an IM id - MSN or ICQ and we can chat further about your needs ... :ninja:
I think I've done something horribly wrong. So I just dropped the hack log tables, redownloaded everything, and reinstalled. Works like a bute.
However, I have two problems with this actual hack now. :\
1) The phrase you specify in your instructions is different that the one inserted into the phrase database.
2) The Javascript menu isn't coming up. I get the little arrow, however the title "Flash", and the titles of all the games come on top of my welcome DIV.
Did the .htl from Natch work from start to finish for you, now?
I think the only problem that he has concerns his phrase xml file. I just noticed a difference between the one in the template, and the one actually put into the phrase. Easy to fix, I would presume.
I think the only problem that he has concerns his phrase xml file. I just noticed a difference between the one in the template, and the one actually put into the phrase. Easy to fix, I would presume.
Yeah - it was actually fixed by the stage you were working on it, but the old zipfile was still cached for ya ...
hey natch... is there any chance this can be modified to work wit the v3 arcade? i dont know anything about making hacks but it seems quite similar...?