vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Yahoo YUI! Treeview Menu for VBAdvanced (https://vborg.vbsupport.ru/showthread.php?t=158616)

beduino 09-28-2007 04:29 AM

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:

Originally Posted by Evolution06 (Post 1348563)
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.


Evolution06 09-28-2007 05:47 AM

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.

beduino 09-28-2007 09:13 PM

Hello Evolution!
tks - works now.
It is possible choose to show more than one forumID?
All the best
Beduino

Axel Foley 09-28-2007 10:39 PM

Quote:

Originally Posted by Dankness (Post 1348391)
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.

Thanks for the mod Dankness.

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:

//---> Add Forum IDs to This Array if You Use Them as a Catagory and Not a Forum, It Will Remove Linking To These Forums
$forums_array = array(0); 

4. I already had configured forumdisplay.php in the vBAdvanced Global Options in order to let vBA rewrite the urls of the script with the prefix of the forum's URL (/forum) but it doesn't work with your hack. I had to manually edit treemenu.php putting "/forum" before the 3 calls to forumdisplay.php.

Thank you again for this hack. :D

Uniphix 09-29-2007 05:49 PM

Is there a way to save what was last expanded?

http://www.dragonsofdeityrising.com/...ry=race@humans

is what i currently have.

rainyleaves 09-30-2007 08:39 AM

Quote:

Originally Posted by Uniphix (Post 1349742)
Is there a way to save what was last expanded?

http://www.dragonsofdeityrising.com/...ry=race@humans

is what i currently have.

Awesome!!
How do I include 'Expand or Collapse' button?
How do I delete '?' ' >' ?

Thanks :)

ragtek 10-01-2007 08:27 PM

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

Trana 10-01-2007 11:26 PM

Quote:

Originally Posted by ragtek (Post 1350960)
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

I second this request.

Dankness 10-02-2007 04:22 AM

Quote:

Originally Posted by Uniphix (Post 1349742)
Is there a way to save what was last expanded?

http://www.dragonsofdeityrising.com/...ry=race@humans

is what i currently have.

im sure its possible but i doubt i will implement it, your more then welcome to do it thou,just add a javascript code to set a cookie with each id that was opened, then on return check for the cookie and open/close these ids as needed.

Quote:

Originally Posted by Axel Foley (Post 1349255)
Thanks for the mod Dankness.

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:

//---> Add Forum IDs to This Array if You Use Them as a Catagory and Not a Forum, It Will Remove Linking To These Forums
$forums_array = array(0); 

4. I already had configured forumdisplay.php in the vBAdvanced Global Options in order to let vBA rewrite the urls of the script with the prefix of the forum's URL (/forum) but it doesn't work with your hack. I had to manually edit treemenu.php putting "/forum" before the 3 calls to forumdisplay.php.

Thank you again for this hack. :D

Yes i need to re-package the modules, The zip file works for the older version of VBA which is what i use. The module is for the newer version of VBA. I will add the forum url rewrite in the next version when i have time to release it again and I had to remove the forums array due to it causing errors on alot of ppls' forums for some reason. I dont know why but VBA 3.0 RC2 didnt like it. And since personally i dont use that version Im not gonna find out why its broken until i am forced to update. Your more then welcome to take a survey and get back to us on it thou.

Quote:

Originally Posted by ragtek (Post 1350960)
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

Yea that can also be done very easyly. And its a really good idea actually, Use opacity instead of display none or if i remember correctly YUI cant reset it ( or that mighta just been prototype and mootools, i havent tryd it with YUI but opacity works so just use it lol ) When i have some free time to work on it I will add it, and Im still looking at your pm with the class info Ill see what i can do with it later tonight maybe tommorow.

[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]

Nzo 10-03-2007 01:32 PM

Quote:

Originally Posted by beduino (Post 1349217)
Hello Evolution!
tks - works now.
It is possible choose to show more than one forumID?
All the best
Beduino

Maybe i miss something but I have the same issue.
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


All times are GMT. The time now is 11:58 AM.

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.01168 seconds
  • Memory Usage 1,762KB
  • 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
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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