View Full Version : Forum Home Enhancements - Yahoo YUI! Treeview Menu for VBAdvanced
Dankness
09-23-2007, 10:00 PM
//--------------------------------------------------------------------
// 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 (http://www.shawnc.org) --> 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 (http://www.shawnc.org)
//--------------------------------------------------------------------
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.
Dankness
09-24-2007, 09:11 AM
FIRST REPLY FOR LATER INFORMATION
DEMO SITES :
www.srl-forums.com (http://www.srl-forums.com) - Look at the very bottom left
www.earthbeans.org - Its not VB but i used the menu here first ( and its using MODX for a CMS )
EDIT : 2 Screenshots One Open and one Closed
http://www.shawnc.org/open.jpg
http://www.shawnc.org/closed.jpg
Dream
09-24-2007, 09:21 AM
hey this sounds interesting. I hate when people ask me this, but do you have a screenshot :P
Dankness
09-24-2007, 09:23 AM
hey this sounds interesting. I hate when people ask me this, but do you have a screenshot :P
Screenshots added.
Long time lookin for such modification; cuz of my high forum depth tree
/me downloads and clicks install
Cheers
soulface
09-24-2007, 11:28 AM
nice but im getting this db error when importing the .module file
Database error in vBulletin 3.6.8:
Invalid SQL:
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO adv_modules
(`0`, `active`, `userperms`)
VALUES
('', '1', '5,6,7,14,2,17,3,16');
MySQL Error : Unknown column '0' in 'field list'
Error Number : 1054
Date : Monday, September 24th 2007 @ 02:27:17 PM
Script : http://www.xxxxxxxxx.net/admincp/vba_cmps_admin.php?do=uploadmodule
Referrer : http://www.xxxxxxxxx.net/admincp/vba_cmps_admin.php?do=download
IP Address :
Username :
Classname : vb_database
Dankness
09-24-2007, 11:38 AM
nice but im getting this db error when importing the .module file
What version of VB Advanced are you using? I use the older one since i havent upgraded recently, too many php edits to try and upgrade. You dont really need to import the module thou here's how to do it without the module
FTP Upload all the files in the directory
Inside the Zip file is a file named adv_portal_treemenu.tpl
Open this, Create a new template in your style and paste this data in it
Next Create a New Module in VBAdvanced, Select PHP module
Then For php file to include, select treemenu.php
and for template to use select adv_portal_treemenu
and select yes for Shell
save your module and enjoy.
ragtek
09-24-2007, 12:02 PM
could you make it for this system also: http://demo.vbcms.de/vbcms.php *g*?
i've tried to change the code, but then my whole site was white
soulface
09-24-2007, 12:15 PM
What version of VB Advanced are you using? I use the older one since i havent upgraded recently, too many php edits to try and upgrade. You dont really need to import the module thou here's how to do it without the module
FTP Upload all the files in the directory
Inside the Zip file is a file named adv_portal_treemenu.tpl
Open this, Create a new template in your style and paste this data in it
Next Create a New Module in VBAdvanced, Select PHP module
Then For php file to include, select treemenu.php
and for template to use select adv_portal_treemenu
and select yes for Shell
save your module and enjoy.
Im using vB3.6.8 & vBA 3.0 RC2..
ok now added this mamually as u said.. & when i go yo my cmps im getting this error..
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 92
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 92
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 92
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 92
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Dankness
09-24-2007, 12:55 PM
could you make it for this system also: http://demo.vbcms.de/vbcms.php *g*?
i've tried to change the code, but then my whole site was white
Is that a free CMS? I've never seen it before. I might eventually make it one day when i have some free time.
Im using vB3.6.8 & vBA 3.0 RC2..
ok now added this mamually as u said.. & when i go yo my cmps im getting this error..
Apparently, VBA 3.0 has been changed alot more then i thought it has. Open your treemenu.php file located in
forum/modules/treemenu.php
Replace this line with this Line
$forums_array = array(0);
$forums_array = array(0,0);
Basicly you just add a ,0 to the line if that don't work then i'll have to look at it later today when i Have some time to install VBA 3.0 on a test board, personally i don't like the way everything was changed on it so i'm not gonna install it on my personal board.
elmati
09-24-2007, 01:09 PM
really nice addon!
i dont use yui, i use mootools but it's incompatible with vbulletin :(
thx a lot m8
ragtek
09-24-2007, 01:15 PM
Is that a free CMS? I've never seen it before. I might eventually make it one day when i have some free time.
No.
Its a commerzial one but i could give you the "syntax" for a modul, how it have to be.
Dankness
09-24-2007, 01:17 PM
really nice addon!
i dont use yui, i use mootools but it's incompatible with vbulletin :(
thx a lot m8
I started using YUI afew months before Vbulletin switched to it, then when vb switched I was in heaven :) This was originally wrote using a Dynamic Drive JS, then I rewrote it with YUI for a ModX CMS site I had, then i finally put it on my VB last night and decided it looked awesome and figured i should release it :) I love YUI there Documentation is awesome, and Yahoo actually uses there stuff so its tested in a real life tests.
elmati
09-24-2007, 01:29 PM
do u try mootools? it's really simple and works fine
i don't know too much of js so, i can't figure out how to take mootools workin with vbulletin :(
otherwise im trying YUI rite now :)
Thanks for this, i'll try to add images, like folders ;)
ragtek
09-24-2007, 02:05 PM
i think yui is "better" because it's implemented in vb and it will be more implemented in future
http://www.vbulletin.com/forum/showthread.php?t=243088 :)
Dankness
09-24-2007, 02:08 PM
do u try mootools? it's really simple and works fine
i don't know too much of js so, i can't figure out how to take mootools workin with vbulletin :(
otherwise im trying YUI rite now :)
Thanks for this, i'll try to add images, like folders ;)
Here just read this (http://developer.yahoo.com/yui/treeview/)
And you'll learn how to change there images and stuff, Yahoo has awesome documents on it.
Mootoos is pretty good, But since vbulletin already includes YUI why bother adding mootools also? YUI gives you everything and more then you need. I wrote a ModX CMS site awhile ago that every page was loaded via AJAX and it used YUI's Backbutton History module, so even thou the center module was loaded each time you could still use your back button and your bookmark button. Im gonna release some more mods that use the YUI very soon too, just to replace some of the older mods that included prototype and mootools and stuff, that way vbulletin will use the same lib for abunch of ajax goodies :)
ragtek
09-24-2007, 06:17 PM
i've put now this into my php for seeing if it is working:
$ausgabe = "<ul>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa</a></span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa</a></span>
</li>
<li>
<span class='smallfont'>\n blaa </span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa1</a> </span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa2</a> </span>
</li>
<li>
<span class='level3menu'>\n <a href=\"#\">blaaa3</a> </span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa</a> </span>
</li>
</ul>";
$adv_portal_forumlist = & $ausgabe;
but this shows now some links, but nothing collapsable
Dankness
09-24-2007, 06:27 PM
i've put now this into my php for seeing if it is working:
$ausgabe = "<ul>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa</a></span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa</a></span>
</li>
<li>
<span class='smallfont'>\n blaa </span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa1</a> </span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa2</a> </span>
</li>
<li>
<span class='level3menu'>\n <a href=\"#\">blaaa3</a> </span>
</li>
<li>
<span class='smallfont'>\n <a href=\"#\">blaaa</a> </span>
</li>
</ul>";
$adv_portal_forumlist = & $ausgabe;
but this shows now some links, but nothing collapsable
Did you include the javascript files in the headinclude?
Did you include the ul list in a div with a id?
Did you call the javascript afterwards?
ATM, All you've included is a unordered list with afew links inside of it. You now need to call the javascript to make it work properly.
ragtek
09-24-2007, 06:32 PM
this is the code:
<!-- BEGIN TEMPLATE: portal_yuimenu -->
<table width="100%">
<tr class="thead"><td>Navi</td></tr>
<tr class="alt1"><td class="yui-skin-sam">
<div id="treeDiv">
<ul>
<li>
<span class='smallfont'>
<a href="http://www.ragtek.org/#" >blaaa</a></span>
</li>
<li>
<span class='smallfont'>
<a href="http://www.ragtek.org/#" >blaaa</a></span>
</li>
<li>
<span class='smallfont'>
blaa </span>
</li>
<li>
<span class='smallfont'>
<a href="http://www.ragtek.org/#" >blaaa1</a> </span>
</li>
<li>
<span class='smallfont'>
<a href="http://www.ragtek.org/#" >blaaa2</a> </span>
</li>
<li>
<span class='level3menu'>
<a href="http://www.ragtek.org/#" >blaaa3</a> </span>
</li>
<li>
<span class='smallfont'>
<a href="http://www.ragtek.org/#" >blaaa</a> </span>
</li>
</ul>
</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();
}
YAHOO.util.Event.addListener(window, "load", treeInit);
})();
//]]>
</script>
</td></tr></table>
<!-- END TEMPLATE: portal_yuimenu -->
and i'm including the files
firebug shows no errors
thx for helping
Dankness
09-24-2007, 06:58 PM
this is the code:
and i'm including the files
firebug shows no errors
thx for helping
Whats the link to the page your tryin to put this into.
Does Firebug show your actually connecting to the javascript files in the header?
Put Firebug on NET and Refresh the page and make sure everything is found and there's no
files not found.
ragtek
09-24-2007, 07:16 PM
<a href="http://www.ragtek.org/" target="_blank">http://www.ragtek.org/</a>
the navi modul at end of the site
it's just for "practice"
Dankness
09-24-2007, 08:18 PM
O it's working as its being told to do on that page....
You need to include another list inside of your <li>
This should make a collapisble thing
<ul>
<li>Parent
<ul><li>Child</li><li><Child 2</li></ul>
</li>
<li>Parent 2
<ul><li>Child</li><li><Child 2</li></ul>
</li>
</ul>
You have to include Sublists to expand on, does that make sense?
ragtek
09-24-2007, 08:20 PM
lol
now it makes sense:D
thx man :)
now i know how it have to be, and now i can try to make the part with the forumcache :)
thx very much
iogames
09-24-2007, 08:21 PM
Wow! great job!
ragtek
09-24-2007, 08:22 PM
now we have an error:
YAHOO.util.Anim is not a constructor
var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}},...
but its working
thx
maybe this is missing: <script src="http://yui.yahooapis.com/2.3.1/build/animation/animation-min.js"></script> ;)
edit: btw you have a mistake in your code ;)
<ul><li>Child</li><li>Child 2</li></ul>
Dankness
09-24-2007, 08:52 PM
http://www.ragtek.org/
the navi modul at end of the site
it's just for "practice"
now we have an error:
YAHOO.util.Anim is not a constructor
var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}},...
but its working
thx
maybe this is missing: <script src="http://yui.yahooapis.com/2.3.1/build/animation/animation-min.js"></script> ;)
edit: btw you have a mistake in your code ;)
<ul><li>Child</li><li>Child 2</li></ul>
Well the Anim wont effect it only does the animation and thats a error that its not found.
The javascript is working properly because your Tree was wrapped in the list images, which if it didn't work you would'va been left with a list with regular bullets. For example visit the second demo site i posted and watch as the page loads, you'll see about 50-60 links in a ugly default list until the javascript adds the proper class to it and cleans it up., and the code i wrote in the quick reply box, it was just some example code to spread the theory not a working application :) Thats one of the main benefits of this script is it uses Progressive Enchantment to add the Javascript, so to a 'Lynx' browser or Google those links would still be in a very usable List format :)
Trana
09-25-2007, 05:33 AM
A couple of questions....
Does this follow the forum permission system? If a user cannot see a forum will it display it in their list?
Also, my nested forums work great within the tree, but the forums at the root level are not showing any links. Any idea what I need to fix? Please note that my CMPS is in root and my forum is in /forum.
Thanks!
PapaSmurf
09-25-2007, 08:03 AM
Im getting this issue, (see attached).
memorex
09-25-2007, 12:50 PM
Great mod... there is just one small issue. the text color changes halfway down the list. I like the second color better, how would I go about making all the text this color.. www.mgn.cc is my domain.
Invalid ID
09-25-2007, 03:37 PM
Looks cool. Thanks
memorex
09-25-2007, 04:17 PM
silly me, my problem was with noscript blocking the yahoo.. hehe fixxed now. Thanks again for the great mod
Evolution06
09-25-2007, 07:13 PM
This is awesome so far I did the recommended php templet and also changed that line [$forums_array = array(0,0);] in the file and still get these errors
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 80
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 92
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /modules/treemenu.php on line 92
Dankness
09-25-2007, 07:23 PM
A couple of questions....
Does this follow the forum permission system? If a user cannot see a forum will it display it in their list?
Also, my nested forums work great within the tree, but the forums at the root level are not showing any links. Any idea what I need to fix? Please note that my CMPS is in root and my forum is in /forum.
Thanks!
Yes this of course follows forum permissions system. I did not code this to allow for Root Level Forums, In All Honestly the Forum this is designed for only had 3 and 4 level sub forums with just 2 or 3 Second Level subforums getting Links. The Array is to add 2 level Subforum Links. But there is no option yet for Root Level ForumLinks sorry maybe in the future I'll add it but probably not. Im sure you can try to add it yourself its not hard to do its in the treemenu.php file
Im getting this issue, (see attached).
Make sure the Javascript is being included, It appears your javascript is not being included.
therefore the menu is not being transformed into the tree and left as the list.
Great mod... there is just one small issue. the text color changes halfway down the list. I like the second color better, how would I go about making all the text this color.. www.mgn.cc is my domain.
Hmm, I can't view the forum list on your forum. Best thing to do is use the web developer toolkit, and under the Information Menu->Get Informaiton, click on the links and try to see what the class is they are listed as. Then change the class to work. I tryd to force a class on the menu but Yahoo's treemenu overrides it so you would probably have to change the treemenu.css file i'm guessing. I put a link somewhere in the first page of posts with a link to there documentation pages and you can learn about there CSS files there.
This is awesome so far I did the recommended php templet and also changed that line [$forums_array = array(0,0);] in the file and still get these errors
Hmm, what version of VBulletin and VBAdvanced are you using? Try changing the 0,0 to to Subforum ID numbers and see if the error still exists? I did not design this module for the new VBA 3.0 but I don't see why it would not work with it.
Evolution06
09-25-2007, 07:31 PM
Powered by vBadvanced CMPS v3.0 RC2 vb is 3.6.8
www.blizzfusion.com
Also if you click on any of the urls it takes you to page not found.
I tried changing it still nothing.
Dankness
09-26-2007, 01:38 AM
Powered by vBadvanced CMPS v3.0 RC2 vb is 3.6.8
www.blizzfusion.com
Also if you click on any of the urls it takes you to page not found.
I tried changing it still nothing.
The url's not found is because your on a page outside of your forum directory apparently. Somewhere inside of your vbulletin advnced settings has a option to rewrite links for various pages. It should be default set to clientscript.php you can add forumdisplay.php to it and it should rewrite the links with the proper url to it. I use the older version of VBA so i dont know where they hide it in the new VBA settings ( thats why i didnt upgrade i dont like the new layout for admin settings)
Evolution06
09-26-2007, 03:35 AM
ok so I just put a redirect html code into index.php file in public_html folder and moved my portal.php to forums and redirected to that now to just get rid of those errors at the top of the page other then that everything works good.
Any idea on those 2 error codes? I checked those 2 lines but not sure whats wrong.
Line 80
if ( (in_array($forumid,$forums_array, true)) OR (in_array($forum['parentid'],$forums_array, true)))\
Line 92
if ( (in_array($forumid,$forum['childlist'], true)) OR (in_array($forum['parentid'],$forum['childlist'], true)))
Dankness
09-26-2007, 04:22 PM
ok so I just put a redirect html code into index.php file in public_html folder and moved my portal.php to forums and redirected to that now to just get rid of those errors at the top of the page other then that everything works good.
Any idea on those 2 error codes? I checked those 2 lines but not sure whats wrong.
Line 80
\
Line 92
what does line 17, look like on your script?
$forums_array = array(36,109,164,207,221,224);
It should be something like that, but yours probably just has a zero?
try adding some forum ids to it and see if it goes away?
What this array is for, Is your Level 2 subforums that you dont want a link to, IE
Level 2 forums that are not forums but catagorys.
EDIT : Included is a new treemenu.php file, replace the one in your modules directory and rename this one to treemenu.php, It does not have support for Level 2 and Level 3 subforums, and just provides a link to every thing Below level 1.
Evolution06
09-26-2007, 05:18 PM
file uploaded and renamed to treemenu.php errors went away but nothing shows now. I mean no module no links
rainyleaves
09-27-2007, 02:51 AM
what does line 17, look like on your script?
$forums_array = array(36,109,164,207,221,224);
It should be something like that, but yours probably just has a zero?
try adding some forum ids to it and see if it goes away?
What this array is for, Is your Level 2 subforums that you dont want a link to, IE
Level 2 forums that are not forums but catagorys.
EDIT : Included is a new treemenu.php file, replace the one in your modules directory and rename this one to treemenu.php, It does not have support for Level 2 and Level 3 subforums, and just provides a link to every thing Below level 1.
Works great!!
Thanks.
Ps: How can I excluding specify forums?
* CMPS 3.0rc2 + VB3.68
beduino
09-27-2007, 03:24 AM
Same errors,
Last version of vbulletin and vBa.
Some news about?
tks in advance
Beduino
ok so I just put a redirect html code into index.php file in public_html folder and moved my portal.php to forums and redirected to that now to just get rid of those errors at the top of the page other then that everything works good.
Any idea on those 2 error codes? I checked those 2 lines but not sure whats wrong.
Line 80
\
Line 92
Evolution06
09-27-2007, 05:01 AM
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.
Dankness
09-27-2007, 05:08 AM
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.
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.
rainyleaves
09-27-2007, 05:36 AM
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
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.
<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 !!
ragtek
09-27-2007, 06:22 AM
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?
rainyleaves
09-27-2007, 06:25 AM
Yes, I'm sure.
Works perfectly with ../forums/.
just clientscript/yui.... CSS isn't working.
I don't know why.
Dankness
09-27-2007, 05:21 PM
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.
Evolution06
09-27-2007, 05:27 PM
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
maxicep
09-27-2007, 05:32 PM
thanks for update.
i got a question ?
navigation showing all forums and subforums before to completely load.
this showing so bad :(
Evolution06
09-27-2007, 09:42 PM
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
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.
<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.
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.
Dankness
09-27-2007, 10:13 PM
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.
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
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.
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
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:
//---> 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/forums/nexus.php?library=race@humans
is what i currently have.
rainyleaves
09-30-2007, 08:39 AM
Is there a way to save what was last expanded?
http://www.dragonsofdeityrising.com/forums/nexus.php?library=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
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
Is there a way to save what was last expanded?
http://www.dragonsofdeityrising.com/forums/nexus.php?library=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.
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:
//---> 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.
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.
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.
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
Trana
10-03-2007, 06:34 PM
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.
I could really use this! Thanks.
ragtek
10-04-2007, 08:59 PM
i'm working now on the problem with the hidden box until the content is ready
i think with this: http://developer.yahoo.com/yui/examples/event/event-timing.html it shouldn't be a problem
at momemt i have add this: style="visibility:hidden" id="treenavi" to my navi part
and in the script i add this: fetch_object('treenavi').style.visibility = 'visible'; but it is still fired befor it is realy ready*g*
ragtek
10-06-2007, 11:50 AM
i've solved it:)
i changed the script to:
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('treenavi').style.visibility = 'visible';
}
YAHOO.util.Event.onDOMReady(treeInit);
})();
and to the table/div whatever you have i added:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="visibility:hidden" id="treenavi">
style="visibility:hidden" id="treenavi"
so now it have a id(needed for the fetch_object method and it is set visibility:hidden, so it is hidden until YAHOO.util.Event.onDOMReady(treeInit); the "dom is ready" that means until everything is loaded
and then i fire the init function, now the tree is "built" and visibility is set
here's a video how it looks like: http://www.ragtek.org/tutorials/treemenu.htm
rainyleaves
10-09-2007, 03:20 PM
i've solved it:)
i changed the script to:
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('treenavi').style.visibility = 'visible';
}
YAHOO.util.Event.onDOMReady(treeInit);
})();
and to the table/div whatever you have i added:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="visibility:hidden" id="treenavi">
style="visibility:hidden" id="treenavi"
so now it have a id(needed for the fetch_object method and it is set visibility:hidden, so it is hidden until YAHOO.util.Event.onDOMReady(treeInit); the "dom is ready" that means until everything is loaded
and then i fire the init function, now the tree is "built" and visibility is set
here's a video how it looks like: http://www.ragtek.org/tutorials/treemenu.htm
Ragtek,
Could you please share edited file?
I really didn't know how edit file.
I don't know about the code where including.
I'm not a familliar. :o
Thnaks,
Best regards. :)
ragtek
10-09-2007, 03:24 PM
hi
sorry, no i cant because i'm using an other system(vbcms and not vbadvanced so i cant just export my) and i have not realy the time to make it but i'm sure dankness will update it soon
rainyleaves
10-09-2007, 03:28 PM
Oh, I see.. :)
Thanks for your reply.
Anyway, congratulation for your work!!
Trana
10-10-2007, 01:01 AM
hi
sorry, no i cant because i'm using an other system(vbcms and not vbadvanced so i cant just export my) and i have not realy the time to make it but i'm sure dankness will update it soon
Which .js file did you change that function in?
Thanks!
ragtek
10-10-2007, 05:21 AM
in this version it is direct in the template and the modul
<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();
}
YAHOO.util.Event.addListener(window, "load", treeInit);
})();
//]]>
</script>
Trana
10-10-2007, 11:57 PM
I have this:
<tr class="alt1"><td class="yui-skin-sam">
<div id="treenavi" 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();
}
YAHOO.util.Event.addListener(window, "load", treeInit);
})();
//]]>
</script>
</td></tr>
But it doesn't seem to work.
Dankness
10-13-2007, 07:18 AM
Sorry for the delays guys, I will be updating this thing hopefully by Monday, In the Update I will add Ragtek's idea to hide the Div until Javascript Creates it, and I will also be adding Options for Open/Close All to it I have already coded most of it but i just need to finish testing everything, Once again sorry for the delays but you have to understand I am a Freelance Web Developer and the only thing putting food in my stomache atm is my web work. So of course I have to put paying jobs way ahead of free mods like this. If you like this mod you guys are more then welcome to donate afew bucks to its development ( there is a nice option to do that right here thru vb.org ) But anyways I will have a updated version for everyone very soon.
rainyleaves
10-13-2007, 07:22 AM
Awesome!! Idea.
I run to the monday~ :)
sweeps78
10-15-2007, 02:31 PM
Dankness,
Thanks for the cool addon to vBa:) We started using it, and loved it, however we had to uninstall it. We'd love to continue using it, however, the features that we need were not available at the moment.
We have many top level forums and needed them as links in the navigator. More importantly, we needed the ability to add links outside of the forum. We run an online shop, so we needed to link to specific categories in our catalogue, with the ability to specify what level these are at. The default navigator in vBa does this, however, it doesn't have the sweet collapsible options like your add on does. If you plan on implementing these features, we'd be happy to send a donation your way for the hard work:) PM me if you are interested.
thanks!
Trana
10-17-2007, 03:19 AM
Sorry for the delays guys, I will be updating this thing hopefully by Monday,
Thanks!
BTW, is there a way to change the tree components to specified images? I'd like to make it a little sharper with some of my own navigation graphics.
ragtek
10-17-2007, 09:37 AM
yes
just replace the images in the clientscript/yui/assets folder;)
Dankness
10-21-2007, 03:20 AM
Updated, Thanks to Ragtek i used his method of hideing the list until it was properly made ( no sense reinventing wheels )
rainyleaves
10-21-2007, 05:36 AM
Thanks, Dankness. :)
Axel Foley
10-21-2007, 12:04 PM
Sorry but I uninstalled this one (but still tagged it).
You should create a zip file with all the required files and clear instructions on how to install it, which versions of vBAdvanced are supported and tested etc.
At this moment, to make it work, you have to read all posts, read advices of some of the users, test with modifications, use user-patched files etc.
Too messy for my board...I'll wait for a cleaner and working (ouf-of-the-box) version.
Thanks anyway. :)
Trana
10-22-2007, 02:00 AM
I updated my template with the info in the new .tpl file but the menu still shows up already expanded until the page loads. I thought it was supposed to be hidden until opened?
Dankness
10-23-2007, 02:58 AM
Ok, I have Completely Upgraded this module, You will require removal off the old header javascript additional codes that you had to do manually before. Also Reupload the All Files and Overwrite any existing, I have done many changes and will list the main changes below
This now works completely out of the box, there is very detailed instructions inside the zip and on the front page. Sorry to the people who could not make this work, it will work now.
Sorry for the messy releases so far, time is a very valuble resource.
Automatic Template Edit
Fixed Missing Forum URL for Forumdisplay an Javascript
Compacted All Javascript coding using YUI Java Script Compacter v2.5.5
Removed ugly symbols in front of Forum listings
Rewrote Installation instructions
And afew other things i can't remember at this minute.
Enjoy!
If you enjoy this hack I love donations' as atm my only job is freelancing
--ShawnC
Trana
10-24-2007, 08:39 PM
Thanks for updating this. I am still having a problem though.
You successfully hid the tree during the page load, but the table that it sits in (the module content) is still maximized until the page loads. This is really bad when you have a lot of forums as the module window can be the entire length of the page. Is there anyway to have it load already minimized?
ragtek
10-24-2007, 08:45 PM
lol
i would hide everything like i'm doing: www.ragtek.org
maybe i find some time to install vbadvanced and to help
if not: the whole "container" should be hidden until the page is loaded but i don't know if this is possible in vbadvanced
Dankness
10-24-2007, 09:51 PM
Thanks for updating this. I am still having a problem though.
You successfully hid the tree during the page load, but the table that it sits in (the module content) is still maximized until the page loads. This is really bad when you have a lot of forums as the module window can be the entire length of the page. Is there anyway to have it load already minimized?
Yea, i see what your saying, the board i really use it on the module is at the bottom so i never noticed it, and my test board only has 3 or 4 forums to test the levels so i didnt notice, I'll reupdate again in afew days, This release I was more intersted in having it properly packaged and documented. O and removing the header template edit was important in my book and so was minimizing all that javascript with the YUI Compressor 2.2.5 saves load time. Plus its all on your server so its cacheable.
lol
i would hide everything like i'm doing: www.ragtek.org
maybe i find some time to install vbadvanced and to help
if not: the whole "container" should be hidden until the page is loaded but i don't know if this is possible in vbadvanced
Yea, i guess that was the best idea lol. One of these days Im gonna learn to listen to people :P
Axel Foley
10-24-2007, 10:46 PM
Dankness...great job...(re-installed) ;)
It now works out-of-the-box.
I would modify the installation instructions:
- In case of a fresh installation, you don't need to upload the treemenu.php file as the .module file will try to recreate it and vBA would ask if you want to overwrite, rename etc. :) Simply import the module and upload the clientscript directory for fresh installation of the hack on vBA 3.0RC2.
Also, the URL replacement is now working when you click on the links. ;)
Keep up the great work...
ragtek
10-25-2007, 09:02 AM
ive found a newer method for hidding ;)
szenario:
if a user have no js, he cant see the menu
ok it is not nice if its just a list and no treemenu but its userfriendlier :)
so what we could make:
at top of the template we can add:
<script type="text/javascript">
document.write('<' + 'style type="text/css">');
document.write('#ourelement p{display:none;}');
document.write('<'+'/style>');
</script>
so what does this do:
it adds onthefly a styleformating for hidding our content ;)
so if somebody have no javascript he sees it ;)
heres a tut i wrote
sorry for bad english ;)
yui-treemenu with a crazy idee (http://www.developer-network.org/showthread.php?t=40)
daniel
rainyleaves
10-27-2007, 02:49 AM
Some category has wrong number.
See attachment.
I think the number must be 53.
Please help... :)
Thanks.
Dankness
10-28-2007, 07:25 PM
Some category has wrong number.
See attachment.
I think the number must be 53.
Please help... :)
Thanks.
EDIT : The problem is that I only counted the total threads When your Forum is Level 1, everything else shows posts for that specific forum. I'll look into another way to decide whether you have a subforum or not but for now that's just how it was coded.
yoyoyoyo
11-06-2007, 08:12 PM
Is there anyway to have this work with advanced integration, so I can display it on forumhome?
Trana
12-25-2007, 10:30 PM
Yea, i see what your saying, the board i really use it on the module is at the bottom so i never noticed it, and my test board only has 3 or 4 forums to test the levels so i didnt notice, I'll reupdate again in afew days, This release I was more intersted in having it properly packaged and documented. O and removing the header template edit was important in my book and so was minimizing all that javascript with the YUI Compressor 2.2.5 saves load time. Plus its all on your server so its cacheable.
Any chance you have figured this issue out? I would like to use this mod on my board but the resizing thing on page load looks a bit lame.
Any help would be appreciated!
Alfa1
12-26-2007, 01:59 PM
Great mod! Uploaded and installed in 30 seconds!! Works like a charm.
Some questions:
- How do I change the design of this? I really like the way it is displayed on http://www.shawnc.org/ with multiple gradient background images.
- How do I add other parts of my site to this? I'd like to add my Wiki structure, Photopost Pro (http://www.photopost.com) and LDM (https://vborg.vbsupport.ru/showthread.php?t=119041) structure to this.
- Is there a way to pull the categories from Photopost Pro (http://www.photopost.com) and LDM (https://vborg.vbsupport.ru/showthread.php?t=119041)?
Could you please add instructions, how to do this?
Trana
12-26-2007, 07:57 PM
Just to clarify the problem as I see it....
The CMPS module starts out huge and blank, this is due to the "hidden" treemenu which starts fully expanded. As the page loads the menu is filled and condensed, causing the module to shrink to its normal size. All methods for "hiding" the menu don't work because the content is still there and the CMPS module is dynamically resized to accommodate it.
ragtek
12-26-2007, 08:25 PM
Just to clarify the problem as I see it....
The CMPS module starts out huge and blank, this is due to the "hidden" treemenu which starts fully expanded. As the page loads the menu is filled and condensed, causing the module to shrink to its normal size. All methods for "hiding" the menu don't work because the content is still there and the CMPS module is dynamically resized to accommodate it.
Thats not right.
As i wrote you in the pm and on my page http://www.developer-network.org/webdesign/java-script/40-yui-treemenu-crazy-idee.html if you make it this way, the modul is expanden but from beginn hidden( nobody sees anything just look at my example http://www.developer-network.org/sandbox/treenav3.php )
when the load is over and the page is ready it appears
so nothing is to big and destroys the design
Alfa1
12-26-2007, 08:27 PM
Indeed, that is a strange effect. I have the same as well, while I just imported the module, without changing anything.
ragtek
12-26-2007, 08:31 PM
anybody have a link for me where i can look for the "effect" ?
maybe i'm missunderstanding something
Alfa1
12-27-2007, 01:49 AM
anybody have a link for me where i can look for the "effect" ?
maybe i'm missunderstanding something
Sure, just look at the example listed in your opening post:
http://www.shawnc.org/
Load the page first. Then hit F5 and watch what it does.
Edit: I just checked out several sites using YUI, including yahoo! answers. All seem to have this effect.
Trana
01-02-2008, 12:18 AM
The effect is a lot more pronounced if you have a lot of forums and the page takes a second or two to load.
Alfa1
01-20-2008, 04:07 PM
Could you please consider adding this for NuWiki and vbblog?
ragtek
01-20-2008, 04:10 PM
what do you exactly mean with adding?
put vbblog & nuwiki into it?
Alfa1
01-20-2008, 07:52 PM
No, I mean adding multiple YUI trees. One for each part of the site.
I hope this will make it more clear:
Forum
forum YUI tree
Blog
vbblog YUI tree
Wiki
NuWiki YUI tree
vbboarder
08-28-2008, 01:58 AM
Thanks for this cool mod! Works with VB 3.7.3 & VBA 3.0.1 - tested on both Firefox 2 & IE7 - great work!
BTW, is this mod still supported? This mod hasn't received a post in over 6 months. I'm sure you would get lots more installs if you posted this mod in the VB 3.7 Mod section.
Cocko
09-24-2008, 10:16 PM
Not sure, but I think I have installed this module months ago.
At last it was not acitve. Maybe there were errors befor.
I just have tried a re-install, and got blank screen.
vB 3.7.3, vBa 3.01.
Blackhat
09-30-2008, 08:02 PM
can I use this on my sidebars on the forum index ? (no VBA)
Alfa1
08-31-2009, 06:17 PM
This still works for vb 3.8.4 and the latest CMPS.
Does anyone know how to add any of the below:
blog categories
groups
threads from a specific forum
Photopost categories
Link and Download Manager categories.EDIT: This does not work on IE8
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.