♥raiwa Posted May 31, 2019 Author Share Posted May 31, 2019 Hello @Omar_one, I had a deeper look now and found that the navbar modules are not processed at all in osc_template.php class. They are processed and included in the navbar parent module. Therefore it does not make sense to include them in Modules Control. I'll remove them and update. Anyway it's not common to switch off the navbar modules for selected pages and if needed it can be done in the modules themself. Thanks for your help and patience. Best regards Rainer Omar_one and valquiria23 2 Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
♥raiwa Posted May 31, 2019 Author Share Posted May 31, 2019 New Version uploaded: Module Control 1.1.0 Changes: - removed support for navbar modules. Thanks to @Omar_one for the error report - fixed typo for filename "osc_template.php" in instructions. Thanks to @Omar_one for the report valquiria23 and Omar_one 2 Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
♥raiwa Posted June 2, 2019 Author Share Posted June 2, 2019 New Version uploaded: Module Control 1.2.0 Changes: - Added back and fixed support for navbar modules. - Added modified navbar content module with modules control support - Fixed undefined warnings in navbar if no navbar modules are active in a navbar group valquiria23 and Omar_one 2 Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
♥raiwa Posted July 29, 2019 Author Share Posted July 29, 2019 Module Control 1.2.0 tested with OSCOM CE Phoenix 1.0.1.1 under PHP 7.3 and works flawless. altoid, ArtcoInc and valquiria23 3 Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 10, 2019 Share Posted October 10, 2019 Just installed and works as I wanted for the most part. Got an issue with the nav bar though. It doesn't show any of the modules even though I have them turned on. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 10, 2019 Share Posted October 10, 2019 Also is there any way to add depth as an option to the index.php file? This would allow for a front page with no boxes but as soon as you go to a category they show. Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 17 hours ago, LeeFoster said: Just installed and works as I wanted for the most part. Got an issue with the nav bar though. It doesn't show any of the modules even though I have them turned on. I had a look on my test store and for me it's just opposite: the navbar modules always show even they are flagged to be switched off. If I remember well this has been reported and I forgot to remove them. Will do in the next update. There must be another reason why they do not show in your store. May be you have the navbar content module removed or hidden. 17 hours ago, LeeFoster said: Also is there any way to add depth as an option to the index.php file? This would allow for a front page with no boxes but as soon as you go to a category they show. This is not supported. It only works based on filename. But you can always hide individual boxes based on depth coding it in each box module. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 1 hour ago, raiwa said: There must be another reason why they do not show in your store. May be you have the navbar content module removed or hidden. Nope not hidden, I followed the instructions. 1 hour ago, raiwa said: This is not supported. It only works based on filename. But you can always hide individual boxes based on depth coding it in each box module. Might have a look at a way to add that in. Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 1 minute ago, LeeFoster said: Nope not hidden, I followed the instructions. Sorry, no idea on my test store navbar shows. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 21 minutes ago, raiwa said: Sorry, no idea on my test store navbar shows. It's strange that it shows the brand and not the others. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 (edited) 26 minutes ago, raiwa said: Sorry, no idea on my test store navbar shows. Just put it on a clean install of Phoenix 1.0.2.5 and I get the same issue. Edited October 11, 2019 by LeeFoster Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 I'll see and have a deeper look when I find some time. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 13 minutes ago, raiwa said: I'll see and have a deeper look when I find some time. I'll carry on looking into it too. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 If I inspect the page it thinks they're there Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 This is not in the core and it can't be added by modules controle. Modules controle only interferes in the osc_template.php class. It doesn't add any code to the output.In my develop store it looks like this: <a class="navbar-brand nb-brand" href="http://localhost/xxxxxxxxxxxxxxxxxx">phoenix_git_slim_checkout</a></div> <div class="collapse navbar-collapse" id="collapseCoreNav"> <ul class="navbar-nav mr-auto"> <li class="nav-item nb-home"> Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 (edited) 7 minutes ago, raiwa said: This is not in the core and it can't be added by modules controle. Modules controle only interferes in the osc_template.php class. It doesn't add any code to the output.In my develop store it looks like this: <a class="navbar-brand nb-brand" href="http://localhost/xxxxxxxxxxxxxxxxxx">phoenix_git_slim_checkout</a></div> <div class="collapse navbar-collapse" id="collapseCoreNav"> <ul class="navbar-nav mr-auto"> <li class="nav-item nb-home"> What version of Phoenix are you working from? The standard navbar code shows that. Edited October 11, 2019 by LeeFoster Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 16 minutes ago, LeeFoster said: What version of Phoenix are you working from? The standard navbar code shows that. v1.0.2.0 now I updated to 1.0.2.5 and get the same: a class="navbar-brand nb-brand" href="http://localhost/Phoenix_Git/Responsive-osCommerce/index.php">phoenix_git_slim_checkout</a></div> <div class="collapse navbar-collapse" id="collapseCoreNav"> <ul class="navbar-nav mr-auto"> <li class="nav-item nb-home"> But thats not relevant, relevant is your php code outputted between html: core-nav> == $0 Investigate where it comes from. Did you use my modified osc_template.php or did you apply the modifications? I just replaced the module controle files again with the files from the uploaded package. No change. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 (edited) 5 minutes ago, raiwa said: v1.0.2.0 now I updated to 1.0.2.5 and get the same: a class="navbar-brand nb-brand" href="http://localhost/Phoenix_Git/Responsive-osCommerce/index.php">phoenix_git_slim_checkout</a></div> <div class="collapse navbar-collapse" id="collapseCoreNav"> <ul class="navbar-nav mr-auto"> <li class="nav-item nb-home"> But thats not relevant, relevant is your php code outputted between html: core-nav> == $0 Investigate where it comes from. Did you use my modified osc_template.php or did you apply the modifications? I just replaced the module controle files again with the files from the uploaded package. No change. I applied the modifications. The code in the updated navbar module is what is causing the difference. Standard Nav - <nav class="navbar <?php echo $navbar_style; ?> cm-navbar"> <div class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <?php if ($oscTemplate->hasBlocks('navbar_modules_home')) { echo '<div class="navbar-header">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_home'); echo '</div>' . PHP_EOL; } ?> <div class="collapse navbar-collapse" id="collapseCoreNav"> <?php if ($oscTemplate->hasBlocks('navbar_modules_left')) { echo '<ul class="navbar-nav mr-auto">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_left'); echo '</ul>' . PHP_EOL; } if ($oscTemplate->hasBlocks('navbar_modules_right')) { echo '<ul class="navbar-nav ml-auto">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_right'); echo '</ul>' . PHP_EOL; } ?> </div> </div> </nav> Nav from Module Control - <nav class="navbar<?php echo $navbar_style . $navbar_corners . $navbar_margin . $navbar_fixed; ?> cm-navbar" role="navigation"> <div class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <?php if ($oscTemplate->hasBlocks('navbar_modules_home')) { echo '<div class="navbar-header">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_home'); echo '</div>' . PHP_EOL; } ?> <div class="collapse navbar-collapse" id="bs-navbar-collapse-core-nav"> <?php if ($oscTemplate->hasBlocks('navbar_modules_left')) { echo '<ul class="nav navbar-nav">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_left'); echo '</ul>' . PHP_EOL; } if ($oscTemplate->hasBlocks('navbar_modules_right')) { echo '<ul class="nav navbar-nav navbar-right">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_right'); echo '</ul>' . PHP_EOL; } ?> </div> </div> </nav> <?php echo $navbar_css; ?> Edited October 11, 2019 by LeeFoster Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 1. try with my provided modified file 2. switch error reporting to "ALL" and post the errors you get displayed Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 7 minutes ago, LeeFoster said: I applied the modifications. The code in the updated navbar module is what is causing the difference. Standard Nav - <nav class="navbar <?php echo $navbar_style; ?> cm-navbar"> <div class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <?php if ($oscTemplate->hasBlocks('navbar_modules_home')) { echo '<div class="navbar-header">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_home'); echo '</div>' . PHP_EOL; } ?> <div class="collapse navbar-collapse" id="collapseCoreNav"> <?php if ($oscTemplate->hasBlocks('navbar_modules_left')) { echo '<ul class="navbar-nav mr-auto">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_left'); echo '</ul>' . PHP_EOL; } if ($oscTemplate->hasBlocks('navbar_modules_right')) { echo '<ul class="navbar-nav ml-auto">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_right'); echo '</ul>' . PHP_EOL; } ?> </div> </div> </nav> Nav from Module Control - <nav class="navbar<?php echo $navbar_style . $navbar_corners . $navbar_margin . $navbar_fixed; ?> cm-navbar" role="navigation"> <div class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <?php if ($oscTemplate->hasBlocks('navbar_modules_home')) { echo '<div class="navbar-header">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_home'); echo '</div>' . PHP_EOL; } ?> <div class="collapse navbar-collapse" id="bs-navbar-collapse-core-nav"> <?php if ($oscTemplate->hasBlocks('navbar_modules_left')) { echo '<ul class="nav navbar-nav">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_left'); echo '</ul>' . PHP_EOL; } if ($oscTemplate->hasBlocks('navbar_modules_right')) { echo '<ul class="nav navbar-nav navbar-right">' . PHP_EOL; echo $oscTemplate->getBlocks('navbar_modules_right'); echo '</ul>' . PHP_EOL; } ?> </div> </div> </nav> <?php echo $navbar_css; ?> I do not understand anymore, there is nothing to update in the navbar. The only modified core file is osc_template.php class. Quote Install: 1. - copy all files from "New Files" folder to the corrspondant store directory. 2. - copy and replace "osc_template.php" from "Modified File" folder. if your osc_template.php is already modified, use a file comparing tool and apply all modifications manually. All changes are commented with "// BOF modules control", "// EOF modules control" or "// modules control". Please revert all what you did or try on a new clean installation with my provided files. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 11, 2019 Share Posted October 11, 2019 (edited) 2 minutes ago, raiwa said: I do not understand anymore, there is nothing to update in the navbar. The only modified core file is osc_template.php class. I didn't update, the latest download (1.2.0) has an updated nav bar file and says in the instructions to uninstall the standard one and install the included one. Edited October 11, 2019 by LeeFoster Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 11, 2019 Author Share Posted October 11, 2019 6 minutes ago, LeeFoster said: I didn't update, the latest download (1.2.0) has an updated nav bar file and says in the instructions to uninstall the standard one and install the included one. What does this have to do with modules controle? Did you try what I told you to do here: 16 minutes ago, raiwa said: 1. try with my provided modified file 2. switch error reporting to "ALL" and post the errors you get displayed Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
♥raiwa Posted October 12, 2019 Author Share Posted October 12, 2019 Hello Lee, Yes, you are 100% right. My fault, my confusion. I didn't remember that I added the modified navbar for module controle support and didn't read my own instructions 😆 The included navbar was for the old Frozen BS3 and produced the error you posted. I updated now the included modified navbar and uploaded the new package: Modules Control Phoenix Please you taht one, the only difference is the navbar module. Thanks to push my nose on this. Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
LeeFoster Posted October 12, 2019 Share Posted October 12, 2019 5 hours ago, raiwa said: Hello Lee, Yes, you are 100% right. My fault, my confusion. I didn't remember that I added the modified navbar for module controle support and didn't read my own instructions 😆 The included navbar was for the old Frozen BS3 and produced the error you posted. I updated now the included modified navbar and uploaded the new package: Modules Control Phoenix Please you taht one, the only difference is the navbar module. Thanks to push my nose on this. Rainer I'll test this later, thanks Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 13, 2019 Share Posted October 13, 2019 @raiwa This works now and even the navbar modules hide when they are told to. raiwa 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.