Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Yahoo YUI! Treeview Menu for VBAdvanced Details »»
Yahoo YUI! Treeview Menu for VBAdvanced
Version: 1.30, by Dankness Dankness is offline
Developer Last Online: Sep 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.8 Rating:
Released: 09-23-2007 Last Update: 10-22-2007 Installs: 36
Auto-Templates
Additional Files  
No support by the author.

//--------------------------------------------------------------------
// 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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 09-27-2007, 05:01 AM
Evolution06 Evolution06 is offline
 
Join Date: May 2006
Location: California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rainyleaves View Post
Works great!!
Thanks.

Ps: How can I excluding specify forums?

* CMPS 3.0rc2 + VB3.68
How did you get yours to work? I tried that and mine still didn't work and I also used the file that was uploaded and now the errors went away but it doesn't show.
Reply With Quote
  #43  
Old 09-27-2007, 05:08 AM
Dankness Dankness is offline
 
Join Date: Nov 2006
Location: Myrtle Beach,SC
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rainyleaves View Post
Works great!!
Thanks.

Ps: How can I excluding specify forums?

* CMPS 3.0rc2 + VB3.68
Well, you can't atm i didnt code that into it. The original purpose of this module was to only include forums from a certain parent ID. So the only true method to do this would be to open the treemenu.php file, in the begining there is a variable for $titleforum = -1 or something of that nature, You can change the -1 to a certain Parent Forum ID other then that there isnt a method of excluding say Forum 2 from the list sorry wasnt needed nor do I have time to add it as this module serves my purpose as it is.

Quote:
Originally Posted by Evolution06 View Post
How did you get yours to work? I tried that and mine still didn't work and I also used the file that was uploaded and now the errors went away but it doesn't show.
Are you sure your using the proper style id? IE You added the template change to Style 3 but now your looking at your page under Style 1? I just uploaded a new module for VB 3.0 that does work as I just installed VB 3.0 to test it. If your left with a list of forums that dont open or close then your forgot to edit your head include.
Reply With Quote
  #44  
Old 09-27-2007, 05:36 AM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Evolution06 View Post
How did you get yours to work? I tried that and mine still didn't work and I also used the file that was uploaded and now the errors went away but it doesn't show.
First, My CMPS index is in public_html directory( I didn't move CMPS index to forum's directory like you.).

Second, I edited treemenu.php
Code:
Find all: 
forumdisplay.php?f

All Replace:
/forums/forumdisplay.php?f
*red code is mean your forum's main directory's name.

Third, I edited headinclude code.
Code:
<script src = "/forums/clientscript/yui/yahoo-dom-event.js" ></script> 

<link type="text/css" rel="stylesheet" href="../forums/clientscript/yui/assets/tree.css">
<script src = "/forums/clientscript/yui/treeview.js" ></script> 
<script src="http://yui.yahooapis.com/2.3.1/build/animation/animation-min.js"></script>
*red code is mean your forum's main directory's name.
* Green code is mean, tree.css need full pass or '..'. Why? I don't know. hahaha .

Note: This is just my case!!!

Luck !!
Reply With Quote
  #45  
Old 09-27-2007, 06:22 AM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm
the part with ../forums/ is strange
just clientscript/yui.... isn't working? are you sure???

are you sure that you have uploaded it right?
Reply With Quote
  #46  
Old 09-27-2007, 06:25 AM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I'm sure.
Works perfectly with ../forums/.
just clientscript/yui.... CSS isn't working.
I don't know why.
Reply With Quote
  #47  
Old 09-27-2007, 05:21 PM
Dankness Dankness is offline
 
Join Date: Nov 2006
Location: Myrtle Beach,SC
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

theres a option to do that stuff in vba...
In The Older VBA the option in the admincp was Rewrite Filenames or something, and clientscript was already picked. Just add forumdisplay.php to it and it should automaticlly rewrite the urls. I guess in the next release I'll go ahead and rewrite all the url's to formdisplay to start with its already a variable, I just didnt need it on my install so didn't feel it was worth time adding.
Reply With Quote
  #48  
