Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorfery
    • CommentTimeNov 9th 2006
     # 1
    as the topic allready says .. with such + - icons ... would be a nice feature to keep the panel clean and tidy
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008
     # 2
    I was thinking the exact same thing, but also with cookies so that they would stay configured to the user's liking.

    Anyone else think this a worthwhile extension?
    •  
      CommentAuthorFyorl
    • CommentTimeJan 24th 2008 edited
     # 3
    Yeah seems like a pretty decent idea. Not too difficult to implement either. Could probably hook into Mootools for some slidy effects.

    In fact, all of the cookie and processing work could be done with Mootools too. Just a matter of hacking the panel to give the +/- buttons. Although I was thinking maybe just clicking on the header should collapse it?

    Edit: Thinking about it some more. There'd be very little Vanilla hackery required, pretty much the entire thing could be done with javascript. I'd just need to write an extension to apply it.
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008
     # 4
    Mootools (or jQuery ) - whatever the general standard of Vanilla - is there a general standard?

    Does this mean you've started on such an extension? :)
    •  
      CommentAuthorFyorl
    • CommentTimeJan 24th 2008
     # 5
    I wasn't aware there was a general standard, I'm not sure which library Vanilla uses for its javascript.

    Either way I have indeed started (and almost finished) such an extension.
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008
     # 6
    That's probably because there isn't one. Either way, there's a jQuery extension and Mootools (thanks to you, Fyorl).

    Cheers!
    •  
      CommentAuthorFyorl
    • CommentTimeJan 24th 2008
     # 7
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008 edited
     # 8
    Wow you are fast! I tried installing both Mootools and Collapsible Panel but I get a js error:
    Window.addEvent is not a function (slidepanel.js line 2)
    It appears that Mootools (i.e. mootools.js) is not loading - even though I've verified it is the first line in conf/extensions.php. I've also tried disabling the Yellow Fade extension, but to no avail.
    •  
      CommentAuthorFyorl
    • CommentTimeJan 24th 2008
     # 9
    Hmm well it's bound to have some issues with other javascript libraries installed. Can you give me a list of the scripts in your <head> and I'll try to guess what's causing the problem.
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008
     # 10
    Here are the scripts:
    <script type="text/javascript" src="/js/global.js"></script>
    <script type="text/javascript" src="/js/vanilla.js"></script>
    <script type="text/javascript" src="/js/ajax.js"></script>
    <script type="text/javascript" src="/js/ac.js"></script>
    <script type="text/javascript" src="/extensions/JQuery/jquery-1.2.1.min.js"></script>
    <script type="text/javascript" src="/extensions/JQThickBox/thickbox-3.1.min.js"></script>
    <script type="text/javascript" src="/extensions/Poll/functions.js"></script>
    <script type="text/javascript" src="/js/prototype.js"></script>
    <script type="text/javascript" src="/js/scriptaculous.js"></script>
    <script type="text/javascript" src="/extensions/Notify/functions.js"></script>
    <script type="text/javascript" src="/extensions/LiveSearch/livesearch.js"></script>
    <script type="text/javascript" src="/extensions/CategoryFilter/functions.js"></script>
    <script type="text/javascript" src="/extensions/CollapsiblePanel/slidepanel.js"></script><style type="text/css">
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008 edited
     # 11
    However, maybe I'm doing something else wrong because I have another development Vanilla and I've only enabled those two extensions and I'm still getting a JS error (i.e. mootools.js is not showing up and it is not an extension conflict). Do I have to do something special to run Mootools?
    •  
      CommentAuthorFyorl
    • CommentTimeJan 24th 2008
     # 12
    Well I think the problem may possibly stem from the fact that Mootools isn't being included at all there... The Mootools extension generates a file with an md5 hash as its name. So that means any weird-lookin' scripts will be the mootools file. I'm not quite sure what's happening there. You must have enabled the Mootools extensions because otherwise the Collapsible Panel extension will insert a fallback script. So that must mean there's something wrong with the Mootools extension but I have no idea what would cause it to not display a script at all, especially since you checked that it's at the very top of the extension list.

    Either way, I'll be working on an upgrade for the Mootools extension to allow easier re-ordering of the Javascript files. I may even go as far as to make a user-interface for it. That could possibly help with debugging but we'll see. I'm off for now but if you discover anything else, let me know.
    •  
      CommentAuthorskube
    • CommentTimeJan 24th 2008
     # 13
    Yeah, I don't know either. In any case, thanks for everything...
    • CommentAuthorfery
    • CommentTimeJan 24th 2008
     # 14
    hm...

    memo to myself: fyorl is faster than his own shadow
    •  
      CommentAuthorskube
    • CommentTimeJan 25th 2008
     # 15
    Anyone else having problems getting this to work?
    •  
      CommentAuthorskube
    • CommentTimeJan 25th 2008 edited
     # 16
    So if you don't enable Mootools extension, the fallback script should make Collapsible Panel still work?

    Edit: Actually, I tested this on my development server and if I disable the Mootools extension Collapsible Panel works.
    •  
      CommentAuthorFyorl
    • CommentTimeJan 26th 2008
     # 17
    Yeah, I don't want to force people into using another extension I wrote >_<
Add your comments
    Username Password
  • Format comments as