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 »
  • Error on template in new version of WB
  • Print
Pages: [1]   Go Down

Author Topic: Error on template in new version of WB  (Read 4213 times)

Offline twolf

  • Posts: 14
Error on template in new version of WB
« on: April 18, 2013, 12:37:28 AM »
I have been using a template for a while and with the new update installed on WB I am receiving an error on line 21 of this template....

The error is effecting the menu from displaying and If I remove the code at the top and the menu code within the error goes away. 

I would like to be able to display the drop down menu the same way, but I am not sure how to achieve that in the new version of WB and I am not 100% certain the php error I am receiving.

Any guidance would be greatly appreciated...   I have attached the entire template that I am working with.

T
Logged

Offline marmot

  • Posts: 1103
Re: Error on template in new version of WB
« Reply #1 on: April 18, 2013, 06:26:20 PM »
Hi,

Quote from: twolf on April 18, 2013, 12:37:28 AM
Any guidance would be greatly appreciated...   
I think you can fix this by just deleting
Code: [Select]
AND $extra_where_sql from the sql statement in line 21 of templates index.php.
So that line looks like:
Code: [Select]
   $query_menu = $database->query("SELECT page_id,menu_title,page_title,link,target,level,visibility$extra_sql FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' AND $menu_number ORDER BY position ASC");
regards
Logged

Offline twolf

  • Posts: 14
Re: Error on template in new version of WB
« Reply #2 on: April 18, 2013, 11:56:23 PM »
Oh you ROCK!!!!  Thanks SO very much....  That took care of my issues....  Appreciate your help greatly!!

Blessings....

T
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Error on template in new version of WB
 

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