Old 09-27-2007, 05:27 PM
Evolution06 Evolution06 is offline
 
Join Date: May 2006
Location: California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! with the new module file you uploaded I downloaded both zip files overwrote all files uploaded the module and it works perfect!! haha nice mod and nice job awesome support!! thanks, www.blizzfusion.com check it out. Keep in mind I just used all files in the 2 zip folders in the first post not the one you edited in the reply on the 3rd page did not have to do any edits with the new module you uploaded.

Powered by vBadvanced CMPS v3.0 RC2
Powered by vBulletin? Version 3.6.8
Reply With Quote
  #49  
Old 09-27-2007, 05:32 PM
maxicep maxicep is offline
 
Join Date: Oct 2006
Location: California
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for update.

i got a question ?
navigation showing all forums and subforums before to completely load.
this showing so bad
Reply With Quote
  #50  
Old 09-27-2007, 09:42 PM
Evolution06 Evolution06 is offline
 
Join Date: May 2006
Location: California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rainyleaves View Post
First, My CMPS index is in public_html directory( I didn't move CMPS index to forum's directory like you.).

Second, I edited treemenu.php
Code:
Find all: 
forumdisplay.php?f

All Replace:
/forums/forumdisplay.php?f
*red code is mean your forum's main directory's name.

Third, I edited headinclude code.
Code:
<script src = "/forums/clientscript/yui/yahoo-dom-event.js" ></script> 

<link type="text/css" rel="stylesheet" href="../forums/clientscript/yui/assets/tree.css">
<script src = "/forums/clientscript/yui/treeview.js" ></script> 
<script src="http://yui.yahooapis.com/2.3.1/build/animation/animation-min.js"></script>
*red code is mean your forum's main directory's name.
* Green code is mean, tree.css need full pass or '..'. Why? I don't know. hahaha .

Luck !!
Well for some reason whenever I try to save treemenu.php I get this errror: (its only when trying to save treemenu even if I don't do any edits to it.. it still does it.. I have tried other files they save fine.

PHP Code:
open treemenu.php failed: Permission denied at cpanel.pl line 492
    Carp::croak('open treemenu.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1299
    Cpanel::Fileman::fmsavefile('/home/bzfusion/public_html/forums/modules', 'treemenu.php', '<?php^M^J// ++====================================================...', '') called at cpanel.pl line 492
    main::__ANON__('/home/bzfusion/public_html/forums/modules', 'treemenu.php', '<?php^M^J// ++====================================================...', '') called at cpanel.pl line 1479
    main::exectag('<cpanel Fileman="fmsavefile($FORM{\'dir\'},$FORM{\'file\'},$FORM...') called at cpanel.pl line 4376
    main::dotag(undef) called at cpanel.pl line 4265
    main::cpanel_parseblock('SCALAR(0x8f8bd70)') called at cpanel.pl line 4219
    main::cpanel_parse('GLOB(0x91ae3f0)') called at cpanel.pl line 1043
Edit: I got it I just edited the file then reuploaded it you can just add forums/ instead of /forums cause it add's the first / by default also you don't need to add /forums to you headinclude cause I didn't do it and it seems to work good. But thats just me really that might be why you can't clientscript/yui/yahoo-dom-event.js or whatever.
Reply With Quote
  #51  
Old 09-27-2007, 10:13 PM
Dankness Dankness is offline
 
Join Date: Nov 2006
Location: Myrtle Beach,SC
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maxicep View Post
thanks for update.

i got a question ?
navigation showing all forums and subforums before to completely load.
this showing so bad
Thats because this mod uses Progressive Enchantment to Redesign a unordered list of your forums. This is the markup and after the javascript hits it turns it into a nice list. Unfort there isnt much you can do about that except remove the module or change the CSS so it looks better without the javascript in place. Or if you search around enough im sure you can figure out a simple way to check if there have a DOM enabled browser and if not then don't display the module but that defeats the purpose of this, in that when a search engine spiders your page, there is a easy to navigate list of links to all your inner forums within 1 click away.
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 03:31 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.06573 seconds
  • Memory Usage 2,337KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_php
  • (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