Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pulldown Menus
#1
Hello i'm new with getsimple and i have a little question... i downloaded all i18n plugins but i can not implement pulldown menus in theme vtbfree-3, i've modified template.php but nothing please help... (sorry but my english is not good).
Reply
#2
welcome here!

Please show us what you modified in the template, you can add the code here in a post and mark it as code
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Connie Wrote:welcome here!

Please show us what you modified in the template, you can add the code here in a post and mark it as code

I've modified these two lines in template.php:


Code:
<div id="templatemo_menu">
          <ul>
<?php get_i18n_navigation(return_page_slug(),0,0,i18n_showmenu); ?>
</ul>

... and ....

Code:
<div id="news_box">
                       <?php get_i18n_component('sidebar'); ?>
                <div class="cleaner"></div>

... and in file /admin/edit.php i've added these lines of code:

Code:
if ($id)
{ ..... }

else
{
      if (isset($_GET['parent'])) $parent = $_GET['parent'];
      if (isset($_GET['template'])) $template = $_GET['template'];
      if (isset($_GET['metak'])) $metak = $_GET['metak'];
      if (isset($_GET['metad'])) $metad = $_GET['metad'];
      if (isset($_GET['menu-enable'])) $menuStatus = $_GET['menu-enable'];
      if (isset($_GET['menu-order'])) $menuOrder = $_GET['menu-order'];
      if (isset($_GET['private'])) $private = $_GET['private'];
      if (isset($_GET['title'])) $title = $_GET['title'];
      if (isset($_GET['menu'])) $menu = $_GET['menu'];
      if (isset($_GET['newid'])) $url = $_GET['newid'];
    $buttonname = i18n_r('BTN_SAVEPAGE');
}

if in the line ... php get_i18n_navigation(return_page_slug(),0,0,i18n_showmenu) ... i replace the 0,0 with 0,1 or another value the menu become dephaced.
Reply
#4
there is no need to modify the admin/edit.php in my opinion

when the plugins are activated it is enough to edit the template

but unfortunately I cannot test now with that template for you as I have renovation in the house and no time to sit at the computer, sorry

PS: I found time, I activated the theme at my local server and did not edit any files except the template.php

Code:
<ul>
<?php get_i18n_navigation(return_page_slug(),0,2,I18N_SHOW_MENU); ?>
</ul>

you must tell how many subpages you want to show, the numbers represent:

minlevel and maxlevel

so if you set the levels to "0" nothing will be shown

I got a menue with sub-levels, but for sure, as mvlcek wrote as well, you must edit the CSS because that template is not done for a multi-level menue and needs styling
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
drviolino Wrote:I've modified these two lines in template.php:


Code:
<div id="templatemo_menu">
          <ul>
<?php get_i18n_navigation(return_page_slug(),0,0,i18n_showmenu); ?>
</ul>

...

if in the line ... php get_i18n_navigation(return_page_slug(),0,0,i18n_showmenu) ... i replace the 0,0 with 0,1 or another value the menu become dephaced.

You definitely need to use get_i18n_navigation(return_page_slug(),0,1,I18N_SHOW_MENU) (case!), but you also need to define some styles for the pulldown menu in your CSS (the minimum of styles - which won't look nice, but probably works - is described here).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#6
i've modified ... but nothing it doesn't work ... i've attached the template.php and the .css, can you read these two files and tell me what's wrong.... sorry for my english... and my little brain Smile
Reply
#7
why not show us the URL of your site?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#8
www.reunia.com - site under construction Smile
Reply
#9
you sure you've add the pages you want in the menu?? (Edit page -> Options)
Because looking at the source of your site, there is no submenu so it can't be display

Also, I took a quick look at your template and you need to change your css where you've add the code from mvlcek. It's not .templatemo_menu but #templatemo_menu for this template

after that it should work basicly
Sorry my English is poor, I'm working on it
Reply
#10
Lithie Wrote:you sure you've add the pages you want in the menu?? (Edit page -> Options)
Because looking at the source of your site, there is no submenu so it can't be display

Also, I took a quick look at your template and you need to change your css where you've add the code from mvlcek. It's not .templatemo_menu but #templatemo_menu for this template

after that it should work basicly


Thank you very much it works...!!!!!
Reply




Users browsing this thread: 1 Guest(s)