Jump to content



Latest News: (loading..)

- - - - -

Creating a new infobox in osCommerce 2.3.1


  • Please log in to reply
84 replies to this topic

#81   yogeshnaik

yogeshnaik
  • Members
  • 28 posts
  • Real Name:Yogesh

Posted 04 March 2013 - 01:52 PM

View Postkymation, on 05 January 2011 - 05:31 PM, said:

That sounds like a database problem. Try cleaning out all of the module constants in the configuration table and reinstalling.

This may have been caused by an error in your new module. The most common cause is a constant declared in the install() method that is not also declared in the keys() method.

Regards
Jim

I did that sir..... but it still won't work.....

I get these warnings..

Warning: reset() expects parameter 1 to be array, null given in C:\xampp\htdocs\oscommerce-2.3.3\catalog\admin\modules.php on line 228

Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\oscommerce-2.3.3\catalog\admin\modules.php on line 229

and I'm not able to install Shopping Cart module....

A man is great by Deeds, not by Birth....


#82 ONLINE   JustifiedAncientOfMuMu

JustifiedAncientOfMuMu
  • Members
  • 3 posts
  • Real Name:Steve

Posted 22 May 2013 - 10:25 PM

Hi. I'm playing around with osCommerce 2.3.3. This thread has been most helpful. The box I created is for a store logo. I wanted to move it to the top of the left column (eccentric of me, I know).

I am not great at coding, but what I have bashed together seems to work. Do let me know if it's dodgy! And would it be better practice to have some fixed height and width?

The snippit from my new file -  includes/modules/boxes/bm_logo.php

$data = '<div class="ui-widget infoBoxContainer">' .
'  <div style="text-align: center;">' . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) .
'</a>' .

  '  </div>' .
  '</div>';

Edited by JustifiedAncientOfMuMu, 22 May 2013 - 10:29 PM.


#83 ONLINE   kymation

kymation

    Believers

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

Posted 22 May 2013 - 11:25 PM

There is a Store Logo module in the Header Footer Contents addon that you might want to look at. It's designed to put the logo in the header, but the logic is the same.

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

#84 ONLINE   JustifiedAncientOfMuMu

JustifiedAncientOfMuMu
  • Members
  • 3 posts
  • Real Name:Steve

Posted Yesterday, 10:59 PM

View Postkymation, on 22 May 2013 - 11:25 PM, said:

There is a Store Logo module in the Header Footer Contents addon that you might want to look at. It's designed to put the logo in the header, but the logic is the same.

Regards
Jim

Looks interesting, Thanks! I just installed this on 2 test sites but no show in admin/modules. Curiously, if I click banner manager in tools I get this message -

054 - Unknown column 'language_id' in 'field list'

select language_id, banners_id, banners_title, banners_image, banners_group, status, expires_date, expires_impressions, date_status_change, date_scheduled, date_added from banners order by banners_title, banners_group limit 0, 20

[TEP STOP]


I will try installing this addon again on a fresh oscommerce install. I'll leave a message on the right thread for this plugin if there is still an issue with it.

#85 ONLINE   JustifiedAncientOfMuMu

JustifiedAncientOfMuMu
  • Members
  • 3 posts
  • Real Name:Steve

Posted Today, 12:52 AM

Ignore my last message. Me being an idiot. HFC Module handler wasn't installed. There is probably some maintenance going on here.. I'm unable to delete the previous message!