The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sub-Pages / Sub Menu
#6
ok i tried and it works sofar but the menu is hiding , when i have a mouseover i see it ,,

i have installed a test site
i use the cardinal theme as template

have installed the i18n plugin
in the template.php i change the original
PHP Code:
<ul id="nav">
            <?
php get_navigation(return_page_slug()); ?>
        </ul> 

into:
PHP Code:
  <div class="sitemenu">
 
     <ul><?php get_i18n_navigation(return_page_slug(),0,1,I18N_SHOW_MENU); ?></ul>
    </div>
    <div style="clear:both"></div>
  </div>
  <div id="main">
    <div id="nav">
      <ul><?php get_i18n_navigation(return_page_slug(),1,100); ?></ul>
        </div> 

in css i added under the orginal navigation:
PHP Code:
.sitemenu position:relativeheight1.4em; }
.
sitemenu ul position:absolute; list-stylenone; }
.
sitemenu li float:left; }
.
sitemenu li ul display:none; }
.
sitemenu li:hover ul display:block; }
.
sitemenu li.current font-weight:800; } 
.
sitemenu li.currentpath font-weight:800; } 

the original navigation is like this :
PHP Code:
#header #nav {position:absolute;top:10px;left:0;list-style:none;}
#header #nav li {float:left;margin:0 10px 0 0;font-size:13px;text-transform:uppercase;font-weight:bold;}
#header #nav li a {display:block;line-height:30px;padding:0 10px;}
#header #nav li a:link, #header #nav li a:visited {border:1px solid #D23939;color:#E17979;text-decoration:none;}
#header #nav li a:hover, #header #nav li a:focus {color:#FFFFFF;text-decoration:none;}
#header #nav li.current a  {border:1px solid #FFC4C4;color:#FFFFFF;text-decoration:none;} 

ok sofar so good ,,
but as i said the complete menu is only visable with a mouse over
i know also i did something wrong in the php cause got the title in the middle of nowhere but it is just play and try

i tried to replace some lines behind .sitemenu into the orignal lines from the menu
like :
PHP Code:
.sitemenu position:relativeheight1.4em; } 
into :
PHP Code:
.sitemenu {position:absolute;top:10px;left:0;list-style:none;} 

but somewhere it doesn't work either ,,
i mean i dont get the original menu back with working subpages 

so if someone can point me on my mistake i will understand it
so i can change it in the website i'm busy with

many thanks
Mandy
Reply


Messages In This Thread
Sub-Pages / Sub Menu - by maco-nl - 2015-05-02, 17:32:03
RE: Sub-Pages / Sub Menu - by maco-nl - 2015-05-02, 18:31:42
RE: Sub-Pages / Sub Menu - by Carlos - 2015-05-02, 19:11:52
RE: Sub-Pages / Sub Menu - by Timbow - 2015-05-02, 21:43:13
RE: Sub-Pages / Sub Menu - by maco-nl - 2015-05-02, 21:59:44
RE: Sub-Pages / Sub Menu - by maco-nl - 2015-05-02, 23:51:16
RE: Sub-Pages / Sub Menu - by shawn_a - 2015-05-03, 00:12:03
RE: Sub-Pages / Sub Menu - by maco-nl - 2015-05-03, 00:28:32
RE: Sub-Pages / Sub Menu - by shawn_a - 2015-05-03, 01:07:08
RE: Sub-Pages / Sub Menu - by maco-nl - 2015-05-03, 02:28:11



Users browsing this thread: 1 Guest(s)