Page 45 of 186 FirstFirst ... 3543444546475595145 ... LastLast
Results 441 to 450 of 1859
  1. #441
    Join Date
    Sep 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    That was it!!

    Thanks!!!

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

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

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by eecom View Post
    That was it!!

    Thanks!!!
    That was it for me, too! Thanks so much.

  3. #443
    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!

  4. #444

    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.

  5. #445
    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
    
    }

  6. #446

    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!

  7. #447
    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);
    }

  8. #448

    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.

  9. #449

    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.

  10. #450
    Join Date
    Oct 2007
    Posts
    73
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3606
    Last Post: 25 Apr 2024, 02:41 PM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 107
    Last Post: 13 Jan 2019, 12:32 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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR