/*
Name: WordPress On ZenCart - free editon
URL: http://www.s-page.net/products/62.html
Description: WordPress integrated into Zen Cart
Version: 1.5
Author: HIRAOKA Tadahito (hira)
Author URL: http://www.s-page.net/
*/

--------------------------------
First Things First
--------------------------------
It is the module which can display WordPress on Zen-Cart.
WordPress is weblog software of an open source.
http://wordpress.org/

You can do blog on Zen-Cart by introducing this module.
Because it supports RSS feed, truck back, update ping, it can expect improvement of usability, access up.

In addition, as for the free edition, copyright/link are displayed by a footer part.
When you do not want to display them, you please order professional editon.
http://www.s-page.net/products/62.html
The shift of professional editon is very simple from a free edition.

--------------------------------
The system which I tested
--------------------------------
zen-cart-v1.3.8a + wordpress-2.9.2

--------------------------------
Installation
--------------------------------
1.Install WordPress commonly.
  (To a server same as Zen-Cart)
  Make a directory for WordPress, and please install WordPress in there. 

2.Upload all contents of [WP_ROOT] to [Root Directory of WordPress] on the server.

3.Upload all contents of [ZC_ROOT] to [Root Directory of Zen-Cart] on the server.

4.Install WOZ
  Access Zen Cart Admin > tools > WOZ Manager
  Input [WordPress root physical path] and click conirm.
  When you do not understand [WordPress root physical path], you please access [URL to your WordPress]/check_path.php.
  
5.Setting of WordPress
  Access [URL to your WordPress]/wp-admin and login.
    Appearance > Themes > Activate woz_default(woz_default_old theme is for confirmation for a difference)
  The following is set with an installer. When you did not turn on a check, please change it by manual operation.
    Setting > General > Blog address (URL) change to [Zen-Cart URL].( NOTE: be sure to leave the trailing '/' at the end of URL)
  
6.Finally you download [Root Directory of Zen-Cart/includes/templates/MY_TEMP/common/html_header.php] and please add following 6 lines before </head> and overwrite and upload it.
  
<!-- for WOZ BOF -->
<?php require($template->get_template_dir('tpl_modules_wordpress_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_wordpress_header.php'); ?>
<!-- for WOZ EOF -->
  
  * An above file is not be it for overriding from template_default on a server.

7.With the above installation is completion. Please check the operation from the following URL. Thank you.
  [URL to your Zen Cart]/index.php?main_page=wordpress

--------------------------------
How to use
--------------------------------
Sidebar indication
  Some side boxes are bundled with WOZ. To validate them
  Please perform indication setting of 'wp_XXX' by the indication setting of the ZenCart Admin > tools > Layout Boxes Controller.
  'wp_sidebar' supports a function of WordPress Sidebar widgets.

--------------------------------
Upgrading
--------------------------------
Before you upgrade anything, make sure you have backup copies of any files you may have modified.
Please delete [Root Directory of Zen-Cart]/includes/extra_configures/wordpress-config.php from a server.
(This file became needless from WOZ v1.5)
Please work on step3 of the above procedure. 

--------------------------------
Uninstallation
--------------------------------
Access Zen Cart Admin > tools > WOZ Manager and Click [Uninstallation of WOZ].
Please delete the file which you uploaded from a server. 

--------------------------------
To use other themes?
--------------------------------
I customized the woz_default theme for this modules based on a default theme of WordPress. I put down the point that I customized.
Please compare woz_default with woz_default_old.

It is copied text between <head></head> of [header.php] to [includes/templates/MY_TEMP/common/html_header.php]
The thing defined in Zen-Cart does not copy it. ex)<title,<meta http-equiv
and replace wp_head() to woz_wp_head().

Delete text between <html></head> and <body> of [header.php]. 
Delete </body> and </html> of [footer.php].

The style sheet of the theme comes to be read by the above, too. 

The style sheet is read in the other pages of Zen-Cart. Therefore the indication of other pages is just confused, too. 
The item which I want to apply only in a page of WordPress please add "#wordpressDefault" in front of the item.

In search of "get_sidebar();" in the theme file, please comment out entirely.

--------------------------------
Ceon URI Mapping Setting
--------------------------------
Access Zen Cart Admin > tools > WOZ Manager and Click [Ceon URI Mapping Setting].
Please input URI Mapping and Update.
Access WordPress Admin > Setting > General and [Blog address (URL)] change to [URI Mapping].
Please edit /includes/init_includes/init_ceon_uri_mapping.php
(Cf. WOZ Manager > Ceon URI Mapping Setting)

--------------------------------
License
--------------------------------
WordPress On ZenCart is released under the GPL (see license.txt).

--------------------------------
Note
--------------------------------
Please backup before install.
Even if any kind of damage occurs by use, an author does not take responsibility for all.
For deficiency of a program, an author does not bear duty to correct.
If you have any suggestions, ideas, comments, or if you found a bug, please use this forum. 
http://www.zen-cart.com/forum/showthread.php?t=27980

In addition, I cannot answer it even if I have massages because I am weak in English. Please understand it.

--

S-page
------------------------------------
 HIRAOKA Tadahito 
 handle : hira
 URL: http://www.s-page.net/
------------------------------------
