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)

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

Quote:

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

Quote:

Originally Posted by elmati (Post 1345994)
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

Quote:

Originally Posted by elmati (Post 1346007)
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

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:
Code:

$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

Quote:

Originally Posted by ragtek (Post 1346201)
i've put now this into my php for seeing if it is working:
Code:

$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:

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

Quote:

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


All times are GMT. The time now is 01:51 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.01194 seconds
  • Memory Usage 1,751KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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