Jump to content
raiwa

Holiday-Promotional Message Add-On BS

Recommended Posts

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 by raiwa

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

@@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 by raiwa

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

@@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

Share this post


Link to post
Share on other sites

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 by raiwa

Share this post


Link to post
Share on other sites

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 by Pelvis

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by raiwa

Share this post


Link to post
Share on other sites

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();
    }

 


Thanks to all source contributors, 2.3.4 Edge just works fine

https://github.com/gburton/Responsive-osCommerce/archive/master.zip

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

@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


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

@Omar_one,

Yes, please. Just share it here and I'll include it in the next update.

Share this post


Link to post
Share on other sites

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() {


 


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

Hello @Omar_one,

this modification is incorrect. This function is not a class constructor.

Share this post


Link to post
Share on other sites

sorry , you are right .. and there is no /hooks/shop/checkout_process/holiday.php in version 1.4

again soryy


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×