Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
It would be helpful if you posted your code so that others with the same question can search and find the answer ;)
Thanks,
Anne
In the tpl_mega_menu file:
<li class="escuela-li"><a href="index.php?main_page=index&cPath=12" class="drop"><?php echo HEADER_TITLE_NEOPRENOS; ?></a>
<div class="dropdown_1column">
<div class="col_1 firstcolumn">
<div class="levels">
<?php
// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true,12);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist;
?>
</div>
</div>
</div>
</li>
then in includes / classes / categories_ul_generator.php
function buildTree($submenu=false, $variable)
{
$this->root_category_id = $variable;
return $this->buildBranch($this->root_category_id, '', $submenu);
}
}
So what i do is in the mega menu to call this buildtree function passing a variable that tells the categories generator where to start, the variable has to be your category number...works like a charm
Re: Sheffield Blue Template Support Thread
I got now another problem, also posted in the multilanguage ezpages thread.
As you can see when you enter my site in the footer the useful links you can see a link in spanish called 'prueba' and 'test' in english. Its not appearing in the header menu under the info menu...ive reinstalled the multilanguage thread a couple of times but no success, its like its not reading the same ezpages database or something.
if i insert a new ezpage both languages appear.
Regards,
David
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
speedyrider
In the tpl_mega_menu file:
<li class="escuela-li"><a href="index.php?main_page=index&cPath=12" class="drop"><?php echo HEADER_TITLE_NEOPRENOS; ?></a>
<div class="dropdown_1column">
<div class="col_1 firstcolumn">
<div class="levels">
<?php
// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true,12);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist;
?>
</div>
</div>
</div>
</li>
then in includes / classes / categories_ul_generator.php
function buildTree($submenu=false, $variable)
{
$this->root_category_id = $variable;
return $this->buildBranch($this->root_category_id, '', $submenu);
}
}
So what i do is in the mega menu to call this buildtree function passing a variable that tells the categories generator where to start, the variable has to be your category number...works like a charm
That's great ;) I am sure that this will help others in the future.
Thanks,
Anne
Re: Sheffield Blue Template Support Thread
Not bad for someone with just 2 weeks into zencart haha :D
Re: Sheffield Blue Template Support Thread
ezpages in header is set to 1
Re: Sheffield Blue Template Support Thread
Anne,
I have been beating my head against the wall all night and can't figure out what's going on. I can not get the social media links on my slider bar to go to my links. i have even reloaded the complete template and reloaded the social_define.php file. When I reloaded the file, I confirmed they were your links then changed them to mine and saved. Even went to another computer to load my site and social links loaded your links instead of mine. I searched the thread and found a couple of instances just like mine but all were either cut short or something else changed. My site is www.bearcreekleather.com and facebook link is www.facebook.com/bclleather any idea what could possibly be causing this!?! I'm literally at my wits end. There's not many problems I can't figure out but this is one for the record books. Thanks in advance for any help.
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Stitcher
Anne,
I have been beating my head against the wall all night and can't figure out what's going on. I can not get the social media links on my slider bar to go to my links. i have even reloaded the complete template and reloaded the social_define.php file. When I reloaded the file, I confirmed they were your links then changed them to mine and saved. Even went to another computer to load my site and social links loaded your links instead of mine. I searched the thread and found a couple of instances just like mine but all were either cut short or something else changed. My site is
www.bearcreekleather.com and facebook link is
www.facebook.com/bclleather any idea what could possibly be causing this!?! I'm literally at my wits end. There's not many problems I can't figure out but this is one for the record books. Thanks in advance for any help.
It should be in this file tpl_main_page.php which you can use Developers Toolkit to search for it!
/public_html/includes/templates/your_template/common
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
uswebworx
It should be in this file tpl_main_page.php which you can use Developers Toolkit to search for it!
/public_html/includes/templates/your_template/common
I think that maybe I didn't ask the question correctly or there was a misunderstanding. All I want to do is change the links from your facebook page to mine, yet when I changed the links in the associated files according to the documentation, the links still go to your sites. You said in the link reply above, it should be in tpl_main_page.php yet I see nothing in there pertaining to the associated links?!? Could you please elaborate?
Re: Sheffield Blue Template Support Thread
I found the problem, although I'm not quite sure why it was happening. I used the developers tool kit (THANKS to USWEBORX!!:cool:) and found the link I needed to change in the includes/languages/english/extra_definitions/sheffield_blue/footer_menu_defines.php. Although the social icon I was clicking on was in the slider on the side, this link was the one that allowed it to take me to my page instead of the original.
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Stitcher
I found the problem, although I'm not quite sure why it was happening. I used the developers tool kit (THANKS to USWEBORX!!:cool:) and found the link I needed to change in the includes/languages/english/extra_definitions/sheffield_blue/footer_menu_defines.php. Although the social icon I was clicking on was in the slider on the side, this link was the one that allowed it to take me to my page instead of the original.
I am happy that you figured out the problem. Thank you for posting your solution. This bug has already been fixed in the Responsive Sheffield Blue template package. It has many bug fixes and enhancements over this legacy package. I would recommend using the responsive package.
Thanks,
Anne