Jack_mcs Posted December 16, 2017 Share Posted December 16, 2017 This addon allows the easy creation and handling of pages from within admin as well as a way to manage text on any page in the shop. It is based on the Information Pages Unlimited addon that has been around for years. While much of the code is different in this version, I wanted to keep the compatibility with the original version, thus the similar name. NOTE: There are three sets of files in this package, for different versions of oscommerce. The BS version is the only one that has all of the new features. The other two versions are improvements over the original code but nowhere near that which is in the BS version. So any instructions or descriptions may apply to the other versions but are mainly meant for the BS version. This version fixes many coding mistakes in the other version and adds many new features making it easier to use and more powerful. Some of the features are: - Has a Box ID setting that allows you to control where the link to the page shows up. So, for example, if there are four footer modules installed, each could have links specific to them. - A link can have sub-links (currently only available in the included module). So there could be a main link for widgets and sub-links for various kinds of widgets. There are two advantages to this: first, it takes up less room when there are many links and, second, the search engines will still be able to get to the pages.- There is a quick view button to allow displaying the page in a browser to check the changes. - There are quick fill options that allows categories and products to be added to a page with just a short statement. For example, if your site sells automobile parts and you are creating a new page about tires, you just need to type in PNAME(tires)PNAME and links for all of the products in your shop with tires in the name will be added to the page. See the Notes section on the editor page for additional methods. - Allows setting the browser title and meta tags while editing the page in admin (only if Header Tags SEO is installed). domiosc, ce7, beerbee and 2 others 5 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
bazspeed Posted December 18, 2017 Share Posted December 18, 2017 Hi, I am using this addon. I have figured how to get the links to add to the Information box. But cannot figure how to add messages and where they go. I tried editing the custiomer greeting but nothing happens. I am using the BS version with template. Can send you link if you wish. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 18, 2017 Author Share Posted December 18, 2017 To use the messages you need to add a line of code to wherever you want the message text to appear. See the readme_additional.txt file for what is needed. Please post again if you can't get it to work. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
ralgiere Posted April 9, 2018 Share Posted April 9, 2018 I used a file editor to compared my site with the addon and what I am posting is only the part that is showing up as being different. The first file I am showing is from the (oscom-information addon) and the second file I posted is from my site. My question is should I use the addon file to replace my site, try to combine them somehow or leave it alone? application_top.php oscom-information // add category names or the manufacturer name to the breadcrumb trail if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); application_top.php MY site $n=sizeof($cPath_array); for ($i=0; $i<$n; $i++) { if ( defined('MODULE_HEADER_TAGS_CATEGORY_TITLE_SEO_BREADCRUMB_OVERRIDE') && (MODULE_HEADER_TAGS_CATEGORY_TITLE_SEO_BREADCRUMB_OVERRIDE == 'True') ) { $categories_query = tep_db_query("select coalesce(NULLIF(categories_seo_title, ''), categories_name) as categories_name from categories_description where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); } else { $categories_query = tep_db_query("select categories_name from categories_description where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); } if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($_GET['manufacturers_id'])) { if ( defined('MODULE_HEADER_TAGS_MANUFACTURER_TITLE_SEO_BREADCRUMB_OVERRIDE') && (MODULE_HEADER_TAGS_MANUFACTURER_TITLE_SEO_BREADCRUMB_OVERRIDE == 'True') ) { $manufacturers_query = tep_db_query("select coalesce(NULLIF(mi.manufacturers_seo_title, ''), m.manufacturers_name) as manufacturers_name from manufacturers m, manufacturers_info mi where m.manufacturers_id = mi.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and mi.languages_id = '" . (int)$languages_id . "'"); } else { $manufacturers_query = tep_db_query("select manufacturers_name from manufacturers where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'"); } Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 9, 2018 Author Share Posted April 9, 2018 Please read the install readme file. There are two small changes needed. Make those in your files and you're all set. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Heatherbell Posted March 15, 2019 Share Posted March 15, 2019 Running Frozen - must I have Header Tags SEO installed to use this add on - Frozen already has header tags within products etc.? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 15, 2019 Author Share Posted March 15, 2019 I coded it to run without Header Tags SEO though I didn't test it that way so I can't say for sure. Also, I don't know how, or even if, the stock Header Tags code will work with Information Pages. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Heatherbell Posted March 15, 2019 Share Posted March 15, 2019 Many thanks for your reply. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 9, 2019 Author Share Posted May 9, 2019 6 hours ago, ce7 said: Both I have problem of using Browser Title / Meta Description / Meta Keywords. How can I enable to use those? You don't mention what the problem is so I can only guess. But the title and tags section only works if you have my Header Tags SEO addon installed. If you do have that installed, be sure you have the pseudo_handler.php uploaded. It is located in the Extras directory of this archive. But there is a mistake in that it shows it belonging in the shops includes/modules/ directory while it should be in the admin includes/modules/ directory. 7 hours ago, ce7 said: does it means i have to modify all the modules/content/index file so that it can show up? without any modification (no instruction) it doesn't seems modify any index message. Messages only display if you add the code to display them. See the instructions in the readme_additional.txt file. 7 hours ago, ce7 said: eg, insert two pages: Page A and Page B, if I set up both pages without Parent ID, it will show up both pages on front page without problem, if I setup Page B with Parent ID Page A, on the front Page, I only see Page A, and there is no where has Page B show up, how can I make it works? Links to child pages only show up in the "Information Pages Block" module. If that is not installed and you want to see the links, you would have to add them by editing the code. Please let me know if you have any other questions. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
joe122joe Posted August 24, 2019 Share Posted August 24, 2019 Hi Jack, Will Information Pages SEO addon work within Phoenix Joe Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 26, 2019 Author Share Posted August 26, 2019 Yes, it will work. There are some problems with the released version that will still be there but they won't stop it from working. I'll release an update with those fixes but it might be a month or so. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 31, 2019 Author Share Posted December 31, 2019 A new version has been uploaded with these changes: Added code to cross reference a message to a product and vice versa. Added a pages setting for Messages to allow them to be shown on certain pages via hooks. Added an option to add redirect code for original pages that are being replaced. Added the Version Checker files. Added the missing ajax file that allowed changing settings from the list page. Added missing code to allow running without Header Tags SEO installed. Added an infobox module. Changed the Messages code so that the message ID or the message Title can be used to find the message. Corrected the support thread link in the code so it goes to the correct thread. Corrected spelling errors on the submit page that prevented the Header Tags settings from being added for new pages. Corrected the code to properly show links to child pages. Removed the predefined entries in the Messages section since this version allows for changing them. Replaced the pseudo file with one that has security and spelling fixes. This version is compatible with Phoenix. For both Frozen and Phoenix, only two core changes are needed for installation. Here are some additional notes about a few of the changes that may not be clear: - Cross Reference: In the admin for Pages, there is a box to enter what page, category, manufacturer, or product that the page is related to (or any combination of them). So if you enter pid=1 in that location, a link will appear on the product page that has an ID of 1 that references that page. - Redirection: If you use this addon to replace a stock page, like privacy.php, you can have the code add redirection code from that page to the new one. - Child pages: This all works correctly now. A page can be marked as a child to some other page so that related pages can be grouped. valquiria23 and domiosc 1 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥ecartz Posted December 31, 2019 Share Posted December 31, 2019 24 minutes ago, Jack_mcs said: This version is compatible with Phoenix. For both Frozen and Phoenix, only two core changes are needed for installation. If you changed that from functions to a class in includes/classes or under includes/modules, you could get rid of the catalog core changes. Because when the autoloader sees something like info_pages_class::call_method It would automatically load includes/classes/info_pages_class.php if it exists. kgtee and domiosc 2 Quote Always back up before making changes. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 1, 2020 Author Share Posted January 1, 2020 18 hours ago, ecartz said: If you changed that from functions to a class in includes/classes or under includes/modules, you could get rid of the catalog core changes. Yes, I know. But it would take more time than I have for it to make that change. Maybe in the next version. valquiria23 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
valquiria23 Posted January 2, 2020 Share Posted January 2, 2020 Hi Jack, First of all I wanted to thank you for the constant support to OSC in all these years. At the end of the readme.txt file the support thread link is incomplete. Greetings and very happy 2020 Valqui Quote Community Oscommerce fan You'll find the latest osC community version here. Link to comment Share on other sites More sharing options...
valquiria23 Posted January 2, 2020 Share Posted January 2, 2020 Hi Jack @Jack_mcs, Good afternoon. I uploaded all the files and completed all the installation steps. On the index page of my site I receive the following errors: Warning: include_once(/home2/XXX/includes/languages/espanol/information_pages.php): failed to open stream: No existe el fichero o el directorio in /home2/XXX/includes/hooks/shop/siteWide/information_pages_xref.php on line 25Warning: include_once(): Failed opening '/home2/XXX/includes/languages/espanol/information_pages.php' for inclusion (include_path='.:/opt/php71/lib/php') in /home2/XXX/includes/hooks/shop/siteWide/information_pages_xref.php on line 25 My site is in spanish , I didnt find in the addon files I downloaded the file : includes/languages/english/information_pages.php Any clues? Best regards. Valqui Quote Community Oscommerce fan You'll find the latest osC community version here. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 3, 2020 Author Share Posted January 3, 2020 @valquiria23Please let me know what version of oscommerce you are installing this into. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
valquiria23 Posted January 3, 2020 Share Posted January 3, 2020 Hi Jack @Jack_mcs, I Install the addon (but do not test it yet) in two versions: In Frozen I don't get the error. In Phoenix 1.0.4.0 is where the error appears. I can send you a PM with my test site if you want. regards Valqui Quote Community Oscommerce fan You'll find the latest osC community version here. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 3, 2020 Author Share Posted January 3, 2020 21 hours ago, valquiria23 said: My site is in spanish , I didnt find in the addon files I downloaded the file : includes/languages/english/information_pages.php You are correct. The file is missing. It is attached. Please give it a try and let me know if there are other problems. information_pages.php valquiria23 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
valquiria23 Posted January 3, 2020 Share Posted January 3, 2020 Hi Jack @Jack_mcs, This file fixed the error above. I'm going to try the addon and let you know how it goes. Have a beautiful weekend. Valqui Quote Community Oscommerce fan You'll find the latest osC community version here. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 15, 2020 Author Share Posted January 15, 2020 A new version has been uploaded. It just contains missing files, mainly for the Frozen version, so if you are not having problems with the addon, you can skip this version. valquiria23 and Fredi 2 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
mhsuffolk Posted January 16, 2020 Share Posted January 16, 2020 Phoenix 1.0.4.3 PHP 7.3 Admin seems OK Shop side I get this when accessing pages that I have created. Warning: Use of undefined constant INFORMATION_PAGES_SEO_XREF_ENABLE - assumed 'INFORMATION_PAGES_SEO_XREF_ENABLE' (this will throw an Error in a future version of PHP) in D:\*****\htdocs\includes\hooks\shop\siteWide\information_pages_xref.php on line 21 Quote Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 16, 2020 Author Share Posted January 16, 2020 It looks like you didn't run the database script. Please give that a try and let me know if it still fails. mhsuffolk 1 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
mhsuffolk Posted January 16, 2020 Share Posted January 16, 2020 Ah. All OK now I did not run it as I had many pages in the database from my previous Frozen store and thought I might lose them. I can now see that your script does not do this, just updates the configuration table if there are existing pages in the database. Perhaps a note in the instructions for people such as me who are converting an old database to Phoenix to emphasise this point. Quote Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 16, 2020 Author Share Posted January 16, 2020 (edited) Thanks for the suggestion. I will add a note about that. Edited January 16, 2020 by Jack_mcs mhsuffolk and valquiria23 2 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons 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.