vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [HTL] Addon: Auto-populate NavBar popup menu [for Erwin's Flash Player] (https://vborg.vbsupport.ru/showthread.php?t=60604)

Natch 01-22-2004 10:00 PM

[HTL] Addon: Auto-populate NavBar popup menu [for Erwin's Flash Player]
 
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.

CdaKnight 01-23-2004 03:27 AM

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.

Chris

Natch 01-23-2004 03:30 AM

Quote:

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

Chris

In short - yes :)

Done @ 5:05PM +10GMT 23-01-2004

:)

Bob 01-23-2004 07:14 PM

Nice Job Natcher!!! :D

Allan 01-23-2004 08:32 PM

it's compatible RC3 ?

Natch 01-23-2004 08:35 PM

Quote:

Originally Posted by Socrate
it's compatible RC3 ?

Not tested with RC3, but unless the upgrade does some major modifications to the navbar, it's highly likely it will work just fine.

Fi_InCogNiTo 01-24-2004 01:52 PM

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); 


Natch 01-24-2004 11:40 PM

Quote:

Originally Posted by Fi_InCogNiTo
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.

Natch 01-26-2004 12:04 AM

Quote:

Originally Posted by Socrate
it's compatible RC3 ?

I just upgraded to RC3, and no probs at all ...

This hack-addon is RC3 compatible.

Natch 01-27-2004 12:17 PM

Updated to HTL version: text file instructions still retained for DIY-ers.


All times are GMT. The time now is 01:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01668 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete