♥raiwa Posted July 14, 2015 Share Posted July 14, 2015 (edited) New coded content module for Bootstrap. This add-on is based on the idea of the older Holiday Message Add-Ons by fimble: http://addons.oscommerce.com/info/7648 http://addons.oscommerce.com/info/6127 It has been complete new written for BS. Easiest install: upload 2 files+language file. Install content header module in Admin. Message Header and Text can be introduced for each language in the content module set-up. Selectable pages where to show the modue. Download: http://addons.oscommerce.com/info/9331 Edited July 14, 2015 by raiwa 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...
Hotclutch Posted July 14, 2015 Share Posted July 14, 2015 Looks useful, thank you. Are there file changes to english.php found in the package? I did a file compare and could not find any. Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted July 14, 2015 Author Share Posted July 14, 2015 (edited) @@Hotclutch, Sorry. this file was left in the package by mistake, no changes there, not needed, just ignore it :) Just uploaded a new cleaned package. Edited July 14, 2015 by raiwa 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...
cdetdi Posted July 15, 2015 Share Posted July 15, 2015 Great module, I had put this into my old site by hand, extremely useful. Thanks raiwa. Quote Two forks diverged in a git, and I— I took the fork traveled by burt, And that has made all the difference. Link to comment Share on other sites More sharing options...
douglaswalker Posted July 20, 2015 Share Posted July 20, 2015 Hi there many thanks had an issue if i have it set to work on the product_info page throws an error unable to redefine language class and the page wont completely load. is this just me? Doug Quote Link to comment Share on other sites More sharing options...
douglaswalker Posted July 20, 2015 Share Posted July 20, 2015 I thought this bit of code function execute() { global $PHP_SELF, $lng, $request_type, $oscTemplate; .. if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } ... stopped that problem sorry the error was redeclare not redifine Quote Link to comment Share on other sites More sharing options...
douglaswalker Posted July 20, 2015 Share Posted July 20, 2015 I think I solved it but would love someone who knows a whole lot more to check. $lng, is missing from the global in the package so the class check was not working or at least that is what I think the logic is. I added it as per the post above and now it works. Any thoughts. Doug B) Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted July 21, 2015 Author Share Posted July 21, 2015 Hello Doug @@douglaswalker, I checked again on my real store with SEO URL multilanguage support and on my standard dev store without SEO URL and couldn't recreate the error. All works ok as is. However you are right that $lng should be better included in the global list. Would be good if someone else could give feedback about this issue. Thank you and kind regards 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...
douglaswalker Posted July 21, 2015 Share Posted July 21, 2015 @@raiwa many thanks yeah error occurs for me on local host and two different servers. including $lng stops any errors but I don't know if that is the right thing. Can someone with a big brain stop by. well bigger than mine and Raiwa. Doug Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted July 23, 2015 Author Share Posted July 23, 2015 (edited) Hello Doug @@douglaswalker, Just uploaded a new version which includes your fix. In any case it will not do any harm :) Thanks and kindest regards Rainer Edited July 23, 2015 by raiwa douglaswalker 1 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...
Pelvis Posted August 6, 2016 Share Posted August 6, 2016 (edited) Hallo Rainer Can You Check Please hier :-) Something seams to be wrong with the Versions and the time that you have Upload the Packages Holiday-Promotional Message BS 1.2 -> are from Juni (old) Version 1.1 -> are from Juli (New) And the Data inside if you Look at the version 1.0.zip the files are from Juli (new) if you look at the newest version 1.2.zip the files are from Juni also Older ? What's the newest package with the Corrections from the support thread 1.0 or 1.2 I think 1.0.zip is newer! Edited August 6, 2016 by Pelvis Quote Link to comment Share on other sites More sharing options...
sunshynecraftsbeads Posted February 2, 2017 Share Posted February 2, 2017 Hello Rainer, Thank you so much for this add on. Just what I was looking for and needed. I was wondering if you could direct me on how I change the background color from yellow to another color? I tried changing the code (below) in the user.css but it did not change the color so I know I am doing something wrong. Suggestions would be appreciated. <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Valentine's is just around the Corner !</h3> </div> I have version 2.3.4 bs responsive. Thank you in advance. Tracie Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted February 2, 2017 Share Posted February 2, 2017 See http://www.w3schools.com/bootstrap/bootstrap_panels.asp about standard alert and panel colours. Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
♥raiwa Posted February 2, 2017 Author Share Posted February 2, 2017 Hello Tracie @@sunshynecraftsbeads, Hello Rainer, Thank you so much for this add on. Just what I was looking for and needed. I was wondering if you could direct me on how I change the background color from yellow to another color? I tried changing the code (below) in the user.css but it did not change the color so I know I am doing something wrong. Suggestions would be appreciated. <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Valentine's is just around the Corner !</h3> </div> I have version 2.3.4 bs responsive. Thank you in advance. Tracie As Steve already pointed out this is not a specific issue for this add-on. You should see how to style bootstrap elements. If you overwrite the default color for panel-info it will apply to all panel-info elements. Otherwise you could add a specific class for example "holiday-message-panel" and define a different background color for this class. rgds 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...
sunshynecraftsbeads Posted February 2, 2017 Share Posted February 2, 2017 Hi Rainer, I am sorry. You are absolutely right. I had no problems installing this add on. Thank you for sharing it with us. Have a great day ! Quote Link to comment Share on other sites More sharing options...
sunshynecraftsbeads Posted February 2, 2017 Share Posted February 2, 2017 See http://www.w3schools.com/bootstrap/bootstrap_panels.asp about standard alert and panel colours. Thanks Steve. Your the Best ! Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted May 24, 2018 Author Share Posted May 24, 2018 (edited) Updated to Holiday-Promotional Message 2.0 BS: Changes version 2.0: - moved e-mail modifications in checkout_process.php into hook - updated coding and file naming to Responsive 2.3.4.1 BS CE Frozen standards - simplified language constants Edited May 24, 2018 by raiwa valquiria23 1 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...
Peper Posted August 29, 2018 Share Posted August 29, 2018 Hello Rainer @raiwa the following code gives error in admin side: open_basedir restriction in effect Warning: is_dir(): open_basedir restriction in effect. File(/usr/www/users/mspggy/..) is not within the allowed path(s): (/usr/www/wwws/users/mspggy:/usr/wwws/users/mspggy:/usr/www/users/mspggy:/usr/home/mspggy:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom) in /usr/www/users/mspggy/includes/modules/content/header/cm_header_holiday.php on line 139 This started happening after i changed to a new server with tighter security, any possible workaround for this? Also noticed there a couple modules with this code $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $files_array = array(); if ($dir = @dir(DIR_FS_CATALOG)) { while ($file = $dir->read()) { if (!is_dir(DIR_FS_CATALOG . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $files_array[] = $file; } } } sort($files_array); $dir->close(); } Quote Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
♥raiwa Posted August 29, 2018 Author Share Posted August 29, 2018 7 minutes ago, Peper said: the following code gives error in admin side: open_basedir restriction in effect Warning: is_dir(): open_basedir restriction in effect. File(/usr/www/users/mspggy/..) is not within the allowed path(s): (/usr/www/wwws/users/mspggy:/usr/wwws/users/mspggy:/usr/www/users/mspggy:/usr/home/mspggy:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom) in /usr/www/users/mspggy/includes/modules/content/header/cm_header_holiday.php on line 139 This started happening after i changed to a new server with tighter security, any possible workaround for this? Also noticed there a couple modules with this code Hello Pierre, This code is copied from core modules. You should "untighten" the server security settings. Anyway it's only a warning and will not show under production error settings. Or report it in the general 2.3.4.1 BS forum. It's not a specific holiday message module issue. rgds Rainer Peper 1 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...
Omar_one Posted November 18, 2018 Share Posted November 18, 2018 @raiwa I installed this add-on on php 7.2 and here was error in the error_log so I fixed those error and now working well under php7.2 if you want I can share it here or send it to you. so if you would like include the fixing for next update Br Omar altoid and raiwa 2 Quote Get the latest Responsive osCommerce CE (community edition) here . Link to comment Share on other sites More sharing options...
♥raiwa Posted November 18, 2018 Author Share Posted November 18, 2018 @Omar_one, Yes, please. Just share it here and I'll include it in the next update. 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...
Omar_one Posted November 18, 2018 Share Posted November 18, 2018 sorry @raiwa I had old installation version 1.4 so base on that I update it (I was not noticed that you have update it to version 2.0 ).. and your last one had almost all the change what I made .. there just one change still in includes/hooks/shop/checkout_process/holiday.php function listen_HolidayCheckoutMailMod() { to function __construct() { Quote Get the latest Responsive osCommerce CE (community edition) here . Link to comment Share on other sites More sharing options...
♥raiwa Posted November 18, 2018 Author Share Posted November 18, 2018 Hello @Omar_one, this modification is incorrect. This function is not a class constructor. 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...
Omar_one Posted November 18, 2018 Share Posted November 18, 2018 sorry , you are right .. and there is no /hooks/shop/checkout_process/holiday.php in version 1.4 again soryy Quote Get the latest Responsive osCommerce CE (community edition) here . Link to comment Share on other sites More sharing options...
tdukes Posted December 22, 2018 Share Posted December 22, 2018 Hello, Just installed your module but can't find where to install it in Admin>Modules. In: Admin => Modules => click "Install Module" => select "Holiday Message [header]" => click "Install Module" I used your included modules_content.php file. TIA 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.