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 »
  • Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade
  • Print
Pages: [1]   Go Down

Author Topic: Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade  (Read 13294 times)

Offline seanie_morris

  • Posts: 301
  • Gender: Male
Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade
« on: March 22, 2017, 08:50:05 PM »
Hi Folks,

I tried updating to 2.10 for someone on their WB from 2.8.3 SP6, and only after all files were uploaded via FTP did I get the PHP7 message (instead of the website) that PHP7 is not installed. Since then I have requested the hosting company to move up to PHP7. The host is taking too long to upgrade the package - in fact they are moving the website to a dedicated server instead of the shared server this site is on.

So, I rolled back to 2.8.3SP7 at first, then to SP6. In both cases, the drop down menu, using the bs_naturak template, the child items will not display.

In /snippets/nav.php, the original code for show_menu2 was:
(1)
Code: [Select]
show_menu2(1, SM2_ROOT, SM2_START, SM2_TRIM, '<li role="presentation" class="[class]"><a href="[url]">[menu_title]</a>', "</li>", '<ul>', '</ul>', true, '<ul class="nav nav-tabs" role="tablist">');
but browsing through these forums I found a minor fix in the form of:
(2)
Code: [Select]
show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM, '<li role="presentation" class="[class]"><a href="[url]">[menu_title]</a>', "</li>", '<ul>', '</ul>', true, '<ul class="nav nav-tabs" role="tablist">');
The first (1) code above had the menu on display, but the parent items would not show the child items - no drop down would happen. Then, with the second (2) code above, I get the arrow showing in the parent items to tell us that there are child items, but the drop down menus will still not display.

I tried variations of the Frontend Output Filter but no effect (but I could have missed something).

Has anyone seen this problem before and can point me in the right direction (rather quickly!)?  :?

Seanie.
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5920
Re: Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade
« Reply #1 on: March 23, 2017, 12:21:29 AM »
the same old problem.... nobody reads the manual....

SM2_TRIM  - All sub-menus of elements that are not on the path
                    are removed.

use SM2_ALL instead of SM2_TRIM
Logged

Offline seanie_morris

  • Posts: 301
  • Gender: Male
Re: Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade
« Reply #2 on: March 23, 2017, 12:58:18 PM »
Quote from: jacobi22 on March 23, 2017, 12:21:29 AM
the same old problem.... nobody reads the manual....

SM2_TRIM  - All sub-menus of elements that are not on the path
                    are removed.

use SM2_ALL instead of SM2_TRIM

Alas jacobi, I tried that and it didn't work (you see, I DID read it in the manual, but changed it back to SM2_TRIM because it was the original text) ;)

Now, if I get the host up to PHP7 in the meantime, that might sort the problem, as it was working fine in 2.8.3 before uploading the 2.10 files...
« Last Edit: March 23, 2017, 01:12:18 PM by seanie_morris »
Logged

Offline seanie_morris

  • Posts: 301
  • Gender: Male
Re: Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade
« Reply #3 on: March 23, 2017, 01:56:09 PM »
UPDATE [SOLVED]

I got it upgraded to PHP 7, but just in case this happened for other users (bear in mind the template I am using above) I also have the following:

In the <head> section:
Code: [Select]
if(function_exists('register_frontend_modfiles')) {
register_frontend_modfiles('css');
register_frontend_modfiles('js');
} ?>
('jquery' is removed)

In the Frontend Output Filter, the following items are unchecked:
Jquery

Phew! :)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Dropdown menus will not show in 2.8.3 SP6 after attempted upgrade
 

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