Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] InfoPages_v0.1


mugitty

Recommended Posts

InfoPages_v0.1

 

This is a variation of the Information Unlimited v1.1a contribution from Joeri Stegeman. The vast majority of the code is what was submitted by him, with a few modifications:

 

InfoPages allows for unlimited additions to either the existing "Information" infobox or the creation of a new infobox for holding links to additional pages you may want to create. Either option is achieved through the Admin area of osC.

 

http://www.oscommerce.com/community/contributions,1040

 

(hmmm, notice the contribution number - the tax man cometh)

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Where is the read_data() function used in the infopages_manager.php found?

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Found it, you defined data_read() as the function name instead of read_data().

 

HTH

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Thanks for catching that, Mattice.

 

There were some conflicts with the original function definitions for data_read and error_message, so I changed their names but forgot to change the names when they were referred in the file. :oops:

 

The corrected file has now been added to the contributions

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Are you not seeing the box at all?

Are you setting up to replace the information box or to add a new one?

Have you created a new page from admin and made it active?

Has the database table been created?

Have all of the defines and requires from readme been made?

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Are you not seeing the box at all? yes

Are you setting up to replace the information box or to add a new one? a new one

Have you created a new page from admin and made it active? Yes

Has the database table been created? Yes

Have all of the defines and requires from readme been made? yes

 

Joeri have bug fix in Information Pages Unlimited

do you have this in yours

Link to comment
Share on other sites

gundlach;

 

Sorry for the delay in responding.

 

My apologies to everyone, the original contribution had a file misplaced.

 

In the original contribution, the file at:

 

catalog/information.php

 

should have been at:

 

catalog/includes/boxes/information.php

See if moving the file mentioned above corrects your problem.

Sorry again :oops:

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

No this was not the Problem. i have a new box

When i take your conti. with all sites

and take the catlog/information.php from joeri and change the entries information to infopages then was all O.K.

i don?t now where my mistake is

Link to comment
Share on other sites

Okay, I have it installed, and it works, my only problem is this:

 

Configuration

 

Catalog

 

Modules

 

Customers

 

Locations / Taxes

 

Localization

 

BOX_HEADING_INFORMATION

BOX_INFORMATION_MANAGER

 

 

Reports

 

Tools

 

 

This is in the admin area as you can tell, can anyone tell me how to change that ? I Looked in languages and theres no line for it,

Link to comment
Share on other sites

The file

admin/includes/modules/infopages/languages/english.php

 

should have these defines in it:

//INFOPAGES

define('BOX_HEADING_INFOPAGES', 'Info system');

define('BOX_INFOPAGES_MANAGER', 'Info manager');

From what you wrote, it looks like you have Information Unlimited, not InfoPages, but the defines should be in the same file.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

I'm feeling really dumb thesse days.........

 

I have install two contrib. that should have access in Admin. but DON'T!

 

Infopages is one of them. I created a new box which does show up with the correct BOX_HEADING. I added the following to Admin along with the other files, I placed the infopages folder in Admin/includes/modules ----->

 

includes/application_top.php:



// Module: InfoPages

 require(DIR_WS_MODULES . 'infopages.php');



// Module: InfoPages

 define('FILENAME_INFOPAGES', 'infopages.php');



-----------------------------------------------------------

includes/column_left or column_right:



// Module: InfoPages

require(DIR_WS_BOXES . 'infopages.php');



-----------------------------------------------------------

includes/languages/yourlanguage.php



// InfoPages box header

define('BOX_HEADING_INFOPAGES', 'InfoPages');

 

I am using a screenshot from 3/3

 

HELP!

Link to comment
Share on other sites

Annette;

 

The code clip you showed is what should be added to the CATALOG area.

The following needs to be added to the ADMIN area:

===========================================================

## ADMIN AREA ##

===========================================================

includes/configure.php:



// Module: InfoPages

 require(DIR_WS_MODULES . 'infopages/configure.php');



-----------------------------------------------------------

includes/application_top.php:



// Module: InfoPages

 require(DIR_WS_INFOPAGES . 'application_top.php');



-----------------------------------------------------------

