Contributions
Page Editor
Overview
--------
The page editor allows you to easily add, edit and delete your
own web pages in osCommerce. You will also be able to manage
your home page and contact page. Pages can be enabled and disabled.
Supports multiple languages and page header images.
It works and looks like the product manager.
Requirements
------------
osCommerce 2.2MS2
PHP 4 or greater
Features
--------
- Administrative features:
o Manage home page
o Manage contact page
o Manage custom pages
o Enable/Disable pages
o Upload page images
o Multi language
- User features:
o Display pages
Installation
------------
Please refer to the INSTALL.txt file for installation directions.
Expand All / Collapse All
(i use oscommerce v2.2 RC1 en with addon fr)
For nice title in admin "Edit Page"
CHANGE in catalog/includes/boxes/pages.php
'text' => BOX_HEADING_PAGES
WITH:
'text' => BOX_HEADING_PAGES,
FCK-Editor-FIX modified with one more step addition which is very necessary in catalog/index.php .
Thanks,
Chitta
crsukla@gmail.com
If you install FCK-Editor in "PageEditor", every "</br>" causes a second "</br>" in the preview and the final page. The reason is the function "nl2br". Just remove this, and only the </br> given by the FCK-Editor is left!
Quick-Fix in file!
Michael
Added danish language support..
NOT including the fix by emmetje from 22 Sep 2007
Juste une petite modification pour que le titre de 'home' ne s'affiche plus sur toutes les pages en lien avec 'index.php' mais seulement sur la page d'accueil.
Ce n'est pas le package complet.
Fixed problem with uploading images not working.
Including sort order bugfix.
Full package
The page box in the catalog is not displaying in the sort order. To fix this open includes/boxes/pages.php
line 7:
$page_query = tep_db_query("select pd.pages_title, pd.pages_body, p.pages_id, p.pages_name, p.pages_image, p.pages_status, p.sort_order from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_id = pd.pages_id and p.pages_status = '1' and pd.language_id = '" . (int)$languages_id . "' ");
replace it with:
$page_query = tep_db_query("select pd.pages_title, pd.pages_body, p.pages_id, p.pages_name, p.pages_image, p.pages_status, p.sort_order from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_id = pd.pages_id and p.pages_status = '1' and pd.language_id = '" . (int)$languages_id . "' order by p.sort_order");
Done!
Package is the same as above.
Full package with all changes and the FULL MySQL fix in 'pages.sql'. There were several errors that needed fixing.
Included osc files edited through the install.txt so that you can use your favorite compare and merge program.
Modified install.txt for easy and advanced install.
I found that links in /includes/boxes/pages.php were not working.
I found that changing line 12, where it says:
tep_href_link(FILENAME_PAGES . '?page='.$page["pages_name"])
change to:
tep_href_link(FILENAME_PAGES, 'page='.$page["pages_name"])
Now all works well.
Attached is the fixed pages.php file.
no matter what i do i keep getting errors every time i try and merge that sql file into the database....
no new tables get created and errors keep happening.
don't download this file...it's the same as the "supposed" fixed one below.
Fatal error: Cannot instantiate non-existent class: box in /home/users/catalog/htdocs/includes/boxes/pages.php on line 16
On the Home Page. Any Guesses Why and how to correct it.
Help appreciated !
Where is says,
(4, 1, 'Conditions of Use', 'Place your conditions of use text here...');
Change to:
(4, 1, 'Conditions of Use', 'Place your conditions of use text here...'),
It was terminating before the last line was entered.
I have zip'd the sql file with the corrections made.
The last release had parts of HTML Area in it... Now it is the base again.
HTML Area can be installed but it has to be installed seperately.
Fix |
MrPHP.com.au |
22 Jan 2005 |
|
This fixes a couple of issues in the admin:
- you can now go back after a preview
- the edited item will be selected in the list after an update/insert
Overview
--------
The page editor allows you to easily add, edit and delete your
own web pages in osCommerce. You will also be able to manage
your home page and contact page. Pages can be enabled and disabled.
Supports multiple languages and page header images.
It works and looks like the product manager.
Requirements
------------
osCommerce 2.2MS2
PHP 4 or greater
Features
--------
- Administrative features:
o Manage home page
o Manage contact page
o Manage custom pages
o Enable/Disable pages
o Upload page images
o Multi language
- User features:
o Display pages
Installation
------------
Please refer to the INSTALL.txt file for installation directions.
Credits
-------
- Designed and maintained by Mr PHP:
http://www.mrphp.com.au/
Bugs and Suggestions
--------------------
Bug reports, support requests, feature requests, etc, should be posted to
page edit project page at:
http://mrphp.com.au/node/1681
Note: Contributions are used at own risk.