WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Error on template in new version of WB

(1/1)

twolf:
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

marmot:
Hi,


--- Quote from: twolf on April 18, 2013, 12:37:28 AM ---Any guidance would be greatly appreciated...   
--- End quote ---
I think you can fix this by just deleting
--- Code: --- AND $extra_where_sql
--- End code ---
from the sql statement in line 21 of templates index.php.
So that line looks like:
--- Code: ---   $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");
--- End code ---

regards

twolf:
Oh you ROCK!!!!  Thanks SO very much....  That took care of my issues....  Appreciate your help greatly!!

Blessings....

T

Navigation

[0] Message Index

Go to full version