Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HTL] Addon: Auto-populate NavBar popup menu [for Erwin's Flash Player] Details »»
[HTL] Addon: Auto-populate NavBar popup menu [for Erwin's Flash Player]
Version: 1.00, by Natch Natch is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 01-22-2004 Last Update: 01-27-2004 Installs: 4
 
No support by the author.

Addon: Auto-populate NavBar popup menu [for Erwin's Flash Player]
Version: 1.2
vB-version: 3.0.0 Release Candidate 3
Developer: Natch
Install difficulty: Easy-as
File edits: 2
Template edits: 2

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.

Comments
  #22  
Old 01-28-2004, 02:53 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CdaKnight
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.
Reply With Quote
  #23  
Old 01-28-2004, 03:08 AM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #24  
Old 01-28-2004, 03:32 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CdaKnight
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:
Reply With Quote
  #25  
Old 01-28-2004, 06:02 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK - new version of attachment uploaded with different filename so you can get the latest file regardless of your cache offering you older files.
Reply With Quote
  #26  
Old 01-28-2004, 10:21 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CdaKnight
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?
Reply With Quote
  #27  
Old 01-28-2004, 10:30 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
Did the .htl from Natch work from start to finish for you, now?
Kura: can you check the HTL file for me ... not installing it actually, but do a test-run with my HTL file and see how it goes ?

I'd love your feedback to see if I did it right
Reply With Quote
  #28  
Old 01-28-2004, 10:54 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Natch
Kura: can you check the HTL file for me ... not installing it actually, but do a test-run with my HTL file and see how it goes ?

I'd love your feedback to see if I did it right
I'll see if I have time for it later today
Reply With Quote
  #29  
Old 01-28-2004, 02:21 PM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 01-28-2004, 02:24 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CdaKnight
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 ...

Cheers for being my test-bunny
Reply With Quote
  #31  
Old 01-28-2004, 02:50 PM
Wolfy.2k Wolfy.2k is offline
 
Join Date: Oct 2003
Location: UK
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...?

cheers in advance!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07936 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete