Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Main Menu and things.

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

«1

Answers

  • 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..

  • 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?

  • 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.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • 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 Developer MVP

    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 )

    422 Real Estate Australia , now open Check it out

  • 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.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    422
  • 5) adjust accordingly to your needs.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • 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?


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • 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.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

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

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @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.

    422peregrine
  • 422422 Developer MVP

    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 !

    422 Real Estate Australia , now open Check it out

    peregrine
  • Not entended to offend anyone here. Sorry fi you misunderstood my message. not good with my english! I just wanted to use the Vanilla style template with the current code plus add a menu. SO SORRY if i offended anyone here, im not familiar with the structure of a template, i read all but im using a php way not an smarty way...

  • 422422 Developer MVP

    smarty templates mirror php templates.

    so for users using smarty its default.master.tpl for php users its default.master.php

    If you wish to fiddle with code, copy across from core folders. To your theme folder, keeping hierarchy same. Search forums for how to do this. If you wish to edit a file, then edit the .php files. In this instance default.master.php

    If you work on a theme folder ( editing .php files ) then worse case scenario is you bugger up the files within that theme, but not your entire forum.

    So its safe trusted clean and helps you learn.

    422 Real Estate Australia , now open Check it out

  • @peregrine hey man here's the link of the plugin i used on my site : http://vanillaforums.org/addon/categories2menu-plugin

    hope this helps ... i see overwhelming response on this thread can someone please help me with my problem ?>T_T http://vanillaforums.org/discussion/20438/random-url-being-generated-by-vanilla#latest

    peregrine
  • @freeeeemind

    the plugin works, nice find

    @barrahome if you install http://vanillaforums.org/addon/categories2menu-plugin

    use the vanilla default theme to test or embed-friendly - it definitely works!

    and then modify the code to reflect this - you should be able to see how it works. if this doesn't help you - you've got some studying to do! and don't blame the documentation - because this is a cut and paste experience.

    replace lines 73-112 with this - and set your links and title that you want/

    // Add the jQuery JavaScript to the page
        $Sender->Head->AddString($Cat2MenuJQuerySource);
    
    
        if ($Sender->Menu) {
    
        // Build the first item
        $Sender->Menu->AddLink('one', "Heading-One",'/categories/', FALSE);
        //  Build the secondary Menu for first item
        $Sender->Menu->AddLink('one', "link one A", '/categories/a1', FALSE);
        $Sender->Menu->AddLink('one', "link one B", '/categories/a2', FALSE);   
        $Sender->Menu->AddLink('one', "link one C", '/categories/a3', FALSE);       
    
    
        // Build the second item
     $Sender->Menu->AddLink('one', "Heading-Two",'/categories/', FALSE);
        //  Build the secondary Menu for first item
       $Sender->Menu->AddLink('two', "link two A", '/categories/b1', FALSE);
       $Sender->Menu->AddLink('two', "link two B", '/categories/b2', FALSE);    
       $Sender->Menu->AddLink('two', "link two C", '/categories/b3', FALSE);        
           }            
        }
    

    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • 422 and whu606 - You ever feel like you're a comedian and you are playing before a tough crowd and you can't get a laugh. - not even a like in the house let alone an accept.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • im not sure where's this headed im sure the gentleman is just asking for this: http://vanillaforums.org/addon/categories2menu-plugin

  • 422422 Developer MVP

    Always @peregrine , im kinda going off the forums. Feels desolate and barren of late.

    422 Real Estate Australia , now open Check it out

  • freeeeemind said: im not sure where's this headed im sure the gentleman is just asking for this: http://vanillaforums.org/addon/categories2menu-plugin>

    barrahome said: Im lost on this, lack of documentation for create a simple menu...>

    well freee....mind - I'm lost on this, lack of explanation when asking a simple question. When a person asks a somewhat ambiguous question without laying out the exact structure of what they want, we will always be at a loss at providing the answer, won't we. And I am not so sure all he wants is to wrap the categories in a menu, other wise one would have to believe he would have said that. Unfortunately there will never be enough documentation for an ambiguous question.

    422 said: Always @peregrine , im kinda going off the forums. Feels desolate and barren of late.>

    I'm also going to take a break I hope.

    Hasta luego - mucho luego.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    422
  • I dont want to mod category's i want to arrange the ENTIRE menu. For example a drop down for the USER, where he has the logout, profile, messages, then other for add main menu stuff and pages wich i dont yet got them done. But this is lot of reading wich i will start to do now. I dont like smarty, is like slow me down, plain php will always be faster.

  • @barrahome , @peregrine has explained it to you on peregrine's Posts: 868 , im not sure what are you looking for still. you might want to study smarty a little it's very easy once you get the fundamentals and understood the flow..

Sign In or Register to comment.