0
Welcome Guest! Login
0 items Join Now

argg Im stupid! How to create a menu

    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Shania wrote:
      I did that as well and it still opens in another page thats blue not red, and I am soooo silly its because I didnt create that header menu I just renamed one that was there and I think thats why it keeps opening them in a different window. lol

      On upside I have learnt to make a menu lol

      Thank You! :)

      I am sorry, i didn't fully understand correctly what you wanted to do.

      Here's what to do, with a 100% money back guarantee that it will work. ;)

      login to the Admin backend, choose Content/ Static Content Manager.
      Click "New".
      Give the new static content a title, let's use "Test". Create a bit of content. Click Save.

      Now, from the top admin menu choose Menu/ main Menu.
      In the main Menu menu manager screen click "New".
      In the New Menu Item screen click "Link - Static Content".
      In the Add Menu Item :: List - Content Section screen give your menu item a title, say "Test".
      In the Parent Item area choose AusArena Info.
      Click Save.

      May I suggest that you try publishing the Main Menu to the Left position? You can always remove it or move it later.
      To do this, login to the admin backend.
      Choose Modules/ Site Modules.
      In the Module Manager [site] screen click Main Menu (or click the box beside the name and click Edit on the top menu).
      In the Main Menu Edit screen choose the Left Position and ensure that the module is published.
      Click Save.

      From here you should be able to use these instructions to achieve what you are looking to do.

      Best of luck, feel free to post for any assistance.

      Cheers!
    • Last Edit: 18 years 4 months ago by Bob Ateah.
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • lol I like the 100% money back garanteed.
      Thats good because I can create a top menu now too :)

      Look at this Pic please:

      This image is hidden for guests.
      Please log in or register to see it.


      thats where menu is, and content in that left hand side menu needs to display in that same window/page. Under the banner and still showing the menu, and everything else that is on that page..

      But it doesnt it shows here:

      This image is hidden for guests.
      Please log in or register to see it.
    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Try the instructions in my previous post (print them out mayhaps) and you will see how to change your menu to work the way you want, really! The colors will work as you desire and the content will open as you want. Once you get the hang of it you will find that it makes sense.

      Best of luck and feel free to post for help.

      Cheers!
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Here's what to do, with a 100% money back guarantee that it will work. Wink

      login to the Admin backend, choose Content/ Static Content Manager.
      Click "New".
      Give the new static content a title, let's use "Test". Create a bit of content. Click Save.

      Now, from the top admin menu choose Menu/ main Menu.
      In the main Menu menu manager screen click "New".
      In the New Menu Item screen click "Link - Static Content".
      In the Add Menu Item :: List - Content Section screen give your menu item a title, say "Test".
      In the Parent Item area choose AusArena Info.
      Click Save.

      May I suggest that you try publishing the Main Menu to the Left position? You can always remove it or move it later.
      To do this, login to the admin backend.
      Choose Modules/ Site Modules.
      In the Module Manager [site] screen click Main Menu (or click the box beside the name and click Edit on the top menu).
      In the Main Menu Edit screen choose the Left Position and ensure that the module is published.
      Click Save.

      From here you should be able to use these instructions to achieve what you are looking to do.

      Best of luck, feel free to post for any assistance.

      Cheers!

      Hmm, I did that.

      Now I have a Top Menu under Header named "Aus Arena Admins" Which is okay for now... but this header menu shows as white for some reason which again is okay and not that important for now.

      On my Main home page I have the main menu on the left hand side and inside that menu it has "AusArena Admins" which is not where I want it.

      I need a page for itself, and a menu that is displayed on a specific page and any link content thats clicked from the menu displays only on that specific page.

      Not sure, I thought I explained it clearly *scratches head* Not sure how else to explain it now...

      Lets start again maybe.

      Okay I want a new page, fresh new page.. example top header link menu named "AusArena Info"
      Now when someone clicks top link menu or navigation top menu.. it will open the site to that page.
      Now in that page I will need a left hand menu. Not a main menu that displays in the home page or any other page. Only displays on the "AusArena Info" page... So when your in the home page, the main menu there does not show anything or has any link content in the home main menu.

      It all is in another menu of some sort that is dedicated too the "ausarena info" page.

      Also I dont know how to set that page to a specific colour

      I followed your instructions and it created a new page but added content to the main menu where it needs to be in its own menu and page is blue... needs to be red as does the top navigation menu.

      I appreciate all the time your taking to write the steps up you are as well.
      Sorry If I am causing a headache but I think we have misunderstandings going on ?

      And I dont want my money back (least now yet anyway) :P
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Anyone know what Im doing wrong ?

      Ive tried above but its not what I am trying to achieve
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Best wya it to make a new page.. new top menu if thats what its called the link naviagtions at teh top under the header.. example like his site:

      lms.org.au/start/index.php?option=com_co...ection&id=1&Itemid=2

      At the top he has:

      Home, News, forums, links, downloads, gallery etc etc

      Those Top menus are Not linked the the home page Main Menu.
      They are independant.

      How do I do that ?
      Then example once I have a top menu named "AusArena Info"
      On that page I can add a menu to the left that has info about AusArena and will open in that same page.
      And not be displayed in the "main menu" thats on the home page.
    • Red's Avatar
    • Red
    • Sr. Rocketeer
    • Posts: 131
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Only Stupid people presume and never ask questions...You asked a question, how can you be stupid?

      If changing it to blue is what you need, you need to alter the array in the template
      // ***************************************************
      $menu_name = "mainmenu";     // mainmenu by default, can be any Joomla menu name
      $default_color = "blue";
      $menu_colors = array("default","green","gold","orange","red","purple","default");  
      $default_font = "default";         // smaller | default | larger
      $show_pathway = "true";        // true | false
       
      // ***************************************************

      An array works as thus...

      $key > Value

      eg array (menu color) =
      $key >menu1 = Blue
      $ key> Menu2 = Red

      What it's really saying is
      key 0 = Blue
      key 1 = Red

      The php outputs keys in script and you can see them as $key > Value with value being = to description or name or anything....
      In this case I will say $key 0 > value = blue.

      So in that you can see php gives them default numbers 0 1 2 3 and so on....
      This is true regardless of what you call the key or what you call the value. value could be anything...even another array....

      (SMF or even Windows runs on one giant array...it's called and held in memory, when a value in that array is called, the magic begins)

      What you have there is an array that is working like
      array value 1 2 3 4 5 and so on resulting in
      default","green","gold","orange","red","purple","default"

      or

      0 1 2 3 4 5 0

      $key 0 > Value = blue

      To change that you have to change the order....
      Take a colour and make it occur twice

      default","green","gold","orange","red","red","default"

      or

      blue","green","red","red","red","red","blue"

      You don't even have to include default.......

      All its going to do is output 0 3 2 2 2 2 0

      (Php will output it regardless because php thinks default is number 0 or number 5, though default is not part of this array, it's only the point we can step off from, like pointing at a number and counting in circles from that point.).

      So php knows default only as 0 or 5or anything we set it to? So I siad blue = default. blue = 0 and so does default but we can ask php to set default as any number in that array....Start at 5=Purple so then default = Purple.

      then the array will begin with 5 / Purple.
      We have 6 colors and the array is 0 -5 (or 6, arrays start at 0 since we are working in digital so 0 is a value)

      Knowing that, we can set the menu to go 0324251. start at 0 = blue and go from there.....it will run in circles until the cows come home and beyond...



      As for the menu...

      Content as in typed Stuff has Categories / sections / The content. Its easy to get lost in there,,,

      I seem to get the impression you have typed something, published it and you can page through and see it?

      If so just copy the URL and create New menu item >new > URL > Paiste it in, name and that should be it....

      If you look at my website and open the forum in Narrow / wide or Vwar all those are URL links. nothing or very little is a component or content...

      If you have the URL, then that's all you need..
      I actuallly have never tried direct linking to content, though I know Joomla can do it....

      If using the menu URL you have in the post above, go in a little further to the AA 2.7 write up I made..

      Thats
      lms.org.au/start/index.php?option=com_co...=view&id=10&Itemid=2

      I can use the menu system to make it a menu by going into the menu manager
      New Menu > URL > Name {AA 2.7} (paiste in that same URL) and make that a menu item....

      It iis much the same thing anyway....

      To clear up any other issues...
      How did I get the Forum to have the same menu?
      To do that I simply hard coded the menu links. This means that I will always have to update 3 templates in a sence whenever I make a change, but it's not alot of work. I simply copy the url, paiste it into the template copy I have at home, change the name, and then copy that change to the other template, Uplaod both and im done. about 20 seconds more work that doing just 1 menu in Joomla Backend. To show you what it looks like....

      This is the menu from Vwar (Virtual War)

      This is not at all Joomla CMS but a totally independent system.

      lms.org.au/war/war.php
      <div id="menubar">
                          <div class="bolts_l">
                               <div class="bolts_r">
                               <div id="mainmenu">
                               <div id="navcontainer">
                               <ul id="navlist">
      <li><a href="http://lms.org.au/start/index.php?option=com_frontpage&Itemid=1">home</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_content&task=section&id=1&Itemid=2">News</a></li>      &nbsp;                      
      <li><a href="war.php">Wars</a></li>                     
      <li><a href="http://lms.org.au/forum">Forum</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_weblinks&Itemid=23">Links</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_docman">Downloads</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_rsgallery2&Itemid=105">Gallery</a></li>
      <li><a href="http://www.aa-mbs.com/serverlookup.php?ip=203.98.74.180%3A1716">Server</a></li>
      <li><a href="challenge.php">Challenge Us</a></li>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  </ul>
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  </div>  
                          </div>
                     </div> 


      This is From SMF again a totally independent system that I have wrapped as well...
      In the wrapped version I use the submenu in Joomla to reflect SMF menues.

      (The only one you can't use is the switching log in / log out...
      To do that, I had to seperate it in both versions for consistency and I simply created an entire new menu function so I then add >> template_menu2 <<<)


      This is standalone SMF..


      www.lms.org.au/forum/


       
           <div id="menubar">
                          <div class="bolts_l">
                               <div class="bolts_r">
                               <div id="smf-mainmenu">
                          &nbsp;  <ul>
      <li><a href="http://lms.org.au/start/index.php?option=com_frontpage&Itemid=1">home</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_content&task=section&id=1&Itemid=2">News</a></li>           &nbsp;                      
      <li><a href="http://lms.org.au/start/index.php?option=com_vwar&Itemid=29">Wars</a></li>                     
      <li><a style="color: #F4B800;" href="http://lms.org.au/forum/">Forum</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_comprofiler&task=usersList&listid=5&Itemid=107&action=search">Members</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_docman">Downloads</a></li>
      <li><a href="http://lms.org.au/start/index.php?option=com_rsgallery2&Itemid=105">Gallery</a></li>
      <li><a href="http://www.aa-mbs.com/serverlookup.php?ip=203.98.74.180%3A1716">Server</a></li>
      <li><a href="http://lms.org.au/war/challenge.php">Challenge Us</a></li>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  </ul>
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  </div>  
                          </div>
                     </div> 
                     </div>
                     <div id="submenu">
                     &nbsp; <div class="subleft">
                     &nbsp; &nbsp; <div class="subright">
                           <div class="submenunav">';
                           
                &nbsp; echo'     &nbsp;  <span class="submenu">',template_menu(),'</span>';
                     
           // include the upshrink button.... this is the upshrink button for the user info section-----------------------------//
           echo '
                               <div height="32" style="float: right;" id="shrinkme"><span class="smalltext"><a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="top" style="margin-top: 0px; margin-right: 5px;" /></a>
                          </span>
                          </div></div>'; 
           &nbsp; &nbsp; &nbsp; 
       

      As you can see, it's all hard coded. I just made the CSS match the template for Joomla.
      In the SMF menu you can see the include >>template_menu() <<<
      that's native SMF menu, a tad edited......
      Joomla CSS it's output and design is expecting the menu to be made of an unordered list, with no formatting at all. Surrounding that is the mainmenu and submenu div. Both are similar...
      (ul)
      (li)(URL...) Item name (/li)

      So in all menues I had to reflect that expectation
      You will see even the SMF menu has that formatting, or lack of....Because CSS is so structured and elegant, I can very quicly make just one menu, and copy that over to almost every template or CMS you could think of, so long as I have that css in the file, it will in almost all cases produce the very same result regardless of whatever else is in there......Very complex happenings, very simple concepts and language.

      Notice the URL points to the root folder
      Start = Joomla >> lms.org.au/start/
      Wars = Vwar >> lms.org.au/war/
      Forum = SMF >> www.lms.org.au/forum/

      Hope that clears somethings up..


      This is the Menu/s from SMF adapted from both Classic Yabb and VersatitliyII SMF
      You should notice the entire system has been set up so that it will produce via complex php ** a simple output of
      ul / li menu item. menu URL /li

      **(remember that array I was talking about? Once again an array acting as a function made from classes and arrays...Take a bunch of information or a bunch of instructions, pile it together and call it a $name. that $name can be a function or a class or just an array...)
      function hiliteItem($item) {
           $action = $_REQUEST['action'];
           $active = ' class="active_menu"';
           if (strtolower($item) == strtolower($action)) {
                return $active;
           } elseif (strtolower($item) == "forum" && $action == "") {
                return $active;
           } 
      }
      // Show the menu up top. Something like [home] [help] [profile] [logout]...
      function template_menu()
      {
           global $context, $settings, $options, $scripturl, $txt;
       
       echo '
           <ul id="submenu"> 
       
      &nbsp; 
           <ul>';
           // Show the [home2] button.
            echo    '<li ' . hiliteItem('forum small') . '><a href="http://lms.org.au/start/index.php?option=com_smf&Itemid=125">' , $txt['Forum Small'] , '</a></li>';
       
      &nbsp; &nbsp;  // Show the [home] button.
           echo     '<li ' . hiliteItem('forum') . '><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
       
           // Show the [help] button.
           echo     '<li ' . hiliteItem('help') . '><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';
       
           // How about the [search] button?
           if ($context['allow_search'])
                echo '<li ' . hiliteItem('search') . '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
       
           // Is the user allowed to administrate at all? ([admin])
           if ($context['allow_admin'])
                echo     '<li ' . hiliteItem('admin') . '><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';
       
           // Edit Profile... [profile]
           if ($context['allow_edit_profile'])
                echo '<li ' . hiliteItem('profile') . '><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';
       
           // Go to PM center... [pm]
           if ($context['user']['is_logged'] && $context['allow_pm'])
                echo '<li ' . hiliteItem('pm') . '><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';
       
       
           // The [calendar]!
           if ($context['allow_calendar'])
                echo '<li ' . hiliteItem('calendar') . '><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
       
           // the [member] list button
           if ($context['allow_memberlist'])
                echo '<li ' . hiliteItem('mlist') . '><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';
       
       
           // If the user is a guest, show [login] button.
           //if ($context['user']['is_guest'])
           //  echo '<li ' . hiliteItem('login') . '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';
       
       
           // If the user is a guest, also show [register] button.
           //if ($context['user']['is_guest'])
           //  echo '<li ' . hiliteItem('register') . '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';
       
       
           // Otherwise, they might want to [logout]...
           //if ($context['user']['is_logged'])
           //  echo '<li ' . hiliteItem('logoout') . '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
       
           echo '</ul>';
       
       
      }
      // Show the menu up top. Something like [home] [help] [profile] [logout]...
      function template_menu2()
      {
           global $context, $settings, $options, $scripturl, $txt;
       
      if (empty($_REQUEST['option'])){
           echo '
           <ul id="topmenu">'; }
       
      if (!empty($_REQUEST['option'])){
      &nbsp; &nbsp; echo '
           <ul>'; }
       
       // If the user is a guest, show [login] button.
            if ($context['user']['is_guest'])
                echo '<li ' . hiliteItem('login') . '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';
       
       
           // If the user is a guest, also show [register] button.
            if ($context['user']['is_guest'])
                echo '<li ' . hiliteItem('register') . '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';
       
       
           // Otherwise, they might want to [logout]...
            if ($context['user']['is_logged'])
                echo '<li ' . hiliteItem('logoout') . '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
       
           echo '</ul>';
       
       
      }

      To change what the menu says you need to edit the themes _Index_english.php in SMF themes/ default...
      I changed $txt[103] to Forum wide.....
      And for a bit of fun I changed $txt[106] from an error has accured to !!OH CRAP! an Error Has occured..since I was there.... ;D


      Sorry if I crapped on............. ;)

      Regards
      Red
    • Last Edit: 18 years 4 months ago by .
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Woah what a post Mitchell :)

      lol I am moving house later today over next few days so once we are settled I will tackle this, with those amazing instructions and so forth!

      Awesome stuff there :)

      Appreciate help as well.

      What a time of year to move house Arggg, will the damn packing ever end!
      *sigh*
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • Most of that went over my head, Ive re-read it 5 times.

      I'll try one last time before I give up as my time is limited and its been nearly 5-6 weeks Ive had this theme or longer and have no nothing yet, which is my own fault due to not undertsanding something simple as in wanting to achieve what I am trying to do.

      First screenie, I want to make a new page is it ? or section ? I dont know what its called.
      The very TOP MENU links... forums, news, home etc whats that top section called ?
      I want too create 3 more new ones at the Top, exmaple being
      This image is hidden for guests.
      Please log in or register to see it.

      AusArena Info
      Events
      Clan Members

      So AusArena Info for example could appear next too Forums or before it makes no difference at this stage.

      This I dont know How to do... and then once its created obviously I re-read then the post about changing page colours.

      Then once the Top new menu link ? Is created I then need too add some content too it.. and its OWN menu exmaple image 2
      This image is hidden for guests.
      Please log in or register to see it.


      So once somehow this AUsArena info menu link is created at the very top and when its clicked it opens a new page, and in that page I need a menu on the left hand side that ONLY belongs to that exclusive page and any links inside that menu, which would be information about AusArena would ONLY open in that AUsArena Info page and NOT show up on the home page, the menu cannot show on the home page... this is other problem I dont know how to make or make it belong too one area...

      Ive tried this so many times from the beginning of this Topic till now and I just dont get it.
    • Shania's Avatar
    • Shania
    • Sr. Rocketeer
    • Posts: 104
    • Thanks: 0

    Re: argg Im stupid! How to create a menu

    Posted 18 years 4 months ago
    • lol finally worked it out..

Time to create page: 0.084 seconds