includes/column_left.php:



// Module: InfoPages

 require(DIR_WS_INFOPAGES . 'boxes/infopages.php');

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

to enter in admin index i have this error :

 

Fatal error: Failed opening required 'includes/modules/infopages/languages/.php' (include_path='.;E:conceptionEasyPHPphppear') in e:conceptioneasyphpwwwtestadminincludesmodulesinfopagesapplication_top.php on line 17

 

line 17 : require(

 

What's wrong plz :?

Link to comment
Share on other sites

  • 4 weeks later...

hey Talme!

I got the same problem :D

 

 

 

I'm using Loaded 5 for this practice install. hmmm ... looks like it's not picking up on the language variable.

 

hmmm ... :roll:

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

hmmm ... here's a short term solution.

 

// include local language translations

//require(DIR_WS_INFOPAGES . 'languages/' . $language . '.php');

 require(DIR_WS_INFOPAGES . 'languages/english.php');

 

Change that in /modules/infopages/application_top[/code]

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...

if you get this

 

Fatal error: Failed opening required 'includes/modules/infopages/languages/.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site6/fst/var/www/html/catalog/admin/includes/modules/infopages/application_top.php on line 33

 

 

it means you will need to do a temp fix : given by moyashi/Carsten (see above)

 

Change /modules/infopages/application_top[/code]

 

and locate

 

require(DIR_WS_INFOPAGES . 'languages/' . $language . '.php');

 

and replace with this :

 

// include local language translations

//require(DIR_WS_INFOPAGES . 'languages/' . $language . '.php');

require(DIR_WS_INFOPAGES . 'languages/english.php');

 

 

:) thanks for saving me a headache moyashi/Carsten !

Link to comment
Share on other sites

Hey Stuart

Just installed your InfoPages contrib and all is fine except there is no viewable text on any of the pages :-) I can enter the admin interface, add a new page and enable it for public viewing which all works fine.

 

I went with the catalog/includes/boxes/infopages.php which I see and the Title of each newly created page is there. When I click on it all I get is a blank white page with the table_background_specials.gif in the top corner. Unfortunately none of the Description text that I entered from the admin side is being displayed.

 

I've checked the database tables which were created fine and all information is correctly being stored there.

I've uninstalled everything and re installed it with the same problem. I'm running osC 2.2 ms1 from Feb 17th 03.

After running through the install twice now I think I followed everything correctly. Any ideas or additional questions?

Link to comment
Share on other sites

Also noticed that when I click on any of the links in the infopages box the displayed page is blank as stated above but also that I'm missing the title in the breadcrumb aswell.

 

I just went and backedup my catalog/includes/boxes/information.php and replaced it with the one provide in your contrib. I see the 2 new page Titles but still dont get any of the Description text or the page Title in the breadcrumb

Link to comment
Share on other sites

Well I've removed and reinstalled the whole damn thing again including the sql tables and still I dont get any of the Description text, page Title text or the breadcrumb.

 

I decided to look into the Information Pages Unlimited 1.1e contrib and after installing it found that it worked perfect first time around.

 

If Stuart or anyone has any suggestions on the InfoPages contrib and the problem I'm running into I'd still be happy to hear from you as I would still like to use this on the right while running the Information Pages Unlimited on the left.

 

Thanks

Link to comment
Share on other sites

Sorry about the long time before reply...

 

I will compare Information Pages 1E to InfoPages as soon as I get a chance (I'm swamped right now), but a few observations that might help narrow down the problem:

 

InfoPages is running fine on my PRE-MS1 site, so there may have been some changes to Information Pages to accomodate MS1 changes. You could try a file compare between the two and see if you see any differences that would cause the problem you are having.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Hi Stuart,

I just posted last night.. no need for any type of apology :-) Hehe I know you have sometype of life and dont simply sit here all day waiting for people to ask you questions :-) Thanks for the quick reply!

 

I haven't done much comparing between the two yet but I'll see if I can get to it and let you know. Right now I'm simply in the 'get everything else to work' so the site can go on-line.

 

Again .. Thanks for the quick reply!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...