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!
Still looking for a way to turn off WP sideboxes on certain ZC pages. I tried using:
andCode: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; }
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!Code:if (isset($_GET['products_id,shopping_cart'])) { $show_blank_sidebox= false; } else { $show_blank_sidebox= true; }
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 }
Hey Clyde,
Here is the code I have for my "wp_sidebar" sidebox:
But it completely shuts off my right column. Well not shuts off but the only thing that shows up is this: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); ?>
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?Code:Parse error: parse error, unexpected $ in /home/content/b/a/s/basherbeatz/html/includes/modules/sideboxes/wp_sidebar.php on line 38
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); }
I'm an idiot!!!
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.
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.
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/
Bookmarks