Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Main Menu and things.

edited June 2012 in Vanilla 2.0 - 2.8

Im looking for someone who can mod the main menu with an example that i googled wich i want to use, excuse my poor english but anyone here can do the job?

Best Answers

  • 422422 MVP
    Answer ✓

    Try and be specific with your question.

    This is what i have ....

    This is what i want to do ...

    There was an error rendering this rich post.

  • 422422 MVP
    edited June 2012 Answer ✓

    Right...u do realise our themes utilise standardised template hooks. So any changes you make to default, makes changes to custom theme. We rarely touch menus for obvious reasons.

    Still no idea what you are trying to accomplish. The menu is within default.master.php anyway

    There was an error rendering this rich post.

«1

Answers

  • PS: the mode is here: http://www.acajugas.com/

  • 422422 MVP
    Answer ✓

    Try and be specific with your question.

    This is what i have ....

    This is what i want to do ...

    There was an error rendering this rich post.

  • edited June 2012

    Is simple... The menu that you see there, i want it integrated to the normal menu code at default.master.php ... i did buy a theme from you but didnt worked to me so i will mod the default one..

  • 422422 MVP
    edited June 2012 Answer ✓

    Right...u do realise our themes utilise standardised template hooks. So any changes you make to default, makes changes to custom theme. We rarely touch menus for obvious reasons.

    Still no idea what you are trying to accomplish. The menu is within default.master.php anyway

    There was an error rendering this rich post.

  • I'm triying to apply a custom CSS to get DROP DOWN functionality on the menu... i want this working on the menu.. http://www.htmlcssdeveloper.com/tutorial/advanced-html-css/simple-css-drop-down-menu.html

  • Did you get what i tried to explain 422?

  • peregrineperegrine MVP
    edited June 2012

    barrahome said:
    Im looking for someone who can mod the main menu with an example that i googled wich i want to use, excuse my poor english but anyone here can do the job?

    Does this mean you want someone else to do it for you OR do you mean to provide assistance to you while you do the brunt of the work. Just looking for a clarification, other than that I can't help you here.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Need someone to write it for me or explain me how to do it. I want to add drop down menus to order the menu in a better way, for example, Profile and mouse over then you see things like My Profile, Logout, etc.

  • Not asking for someone to do it for free ofc! :)

  • 422422 MVP
    edited June 2012

    the menu is constructed around < li> </ li> tags

    So submenus have child ul li elements...

    like

    < ul>
    < li>this</ li>
    < li>that
    < ul>
    < li>the other</ li>
    < li>and this</ li>
    </ ul>
    </ li>
    < li>contact</ li>
    </ ul>

    for posterity ( I so hate this editor )

    There was an error rendering this rich post.

  • i know how a menu is constructed, the issue is that i cant define each element of if a element of the menu is a sub!

  • My experimentation with a dropdown menu.

    1. go to vanilla/library/vendors/SmartyPlugins

    make a copy or  function.custom_menu.php 
    and call it  function.custom2_menu.php
    
    change line 18  in your newly created function.custom2_menu.php to 
    
    function smarty_function_custom2_menu($Params, &$Smarty) {
    
    change line 40 to (e.g.)
    
          $Result = '<div id="themenu"> <ul class="dropdown">
                <li><a href="#">Menu item 1</a>
                    <ul class="sub_menu">
                         <li><a href="#">Sub menu A</a></li>
                         <li>
                            <a href="#">Sub-sub menu A</a>
                            <ul>
                                <li><a href="#">AAAAAA</a></li>
                                <li><a href="#">BBBBBB</a></li>
                            </ul>
                         </li>
                         <li><a href="#">Sub Menu B</a></li>
                         <li><a href="#">Sub Menu C</a></li>
                    </ul>
                </li>
                <li><a href="#">Menu Item 2</a>
                    <ul class="sub_menu">
                        <li><a href="#">sub menu 2-1</a></li>
                        <li><a href="#">sub menu 2-2</a></li>
                         <li>
                            <a href="#">ZZZZZZZZ</a>
                            <ul>
                                <li><a href="#">Here we are</a></li>            
                            </ul>
                         </li>  
                <li><a href="#">Menu Item 3</a>
                    <ul class="sub_menu">
                         <li>
                            <a href="#"> the idea</a>
                            <ul>
                                <li><a href="#">11111111111</a></li>
                                <li><a href="#">2222222222</a></li>
                                <li><a href="#">333333333</a></li>
                            </ul>
                         </li>          
                    </ul>
                </li>   
            </ul>
        </div>';
    

    2. if you are using a theme with default.master.tpl

        you could add a tag  custom2_menu  (other items for reference).
    
        {profile_link}
        {custom2_menu}
        {signinout_link}
    

    3. next modify the file that creates "themehooks.php" file in your theme folder

        public function Base_Render_Before($Sender) {
                     .....        
                     ....
                      $Sender->AddJsFile('jquery.dropdownPlain.js');
                  $Sender->AddCSSFile('jmenu.css');
        }
    

    4. next go to http://css-tricks.com/simple-jquery-dropdowns/

    and copy the the jquery.dropdownPlain.js  into a js directory in your theme.
    do the same and add the css to a file called jmenu.css in design
    
    i made on mod to the css file (added the z-index.
    
    ul.dropdown li:hover                { background: #F3D673; color: black; z-index:100; position: relative; }
    

    that should give you a start.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 5) adjust accordingly to your needs.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • there's a drop down menu just search it look at my site www.txtmyt.com is this what u need? you can search it on the plugins

  • what plugin? is it in the vanilla add-ons directory?
    if so, where?
    if not, why don't you add it?

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • How i do enable the smarty support?!?!?!

  • barrahome said:
    How i do enable the smarty support?!?!?!

    what do you mean by smarty support ? what version of vanilla are you using. Smarty is built in.

    Some themes use default.master.tpl which uses smarty.

    e.g. look at the theme EmbedFriendly.

    I suppose you could just create a default.master.tpl that mimics the default.master.php
    if you want to use a smarty template. But you don't really need smarty to do what you need to do you could modify the default master.php to use

    the vanilla/js/library/jquery.menu.js.

    There are all sorts of functions to use.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Im lost on this, lack of documentation for create a simple menu...

  • @barrahome

    Vanilla has a 'simple' menu, and it is easy to add items to it.

    You want to make your menus drop-down, fair enough, but it is up to you (and the community if they have the inclination to help) to do that, not for the developers to provide documentation for every change a user might want to see.

    You have been given help by @eregrine.

    If the changes are beyond your skill levels, that is not the fault of the developers.

  • 422422 MVP
    edited June 2012

    Seems like theres very specific documentation within this thread. Good work @peregrine, and thanks @whu606.

    For @barrahome, if I inadvertantly say to a mechanic how do I change a "Wheel" .. and he gives me the information .. I dont then respond with a limited retort like you did , implying he and the entire car manufacturing industry have failed to demonstrate to me how to build a car !

    You asked , he answered and I think beyond normal scope. Perhaps reword or rethink your responses, because your reply .. hurts helpers/coders and makes them think twice about the effort they make in assisting you !

    There was an error rendering this rich post.

Sign In or Register to comment.