Jump to content



Latest News: (loading..)

- - - - -

[Addon] Generic Box


  • Please log in to reply
203 replies to this topic

#121   kymation

kymation

    Believers

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

Posted 04 June 2011 - 10:55 PM

My first guess would be catalog/includes/modules/product_listing.php. If that's not it, catalog/index.php (the middle part) and possibly catalog/includes modules/boxes/bm_categories.php.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#122   bob815

bob815
  • Members
  • 42 posts

Posted 04 June 2011 - 11:37 PM

catalog/includes/modules/product_listing.php.....Never altered this file
catalog/index.php (the middle part)..............All five revised versions tried and no change
catalog/includes modules/boxes/bm_categories.php......Never altered this file either...

Any other possibilities you can think of.....thanks...Bob
.....

#123   kymation

kymation

    Believers

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

Posted 04 June 2011 - 11:41 PM

Not a thing. Then again, I've never said that I know everything.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#124   bob815

bob815
  • Members
  • 42 posts

Posted 05 June 2011 - 12:38 AM

Ok, thanks for your help. I'll just start pulling apart the site until I get my pictures back.

#125   kainer

kainer
  • Members
  • 15 posts
  • Real Name:kainer weissmann

Posted 05 June 2011 - 06:38 AM

View Postkymation, on 04 June 2011 - 09:55 PM, said:

Don't try to use PHP code in the box; it won't work, and it messes up the database.

You've managed to mess up some of the module constants in the database configuration table. It's almost impossible to figure out which one(s). The best way to resolve this is to uninstall all modules. Then, to be certain, search the configuration table for any strings containing MODULE in the configuration_key field and delete all of those. You should now be able to reinstall your modules.

Regards
Jim


Thanks for your reply Jim.

I will give it a try.

#126   Acknowledeged74

Acknowledeged74
  • Members
  • 115 posts
  • Real Name:Ashley Smith
  • Gender:Female
  • Location:London, UK

Posted 08 July 2011 - 08:39 AM

OK I've downloaded generic_box_1.0.tar.gz so I just upload it to catalog/includes/modules

rather than catalog/includes/languages/english/modules/ or catalog/includes/modules/boxes

Edited by Acknowledeged74, 08 July 2011 - 08:42 AM.


#127   kymation

kymation

    Believers

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

Posted 08 July 2011 - 05:15 PM

Did you try reading the instructions?

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#128   tdejesus

tdejesus
  • Members
  • 9 posts
  • Real Name:Tommy

Posted 22 July 2011 - 06:19 AM

Quote

You can copy this box and make some minor changes to the files.
1. Copy both files and rename them to bm_generic_2.php. Keep the copies in the same directories as the originals.
2. Using search-and-replace in your editor, set to Case Sensitive, change bm_generic to bm_generic_2 in both files.
3. Again using search-and-replace, change _GENERIC_ to _GENERIC_2_
4. Change Enable Generic Module to Enable Generic Module 2 on Line 98 of the code file..

Make similar changes for additional copies. Once you have all the changes made, upload and install the boxes.

Regards
Jim


EXACTLY what I was looking to do! Thanks for ALL of your effort and time. My box works and worked the first time without hitch. I love it, Thanks again!  :thumbsup:

#129   tdejesus

tdejesus
  • Members
  • 9 posts
  • Real Name:Tommy

Posted 22 July 2011 - 06:33 AM

Hmmmm. Well, Actually I have found an issue. After using the box for awhile, I find I need to make some extremely minor changes to the contents. Unfortunately, the "English Contents: Enter the contents that you want in your box in English" section has no editable box under it anymore! :/ It was there when I first installed and configured, but I can't alter it because it's gone.

http://shopforstickers.com/Generic_box_1_0_2_ERR.png

Any clues?

EDIT: I just noticed this after clicking the edit box for the generic module. It's at the top...

"Parse error: syntax error, unexpected T_STRING in /home/content/99/7848599/html/catalog/adminx/modules.php(232) : eval()'d code on line 1"

http://shopforstickers.com/generic_BOX_PARSE_ERROR.png


I'm sorry to hassle, but, I don't know much about PHP.

Edited by tdejesus, 22 July 2011 - 06:41 AM.


#130   tdejesus

tdejesus
  • Members
  • 9 posts
  • Real Name:Tommy

Posted 22 July 2011 - 06:51 AM

Heh. One last post, I promise! I noticed you had somebody with this issue trying to add the word C'est. I don't think I have any quotes or single quotes in my code, so I am still lost.

Just a note to add to my last post. Thanks again.

Edited by tdejesus, 22 July 2011 - 06:51 AM.


#131   tdejesus

tdejesus
  • Members
  • 9 posts
  • Real Name:Tommy

