Re: Wordpress On Zencart / Released
That was it!!
Thanks!!!
Quote:
Originally Posted by
thebasher
In your ZenCart configure.php (includes/configure.php) what does it say here:
Code:
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', 'WHAT DOES IT SAY HERE?');
This should be around line 40. This is the direct path to your ZC. If you are putting WP in it's own directory, as in "blog", all you would have to do in your wordpress-config.php file is add the path to ZC and then add "blog/" at the end.
The wordpress-config.php is part of the WOZ install and is located in includes/extra_configures/wordpress-config.php. This is the file where you need to define the path to WP.
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
eecom
That was it!!
Thanks!!!
That was it for me, too! Thanks so much.:clap:
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
busyMom
OK, I sorted out what was wrong here... In case anyone else makes the same mistake, here's what you need to know:
1) It doesn't matter which of the sideboxes you choose to use, but if you want the title to be a link, you need to make sure the appropriate file in includes/modules/sideboxes/YOUR_TEMPLATE/*.php has the variable $title_link set properly.
2) Therein lies my mistake. I just assumed that since I didn't want the value to be "false", then I must've wanted it to be "true". The logical value of True was correctly being passed into the link as the link parameter "index.php?main_page=1" instead of "index.php?main_page=wordpress" as it should've been. My wp_sidebar.php had it correct, but since I had that sidebox disabled, it took awhile to trackdown that I had used the wrong value when I changed my sidebox $title_link!!
Now with that corrected, I'll see if I can get permalinks working with Hira's SEO instructions. It does seem like a bit of a disconnect, though -- all the recommendations here say to install the ZC and WP code into the same directory in order to avoid unspecified probable issues, but Hira's instructions indicate that they should be in different directories for the SEO instructions. I'm hoping that is just a detail based on his experimentation, though, and off I go to try to get it working with them both installed in the root directory!
Hope this helps someone following in my (wrong) footsteps!
Karen
Thanks for posting! I think I am having a similar issue, but I'm just not getting it. My blog works fine http://twelvesteppets.com/index.php?main_page=wordpress However, the links in the sidebar are not right. For example, category "Puppy Log" takes you to http://twelvesteppets.com/petblog/?cat=7 which obviously isn't quite right. Are you saying there is something in sideboxes/wp_sidebar that needs changing? I'm looking at $title_link = 'wordpress' ; Is that what you had to change?
Thanks in advance!
Re: Wordpress On Zencart / Released
Still looking for a way to turn off WP sideboxes on certain ZC pages. I tried using:
Code:
if
(in_array($cPath,explode(",",'14,14_1,14_2,14_3,14_19,5,14_6')) ) {
$show_blank_sidebox= false;
} else {
$show_blank_sidebox= true;
}
and
Code:
if (isset($_GET['products_id,shopping_cart'])) {
$show_blank_sidebox= false;
} else {
$show_blank_sidebox= true;
}
but it only works for ZC sideboxes. I'm at a loss so if anyone has a solution that they could share it would be awesome!
Thanks
ps The blank sidebox isn't the sidebox I'm trying to turn off. It's just an example of code.
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
thebasher
Still looking for a way to turn off WP sideboxes on certain ZC pages. I tried using:
Code:
if
(in_array($cPath,explode(",",'14,14_1,14_2,14_3,14_19,5,14_6')) ) {
$show_blank_sidebox= false;
} else {
$show_blank_sidebox= true;
}
and
Code:
if (isset($_GET['products_id,shopping_cart'])) {
$show_blank_sidebox= false;
} else {
$show_blank_sidebox= true;
}
but it only works for ZC sideboxes. I'm at a loss so if anyone has a solution that they could share it would be awesome!
Thanks
ps The blank sidebox isn't the sidebox I'm trying to turn off. It's just an example of code.
You also need to tell the sidebox what to do if it is set to show
Code:
if
(in_array($cPath,explode(",",'14,14_1,14_2,14_3,14_19,5,14_6')) ) {
$show_blank_sidebox= false;
} else {
$show_blank_sidebox= true;
}
if ($show_blank_sidebox == true;) {
Do whatever its supposed to do
}
Re: Wordpress On Zencart / Released
Hey Clyde,
Here is the code I have for my "wp_sidebar" sidebox:
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
if (in_array($cPath,explode(",",'14,14_1,14_2,14_3,14_19,5,14_6')) ) {
$show_wp_sidebar= false;
} else {
$show_wp_sidebar= true;
}
if ($show_wp_sidebar == true) {
require($template->get_template_dir('tpl_wp_cats.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_wp_sidebar.php');
$title = BOX_HEADING_WP_SIDEBAR;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = 'wordpress';
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>
But it completely shuts off my right column. Well not shuts off but the only thing that shows up is this:
Code:
Parse error: parse error, unexpected $ in /home/content/b/a/s/basherbeatz/html/includes/modules/sideboxes/wp_sidebar.php on line 38
It's obvious that I'm missing something. I just don't know what that something is. Is the code that I'm using even close to what I need?
Thanks Clyde!
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
thebasher
Hey Clyde,
Here is the code I have for my "wp_sidebar" sidebox:
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
if (in_array($cPath,explode(",",'14,14_1,14_2,14_3,14_19,5,14_6')) ) {
$show_wp_sidebar= false;
} else {
$show_wp_sidebar= true;
}
if ($show_wp_sidebar == true) {
require($template->get_template_dir('tpl_wp_cats.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_wp_sidebar.php');
$title = BOX_HEADING_WP_SIDEBAR;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = 'wordpress';
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>
But it completely shuts off my right column. Well not shuts off but the only thing that shows up is this:
Code:
Parse error: parse error, unexpected $ in /home/content/b/a/s/basherbeatz/html/includes/modules/sideboxes/wp_sidebar.php on line 38
It's obvious that I'm missing something. I just don't know what that something is. Is the code that I'm using even close to what I need?
Thanks Clyde!
You forgot to close the final if statement:
Code:
if ($show_wp_sidebar == true) {
require($template->get_template_dir('tpl_wp_cats.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_wp_sidebar.php');
$title = BOX_HEADING_WP_SIDEBAR;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = 'wordpress';
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
Re: Wordpress On Zencart / Released
I'm an idiot!!! :lamo:
I forgot one "}".
That's it. I still couldn't get the wp sidebox to not show on my main page without it also not showing on my WP pages. So I decided to add the "archives" to the "categories" sidebox and just have them on all the time.
Not exactly what I was looking for but it gets the job done.
Re: Wordpress On Zencart / Released
Is there a way to include the contents of WP in the ZC search form?
ie: When you type something in the search box from ZC it will include entries from the WP database. I installed WP in the same database as ZC.
Re: Wordpress On Zencart / Released
I have installed - all is fine except when I changed the root url (as notes below) nothing works
Step2)Setting of WordPress
[WordPress admin URL] › Options › General
[Blog address (URL)] change to [Zen-Cart URL].
[WordPress admin URL] › Presentation › Themes
Select WordPress Default 1.6(Default setting)*1
before the root was (fake domain used)
http://www.123nothingzzz.co.uk/store...e/wp-login.php
the zen cart root is
http://www.123nothingzzz.co.uk/store
so now when I go to login I get
http://www.123nothingzzz.co.uk/store/wp-login.php and a 404 error
Also none of the style sheets work, or the links........
Can i manually edit a file via dreamweaver to correct and then what should I do?
The store root is http://www.123nothingzzz.co.uk/store/
WP is installed under this in the folder /Clean-Language/