Results 1 to 10 of 1859

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by busyMom View Post
    Unfortunately I still have this small hiccup I haven't figured out how to fix yet! The title of the wp_cats sidebox is a link directed to the wrong place. The wp_archives sidebox title is not a link, so the problem I'm encountering is only with the wp_cats title. When I try to get to my blog by clicking on the wp_cat sidebox title link, I get a 404 error because the link is navigating to
    http://www.example.com/index.php?main_page=1&zenid=xxxx
    where xxx is the actual zenid number. How do I make this sidebox title link to go to the right place?
    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

  2. #2
    Join Date
    Apr 2008
    Location
    Hill Country, Texas
    Posts
    37
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by busyMom View Post
    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!

  3. #3

    Default 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.

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by thebasher View Post
    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
    
    }

  5. #5

    Default 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!

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by thebasher View Post
    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);
    }

  7. #7

    Default Re: Wordpress On Zencart / Released

    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.

  8. #8

    Default 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.

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3672
    Last Post: 11 Sep 2025, 05:07 PM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 109
    Last Post: 1 Dec 2024, 01:36 PM
  4. PurpleShades Support Thread
    By kobra in forum Addon Templates
    Replies: 122
    Last Post: 18 May 2011, 07:18 PM
  5. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg