View Single Post
  #33  
Old 04-08-2004, 02:22 AM
 
Alan Alan is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 83
 

Default

Hi Guys,

After hunting around for a reason why I have zero
slideMenu.makeMenu(XXXXXXX) entries when I view source, I debugged a long time to find out that with recent version of Smarty Class, {php}{/php} tags are not allowed references to smarty variables.

meaning the $allcategories and $list is basically empty

Code:
$list = preparelist($allcategories); sort_cat(&$list); fill_menu($list,0);

To get around this, you will have to use a smarty prefilter function, which brings on a performance hit onto your pages. IMO if you can bear to use this mod that DealsonDeals kindly and FREELY provided, then don't worry about the performance hit.

in categories.tpl, after {php}, insert this line:

Code:
extract($this->get_template_vars());

I'm doing my own version of submenu display, but I'm going to reference to DealsOnDeals' code to do this, I hope you don't mind DealsOnDeals!
__________________
Best Regards!
Alan
Search is my friend
Reply With Quote