Jump to content



Photo
- - - - -

[Addon] Generic Box


  • Please log in to reply
263 replies to this topic

#1 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 30 January 2011 - 00:36

This addon produces a box in the left or right column. You can put text, images, or scripts in this box. It's ideal for adding credit card information, security logos, or important text to your osCommerce pages. The title and/or contents of the box can be linked to any other page for more information.

The one thing that you cannot do with this box is a list of links (like the Information box.) You can add a link list by copying the Information box and modifying it. There is a guide to doing that here.

The distribution is available here.

Regards
Jim

Edited by kymation, 30 January 2011 - 00:40.

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#2 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 30 January 2011 - 00:48

And I had an old version of the file in the package. Fixed now.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#3   mccdgxch

mccdgxch
  • Members
  • 51 posts
  • Real Name:john mccoy

Posted 30 January 2011 - 19:03

Hi,

when i changed the "sort order" to some other number beside 1000, i.e 1090 or any #, it display an error below

Fatal error: Cannot redeclare class language in /home/mc/public_html/example.com/includes/classes/language.php on line 16

Can you show me how to fix this error? Thanks

#4 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 30 January 2011 - 19:13

That's very odd. I have my test box set to 1090 right now. No errors. Are you using the latest version? I put up an old design by mistake, then corrected it in the latest release. Check that the download is generic_box_1.0.2.tar.gz.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#5   mccdgxch

mccdgxch
  • Members
  • 51 posts
  • Real Name:john mccoy

Posted 30 January 2011 - 19:46

I downloaded the lastest version and it still shows that error, also the box does not appear on the main page either.

I don't know what's wrong.

#6   Ken44

Ken44
  • Members
  • 307 posts
  • Real Name:Ken
  • Gender:Male
  • Location:UK

Posted 30 January 2011 - 20:14

Hi Jim

I had the same problem

Fatal error: Cannot redeclare class language in C:\xampp\htdocs\ccb231\includes\classes\language.php on line 16

I uninstalled the box and then re-installed it and now its working fine.

I hope this helps you find the problem.

Regards

Ken

#7 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 30 January 2011 - 20:20

Try this: In catalog/includes/modules/boxes/bm_generic.php, find these lines and comment out or delete them:

unset($language_class);
unset($languages);
unset($language);

Let me know if that helps.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#8   mccdgxch

mccdgxch
  • Members
  • 51 posts
  • Real Name:john mccoy

Posted 30 January 2011 - 20:38

Try this: In catalog/includes/modules/boxes/bm_generic.php, find these lines and comment out or delete them:


unset($language_class);
unset($languages);
unset($language);

Let me know if that helps.

Regards
Jim


same thing happens

#9 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 30 January 2011 - 20:43

OK, another test. Find this code:

$language_class = new language;
$languages = $language_class->catalog_languages;

and replace it with:

$bm_generic_language_class = new language;
$languages = $bm_generic_language_class->catalog_languages;

Let me know if that changes anything.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#10   mccdgxch

mccdgxch
  • Members
  • 51 posts
  • Real Name:john mccoy

Posted 30 January 2011 - 20:47

OK, another test. Find this code:


$language_class = new language;
$languages = $language_class->catalog_languages;

and replace it with:

$bm_generic_language_class = new language;
$languages = $bm_generic_language_class->catalog_languages;

Let me know if that changes anything.

Regards
Jim


same thing happens still

it always shows this error below

Fatal error: Cannot redeclare class language in /home/mc/public_html/example.com/includes/classes/language.php on line 16


#11 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 30 January 2011 - 21:33

There's something really wrong here. We're not redeclaring a class, so the error message is highly suspect. Then it points to Line 16 of includes/classes/language.php which is a blank line. It appears that you have done something to that file. Try replacing it with a clean copy from the osCommerce distribution and see what happens.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#12   spiderman319

spiderman319
  • Members
  • 3 posts
  • Real Name:richard

Posted 02 February 2011 - 12:04

dear Jim

i have the same problem as well, i try to uninstall this module and then install it again, it looks work only one time, The same problem happen again after i refresh page

cheers

richard

#13 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 February 2011 - 16:46

Then you've made the same error that the original poster made. Start by removing both files and reinstalling them from the distribution. Uninstall and reinstall the box. If you are still having problems, then copy and paste the error message here.

Regards
Jim

Edited by kymation, 02 February 2011 - 16:47.

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#14   wrightp01

wrightp01
  • Members
  • 9 posts
  • Real Name:Patrick Wright
  • Gender:Male

Posted 03 February 2011 - 03:24

Gentleman,
I am getting the same error message after installing the module. I am using OScommerce 2.3.1
Fatal error: Cannot redeclare class language in /home/bentonsc/public_html/includes/classes/language.php on line 16

Here is my install info:
osCommerce Online Merchant v2.3.1
PHP Version 4.4.8

#15 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 03 February 2011 - 03:36

I'm going to have to ask you to read the post above yours.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#16   spiderman319

spiderman319
  • Members
  • 3 posts
  • Real Name:richard

Posted 03 February 2011 - 05:53

Dear Jim
i try to upload the original files of oscommerce to replace the language.php, but the problem still happen
Fatal error: Cannot redeclare class language in /home/bentonsc/public_html/includes/classes/language.php on line 16

#17 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 03 February 2011 - 18:56

There are two things that can cause this:

1. You put a file in the wrong place. This will happen here if you put the file that belongs in catalog/includes/modules/ in catalog/includes/languages/english/modules/.

2. You made a mistake editing a file and put something in twice. There are no edits in this Addon, so it would have to be something else that you added.

OK, there is actually one more:

3. PHP is throwing the wrong error and this has nothing to do with the language class or probably with any other class. This is extremely rare but it happens.

I'd bet on number 1 if I were inclined to gamble.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#18   ymmijp13

ymmijp13
  • Members
  • 4 posts
  • Real Name:jimmy

Posted 04 February 2011 - 07:49

seems like everyone's running into the same error. i've gotten the same error as well. /sad.gif' class='bbc_emoticon' alt=':(' />

#19 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,342 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 04 February 2011 - 17:33

Did you have a question or are you just bitching?

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#20   spiderman319

spiderman319
  • Members
  • 3 posts
  • Real Name:richard

Posted 05 February 2011 - 07:10

/sad.gif' class='bbc_emoticon' alt=':(' /> have not idea about it, same problem still exist....