The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Yahoo YUI! Treeview Menu for VBAdvanced Details »» | |||||||||||||||||||||||||
//--------------------------------------------------------------------
// YUI Yahoo Treemenu Module for VBA v3 RC2 // by ShawnC // http://www.shawnc.org //-------------------------------------------------------------------- //-------------------------------------------------------------------- //--> New Installation Instructions //-------------------------------------------------------------------- The files located in the Upload Directory need to be FTP Uploaded to your VBulletin Forum Directory. Click Overwrite All if it comes up will uploading Once uploaded, If you are using VBA v3 RC2 then you can Import the Module in this Directory to your VBA Modules and it will work. If you are Upgrading from a Previous version see next section //-------------------------------------------------------------------- //--> Upgrade Instructions //-------------------------------------------------------------------- Please Reupload all files into your Vbulletin Directory as I have changed the Javascript and compacted it with the Yahoo Javascript Compactor, Also All Files are hosted on your domain to speed matters up now. In Previous versions you had to Change the Header Template to Add the Javascript files, This has been automaticly done inside of the Plugin now so you will need to remove any manual Header File Changes. Delete the Old Module from VBA and ReImport the New Module to make sure all settings are overwrote properly. //-------------------------------------------------------------------- //--> Installation Instructions on older VBA //-------------------------------------------------------------------- Please read the Installation.txt file inside of the Package Follow Normal Installation Instructions by Uploading All Files. Create a new Module inside of VBA, Choose PHP Module(File) Change the following Settings File to Include --> treemenu.php Templates Used --> adv_portal_treemenu Use Module Wrapper Template --> Yes Make a New Template and Call it //-------------------------------------------------------------------- //--> adv_portal_treemenu //-------------------------------------------------------------------- <tr class="alt1" ><td class="yui-skin-sam"> <div id="treeDiv" style="visibility:hidden;"> $adv_portal_forumlist </div> <script type="text/javascript"> //<![CDATA[ var ultree; (function() { function treeInit() { ultree = new YAHOO.widget.TreeView("treeDiv"); ultree.setExpandAnim(YAHOO.widget.TVAnim.FADE_IN); ultree.setCollapseAnim(YAHOO.widget.TVAnim.FADE_OU T); ultree.readList(); ultree.subscribe("expand", function(node) { }); ultree.subscribe("collapse", function(node) { }); ultree.subscribe("labelClick", function(node) { }); ultree.draw(); fetch_object('treeDiv').style.visibility = 'visible'; } YAHOO.util.Event.addListener(window, "load", treeInit); })(); //]]> </script> </td></tr> //-------------------------------------------------------------------- //--> ChangeLog //-------------------------------------------------------------------- --> v1.00 --> First Version --> v1.01 --> Fixed Missing Animation Package - ragtek noticed thanks --> v1.10 --> Fixed minor things --> v1.20 --> Rewrite for VBA v3RC2 Module format --> v1.30 --> Added Automatic Template Edits, Compacted Javascript Includes, Added Hidden Startup, Re-Packaged for Out of the Box Operation Forum Paths have been added to Both Javascript and ForumDisplay.php so this will now work outside of your forum directory, Removed Ugly Navmarkers that i forgot to remove from the original code for this. //-------------------------------------------------------------------- //--> Demo Sites //-------------------------------------------------------------------- http://www.srl-forums.com --> Where this module was originally wrote for http://www.earthbeans.org --> Showing this module in a setting other then VBulletin ( MODx ) http://www.audiopoint.gr --> The Very Original Treemenu code written by Me for A Different JavaScript setup //-------------------------------------------------------------------- //--> Information About the Author //-------------------------------------------------------------------- I am a Freelance web Developer with Alot of exp in VBulletin modifications. I also run a blog about Web Development mostly using Yahoo, PHP and Linux Server stuff. If you Like this modication please make a donation as it would make you feel all warm and fuzzy inside :P And helps me support the idea of future free module releases. Support will be given to those that have Installed this modification only. Show Your Support
|
Comments |
#52
|
||||
|
||||
Hi Evolution,
you can post exactly what treemenu.php you use? My install is similar [i think] vba - index of root vbulletin - index of forums. The module looks ok, but the links call root/forumdisplay...etc [page error] and don't [right] forums/forumdisplay etc. Really I need some help Tks in advance! Joao Quote:
|
#53
|
|||
|
|||
Not sure if I am aloud to do this but this should help ya out this is modified with the forums/forumdisplay so all ya need to do is upload this file and you should be good to go. Hope this helps ya.
|
#54
|
||||
|
||||
Hello Evolution!
tks - works now. It is possible choose to show more than one forumID? All the best Beduino |
#55
|
||||
|
||||
Quote:
I have some things to tell/ask you: 1. In the zip file, in the upload\modules directory, the file treemenu already exists, but since we have to upload the .module file that recreates the treemenu.php file it generates confusion. I think you should let the .module file create the .php file in the module subdir; so remove the module/treemenu.php file from the zip. 2. Update the .module file in the zip with the updated one for vBa 3.0 RC2. 3. With the updated .module (vBA 3.0 RC2), the following code in the treemenu.php gilr does not exist: PHP Code:
Thank you again for this hack. |
#56
|
||||
|
||||
Is there a way to save what was last expanded?
http://www.dragonsofdeityrising.com/...ry=race@humans is what i currently have. |
#57
|
|||
|
|||
Quote:
How do I include 'Expand or Collapse' button? How do I delete '?' ' >' ? Thanks |
#58
|
|||
|
|||
a idea how the div can be hidden, until the site is loaded?
so nobody would have the problem with the "open treemenu" until the site is loaded and yui "collapsed" it |
#59
|
|||
|
|||
I second this request.
|
#60
|
|||
|
|||
Quote:
Quote:
Quote:
[QOUTE=rainyleaves] Awesome!! How do I include 'Expand or Collapse' button? How do I delete '?' ' >' ? Thanks You can delete the funny symbols by looking in the treemenu.php file one of them is &raco; for the other is just a > I know the > is in the switch statement look for the <a href's in the code to find them The Expand Collapse button could be added, you should search google for "Yahoo YUI Treemenu" and you will find Yahoo has Grade A Execellent Docs on all the Javascript library and with a Simple addition of 2 lines of code that I know is documented somewhere in there you can add that. [/QOUTE] |
#61
|
||||
|
||||
Quote:
Only one forum (and subforum) is show in tree. (It's forum ID = 41 but I think it doesn't really matter) Any ideas ? Running vb3.6.8 an vbAdvanced 2.2 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|