Posted 22 July 2011 - 08:56 AM

Ok. I narrowed my problem down to the single quotes, located the database entry, and carefully modified it to remove only the suspect quotes. Clicked, "GO", refreshed admin, Success! I am now able to modify my  code.

I don't know much about PHP and MySQL, (learning), but I do know how dangerous and intimidating the database can be. In the end, I logged into my database manager, and did a search of a portion of the code I could remember. Ultimatley, it narrowed to exactly 1 match where my problem rested.

Thanks for reading my other posts and I'm sorry if I wasted any of your time.

#132 ONLINE   Gergely

Gergely
  • Community Team
  • 534 posts
  • Real Name:Gergely Tóth
  • Gender:Male

Posted 03 September 2011 - 05:58 PM

Hi Jim,

Great title idea!
The language class was redeclared. It works without language class errors.
Attached File  bm_banner.php   5.98K   4 downloads

Regards,
Gergely

Edited by Gergely, 03 September 2011 - 06:03 PM.

Header Footer Content Modules
SCM
v3

and some rewrites :-)

#133   madbusu

madbusu
  • Members
  • 42 posts
  • Real Name:Busu

Posted 05 October 2011 - 07:08 AM

so guys i read the all forum till now i don't find nothing similar
i install the last version of generic box "generic_box_1.0.2.tar"
after copying the new files in the right location
i go in admin i install the module and i delete / blank the language name i have 2 languages for my site US and RO
i click save and i reload my site
Now the box appears without name like i set with Generic content text inside nothing strange still now  .
now i go back to the admin section to fill my generic box ...i just put names for box title for RO and US i use the same mane "Contact" i hit save i reload my page ....but my page didn't load it's load just main bg and logo site.
i delete the name i leave blank same thing
till i remove the box ..i install it again and i don't make any change the same thing  page didn't load it's load just main bg and logo site.
so i can't use this magnificent box pls help me.

#134   kymation

kymation

    Believers

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

Posted 05 October 2011 - 05:53 PM

The code has a problem with some special characters used in non-latin character sets. Try putting both box names in English and see what happens. If that works, try escaping all apostrophes with a backslash (\') in your other languages.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#135   madbusu

madbusu
  • Members
  • 42 posts
  • Real Name:Busu

Posted 07 October 2011 - 06:28 AM

View Postkymation, on 05 October 2011 - 05:53 PM, said:

The code has a problem with some special characters used in non-latin character sets. Try putting both box names in English and see what happens. If that works, try escaping all apostrophes with a backslash (\') in your other languages.

Regards
Jim


Jim ....i explain in my post above i try to use with blank ....if i wanna use something in my language i copy the text from english  section ....and the same thing happens.

but this is good in 1 way i learn how to make a new box and a new page now i can put there same thing like generic but i must edit both en / ro boxes :)

#136   yadetar

yadetar
  • Members
  • 24 posts
  • Real Name:Janina
  • Gender:Female

Posted 21 October 2011 - 02:39 PM

Thanks Jim for this very easy and helpful addon!

I have one question though:
I would like to have the banner redirect to a link outside my ecommerce-site. When I add the link in the admin side (=content link), it always adds / in the beginning of the link I added (=meaning that the link would be in my e-commerce) --> the link is broken. Could you or somebody else please tell me how to get rid of that / ?
Thank you so much!

BR,
yadetar

#137   yadetar

yadetar
  • Members
  • 24 posts
  • Real Name:Janina
  • Gender:Female

Posted 21 October 2011 - 03:07 PM

Ok folks, sorry about my previous question. I have solved the problem.

In case somebody else needs help in this:
Add the code by defining the link you want into the "your language contents". As simple as that!

Great addon!

BR,
yadetar

#138   kymation

kymation

    Believers

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

Posted 30 October 2011 - 10:14 PM

I've uploaded a new version to the Addons page. This should fix the language error that some people were seeing (Thanks to Gergely for the code.) Maybe someday I'll fix osCommerce's problem with the apostrophes.

Regards
Jim
.
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#139   kymation

kymation

    Believers

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

Posted 31 October 2011 - 03:29 AM

One more update -- fixed the apostrophe bug. This fix requires replacing or editing one of the stock osCommerce files. It's not quite as easy as the original version, but it does prevent those annoying errors that some people are having.

Download is at the same place.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#140   colageneral

colageneral
  • Members
  • 19 posts
  • Real Name:Imraan

Posted 02 November 2011 - 06:41 AM

Hi all

I seem to have a problem with the scrolling box. When I activate the box without scroll, the pictures show up fine and change with each refresh etc. However, when I set scroll to true, the box is just empty... what am I doing wrong?? I have installed all updates on the forum...