mugitty Posted March 2, 2003 Share Posted March 2, 2003 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) Quote ... 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 More sharing options...
mattice Posted March 2, 2003 Share Posted March 2, 2003 Where is the read_data() function used in the infopages_manager.php found? Quote "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
mattice Posted March 2, 2003 Share Posted March 2, 2003 Found it, you defined data_read() as the function name instead of read_data(). HTH Mattice Quote "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
mugitty Posted March 2, 2003 Author Share Posted March 2, 2003 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 Quote ... 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 More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 I have no output in my shop. ? see no text in the infopages output. have you any idee Quote Link to comment Share on other sites More sharing options...
mugitty Posted March 2, 2003 Author Share Posted March 2, 2003 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? Quote ... 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 More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 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 Quote Link to comment Share on other sites More sharing options...
mugitty Posted March 2, 2003 Author Share Posted March 2, 2003 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: Quote ... 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 More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 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, Quote Link to comment Share on other sites More sharing options...
mugitty Posted March 2, 2003 Author Share Posted March 2, 2003 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. Quote ... 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 More sharing options...
Deskdirect Posted March 4, 2003 Share Posted March 4, 2003 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! Quote Link to comment Share on other sites More sharing options...
mugitty Posted March 4, 2003 Author Share Posted March 4, 2003 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'); Quote ... 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 More sharing options...
Deskdirect Posted March 6, 2003 Share Posted March 6, 2003 Thanks, I guess I should stop working on my store when my eyes start to cross :shock: The contrib works great. Thanks aagain! Annette Quote Link to comment Share on other sites More sharing options...
Deskdirect Posted March 6, 2003 Share Posted March 6, 2003 Thanks, I guess I should stop working on my store when my eyes start to cross :shock: The contrib works great. Thanks aagain! Annette Quote Link to comment Share on other sites More sharing options...
Moooh Posted March 7, 2003 Share Posted March 7, 2003 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 :? Quote Link to comment Share on other sites More sharing options...
moyashi Posted March 30, 2003 Share Posted March 30, 2003 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: Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
moyashi Posted March 30, 2003 Share Posted March 30, 2003 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] Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
azer Posted April 27, 2003 Share Posted April 27, 2003 does someone has a link to see what this contrib could be like ? Quote MS2 Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2003 Share Posted July 30, 2003 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 ! Quote Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2003 Share Posted August 1, 2003 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? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2003 Share Posted August 1, 2003 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2003 Share Posted August 2, 2003 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 Quote Link to comment Share on other sites More sharing options...
mugitty Posted August 2, 2003 Author Share Posted August 2, 2003 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. Quote ... 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 More sharing options...
Guest Posted August 2, 2003 Share Posted August 2, 2003 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.