WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • wtf multi menu problems
  • Print
Pages: [1]   Go Down

Author Topic: wtf multi menu problems  (Read 5728 times)

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
wtf multi menu problems
« on: March 22, 2011, 06:44:00 PM »
one of my install of wb 2.8.1 have a strange behavior with show_menu2...

the first menu would not allow
Code: [Select]
show_menu2(1,SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_BUFFER,'[li][a][menu_title]</a>','</li>','[ul]','</ul>','<ul id="nav" class="dropdown dropdown-horizontal">'); and would output something like
Code: [Select]
<ul id="nav" class="dropdown dropdown-horizontal"></ul><ul><ul class="menu-top">... rest of the good code
i've circumvent this problem with this code :
Code: [Select]
$lemenu = show_menu2(1,SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_BUFFER,'[li][a][menu_title]</a>','</li>','[ul]','</ul>');
echo str_replace('<ul class="menu-top">', '<ul id="nav" class="dropdown dropdown-horizontal">',$lemenu);

but now, we need to add multimenus (activated) with 1 and 2...

no... other... show_menu(X will f'ing work...

I've included the template... I dont event know what to do anymore, normaly I have no problems, but this template is a b...

any clue?

[gelöscht durch Administrator]
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: wtf multi menu problems
« Reply #1 on: March 22, 2011, 11:52:22 PM »
Hi Olivier,
Your post is not very clear to me..

I know the feeling of things (like show_menu2() ) not working "as you think it should work" very well. In the end there is always a solution  8-)

Could you explain (in a way we Europeans understand too) what the problem is?
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: wtf multi menu problems
« Reply #2 on: March 22, 2011, 11:56:46 PM »
Just a hint after looking in the attached template..
Code: [Select]
<?php  show_menu2(2,SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_BUFFER,false,false,&#39;<ul class="avmenuacc">&#39;,&#39;</ul>&#39;); ?>It has the SM2_BUFFER option in there. It means it will return (not output) the second menu. Is that the problem?
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: wtf multi menu problems
« Reply #3 on: March 23, 2011, 01:07:59 PM »
I had to return the menu as buffer because the normal output was problematic and needed to str_replace and repair the output...

because if I tried :
Code: [Select]
show_menu2(1,SM2_ROOT+1, SM2_ALL, SM2_ALL,'[li][a][menu_title]</a>','</li>','[ul]','</ul>','<ul id="nav" class="dropdown dropdown-horizontal">'); the output is... :
Code: [Select]
<ul class="menu-top">
<ul id="nav" class="dropdown dropdown-horizontal">
  </li>
  <li class="menu-sibling"><a href="http://www.mocommunication.com/parcbsl/pages/fr/mission.php" title="Mission" target="_top">Mission</a></li>
  <li class="menu-sibling"><a href="http://www.mocommunication.com/parcbsl/pages/fr/services.php" title="Services" target="_top">Services</a></li></ul>

so I had to workaround.....
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: wtf multi menu problems
« Reply #4 on: March 23, 2011, 01:23:03 PM »
Ok, but the second one has the buffer option enabled, but the data is not captured or used anywhere.
That would be the reason you do not see the second menu.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: wtf multi menu problems
« Reply #5 on: March 23, 2011, 04:10:43 PM »
even without buffer, or capture or echoed, no data is output, no error... nothing
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • wtf multi menu problems
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2