Forums / All Other Contributions/Addons / Wordpress On ZC [Support Thread]

Wordpress On ZC [Support Thread]

Views: 622,076

Results 161 to 180 of 1,861
28 Jun 2007, 3:22 PM
#161
hollydoodledesigns avatar

hollydoodledesigns

New Zenner

Join Date:
Jun 2007
Posts:
24
Plugin Contributions:
0

Wordpress On ZC [Support Thread]

Zen Cart 1.3.7 Root dir - http://www.hollydoodledesigns.com/shop

  1. Uploaded(minus index.php) and installed WordPress 2.2into the Zen Cart root dir.
  2. Uploaded ZC_ROOT into Zen Cart root dir
  3. Commented out "return" in wp-include/template-loader.php
  4. Renamed includes/extra_configures/wordpress-config.txt to wordpress-config.php and added database information to the file.
  5. Added wp_archives and wp_cats to Layout Boxes Controller.
  6. Uploaded /SAMPLE/wp-content/themes/ to wp-content/themes.
  7. Pasted CSS into my Zencart stylesheet.css.After all of that I am still getting the error:

I am getting the following error. "It doesn't look like you've installed WP yet. Try running install.php."

What am I missing or doing wrong?

Thanks,
Brian

28 Jun 2007, 4:27 PM
#162
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Item 5.. don't understand this comment...
re
Layout Boxes Controller
Do you have wp-config.php in your zencart install?
This file should have details of your mysql database etc
associated with your WordPress Install
You can see my demo WordPress Mod install into ZenCart 1.37
at
http://www.dezinashop.com/demo/

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

28 Jun 2007, 5:50 PM
#163
hollydoodledesigns avatar

hollydoodledesigns

New Zenner

Join Date:
Jun 2007
Posts:
24
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Misty,

Thanks for the hlep.

misty:

Item 5.. don't understand this comment...
re
Layout Boxes Controller

It was step 7 in the instructions:
7.Layout Boxes Controller of a ZenCart management screen, please install wp_archives and wp_cats.

misty:

Do you have wp-config.php in your zencart install?
This file should have details of your mysql database etc
associated with your WordPress Install

I do have wp-config.php in my Zencart root directory.

This is what it looks like:

<?php //mb_language("Japanese"); //mb_internal_encoding("EUC-JP"); if (file_exists('includes/configure.php')) { include('includes/configure.php'); }else if (file_exists('../includes/configure.php')) { include('../includes/configure.php'); } // ** MySQL settings ** // define('DB_NAME', 'hollydoo_zencart'); // The name of the database define('DB_USER', 'hollydoodle'); // Your MySQL username define('DB_PASSWORD', 'mypassword'); // ...and password define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value*/ // You can have multiple installations in one database if you give each a unique prefix $table_prefix = DB_PREFIX . 'wp_'; // Only numbers, letters, and underscores please! define ('WPLANG', ''); /* That's all, stop editing! Happy blogging. */ define('ABSPATH', dirname(__FILE__).'/'); require_once(ABSPATH.'wp-settings.php'); ?>

One question. I renamed wordpress-config.txt to wordpress-config.php. I also added my database connection information in that file as well. Should I have left it alone and only renamed it?

Thanks again,
Brian

28 Jun 2007, 6:22 PM
#164
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

hollydoodledesigns:

Misty,

Thanks for the hlep.
It was step 7 in the instructions:
7.Layout Boxes Controller of a ZenCart management screen, please install wp_archives and wp_cats.
I do have wp-config.php in my Zencart root directory.
This is what it looks like:

<?php //mb_language("Japanese"); //mb_internal_encoding("EUC-JP"); if (file_exists('includes/configure.php')) { include('includes/configure.php'); }else if (file_exists('../includes/configure.php')) { include('../includes/configure.php'); } // ** MySQL settings ** // define('DB_NAME', 'hollydoo_zencart'); // The name of the database define('DB_USER', 'hollydoodle'); // Your MySQL username define('DB_PASSWORD', 'mypassword'); // ...and password define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value*/ // You can have multiple installations in one database if you give each a unique prefix $table_prefix = DB_PREFIX . 'wp_'; // Only numbers, letters, and underscores please! define ('WPLANG', ''); /* That's all, stop editing! Happy blogging. */ define('ABSPATH', dirname(__FILE__).'/'); require_once(ABSPATH.'wp-settings.php'); ?>

One question. I renamed wordpress-config.txt to wordpress-config.php. I also added my database connection information in that file as well. Should I have left it alone and only renamed it?

Thanks again,
Brian
:huh:
my wp-config.php not same as you have quoted.. yours has
EXTRA entries at top re configure files...
table prefix also different....
i.e. my file

<?php
// ** MySQL settings ** //
define('DB_NAME', 'mydatabase_name');    // The name of the database
define('DB_USER', 'mydatabase-username');     // Your MySQL username
define('DB_PASSWORD', 'mypassword'); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!
// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');
/* That's all, stop editing! Happy blogging. */
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>

Layout box controller files are for sideboxes..I did not bother
adding those until after WP Module installed correctly..
wordpress-config.php.. adding database details not required..
HTH

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

28 Jun 2007, 9:28 PM
#165
hollydoodledesigns avatar

hollydoodledesigns

New Zenner

Join Date:
Jun 2007
Posts:
24
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Misty, I am still having the same issue. I must be missing something simple.

Here is what my wp-config.php looks like now.

<?php // ** MySQL settings ** // define('DB_NAME', 'hollydoo_zencart'); define('DB_USER', 'hollydoo'); define('DB_PASSWORD', 'mypassword'); define('DB_HOST', 'localhost'); $table_prefix = 'wp_'; define ('WPLANG', ''); /* That's all, stop editing! Happy blogging. */ define('ABSPATH', dirname(__FILE__).'/'); require_once(ABSPATH.'wp-settings.php'); ?>-------------------------------------------

Here is my wordpress-config.php I just renamed it from .txt to .php. I made no changes to it.

<?php // // wordpress on zencart by <http://www.s-page.net/> // $woz_install=0; if (file_exists(DIR_FS_CATALOG . 'wp-settings.php')) { $woz_install=1; define('WP_USE_THEMES', true); $wp_did_header = true; define('DB_NAME', DB_DATABASE); // The name of the database define('DB_USER', DB_SERVER_USERNAME); // Your MySQL username define('DB_PASSWORD', DB_SERVER_PASSWORD); // ...and password define('DB_HOST', DB_SERVER); // 99% chance you won't need to change this value // You can have multiple installations in one database if you give each a unique prefix $table_prefix = DB_PREFIX . 'wp_'; // Only numbers, letters, and underscores please! // Change this to localize WordPress. A corresponding MO file for the // chosen language must be installed to wp-includes/languages. // For example, install de.mo to wp-includes/languages and set WPLANG to 'de' // to enable German language support. define ('WPLANG', ''); /* That's all, stop editing! Happy blogging. */ //define('ABSPATH', './wordpress/'); define('ABSPATH', DIR_FS_CATALOG); require_once(ABSPATH.'wp-settings.php'); $i=strlen(DIR_WS_CATALOG); $req=substr($_SERVER['REQUEST_URI'],$i,1); if($req=='?'){ $_GET['main_page']='wordpress'; } if(isset($_GET['feed'])){ wp(); gzip_compression(); // require_once('./wordpress/wp-includes/template-loader.php'); require_once('./wp-includes/template-loader.php'); exit(); } } ?>Do those look OK?

Also,

Is my Wordpress address and Blog Address suppose to point to the root dir in the Wordpress Admin? Here is what I have.

WordPress Address (URL): http://www.hollydoodledesigns.com/shop
Blog Address (URL): http://www.hollydoodledesigns.com/shop

Thanks,
Brian

28 Jun 2007, 10:35 PM
#166
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Those files look ok except for

define('DB_USER', 'hollydoo'); 

My entry there would be i.e.

define('DB_USER', 'hollydoo_somename');

If installed correctly.. url to access your
zencart wordpress mod should be
http://www.hollydoodledesigns.com/shop/?
but you have urls set correctly in WP admin i.e.

Is my Wordpress address and Blog Address suppose to point to the root dir in the Wordpress Admin? Here is what I have.

WordPress Address (URL): http://www.hollydoodledesigns.com/shop
Blog Address (URL): http://www.hollydoodledesigns.com/shop

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

28 Jun 2007, 11:13 PM
#167
hollydoodledesigns avatar

hollydoodledesigns

New Zenner

Join Date:
Jun 2007
Posts:
24
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

misty:

Those files look ok except for

define('DB_USER', 'hollydoo');

> ```
define('DB_USER', 'hollydoo_somename');

I went ahead and created a database user named hollydoo_wp that has full access to the hollydoo_zencart database which is where the wp tables are located. I updated the wp-config.php to reflect this and I still get the same error. I am unsure how to proceed. I have no clue what is causing this error and how to troubleshoot it. Below is what I changed in my wp-config.php file.

define('DB_USER', 'hollydoo_wp');
28 Jun 2007, 11:29 PM
#168
hollydoodledesigns avatar

hollydoodledesigns

New Zenner

Join Date:
Jun 2007
Posts:
24
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I got it working. The problem was in the wordpress-config.php

Before:

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = DB_PREFIX . 'wp_'; // Only numbers, letters, and underscores please!After:
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!Thanks to everyone that offered up suggestions. I appreciate it. I am sure I will be back with some more questions as I try to tweak the layout to my liking.

29 Jun 2007, 6:24 AM
#169
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

hollydoodledesigns:

I got it working. The problem was in the wordpress-config.php
Great news...Well Done!!
:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

29 Jun 2007, 8:08 AM
#170
dhaya avatar

dhaya

New Zenner

Join Date:
Jun 2007
Location:
India
Posts:
15
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi..

I have installed wordpress in root diractory and zencart in a folder of same root directory. I didnt get the idea to integrate both. Please anyone explain me..

thanks,

Dhaya

29 Jun 2007, 8:12 AM
#171
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Dhaya:

Hi..

I have installed wordpress in root diractory and zencart in a folder of same root directory. I didnt get the idea to integrate both. Please anyone explain me..

thanks,

Dhaya
http://www.s-page.net/products/62.html
WordPress Zencart Module from above url..
To integrate, wordpress and zencart should be in same
directory/folder and use same database

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

29 Jun 2007, 11:14 AM
#172
dhaya avatar

dhaya

New Zenner

Join Date:
Jun 2007
Location:
India
Posts:
15
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi,

Thanks i got it. I installed all the files in same folder but how can i install wp_archives and wp_cats in Layout Boxes Controller? it shows error when i enable those two in layout boxes..

It doesn't look like you've installed WP yet. Try running install.php.

But i installed wordpress already. where i did mistake?

dhaya

29 Jun 2007, 12:27 PM
#173
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

how can i install wp_archives and wp_cats in Layout Boxes Controller?
These files are of secondary importance and only allow for
sidebox integration.. best to wait until wordpress mod is
installed correctly
It doesn't look like you've installed WP yet. Try running install.php.
But i installed wordpress already. where i did mistake?
Suggest you read previous posts on this thread, from past couple of days, by myself and member, hollydoodledesigns..he had same problem
but fixed it with my help..

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

30 Jun 2007, 11:08 AM
#174
beast666 avatar

beast666

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi all - this mod looks great, I wish I could get it to work. Can anyone post some instructions that make sense? I'm on my 7th install and am still having problems with (I think) the wp-config.php - and the mysterious wordpress-config.php in (/includes/extra_configures). Should these files be the same?

And what is ABSPATH and how do we define it properly? I believe this is the cause of most of the errors about missing files and functions.

Do what thou wilt shall be the whole of the Law.
www.occultsupplies.co.uk
Love is the law, love under Will.

1 Jul 2007, 10:58 AM
#175
beast666 avatar

beast666

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

:yuck:
Aaarrrgghhh!
:frusty:
HELP!!!
:wacko:
I've been working at this for an entire week and I am going insane - virtually no progress.
:Flush:
This is harder than getting Paypal to work.
:sadwalk:
PLEASE - someone with some knowledge of this mod - I BEG OF YOU - post a working set of files with instructions that make sense.
:schmoll:

Do what thou wilt shall be the whole of the Law.
www.occultsupplies.co.uk
Love is the law, love under Will.

1 Jul 2007, 11:13 PM
#176
a_1_electronics avatar

a_1_electronics

Inactive

Join Date:
Apr 2007
Posts:
117
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Here is the link to my original post. I am having a little difficultly with this. http://www.zen-cart.com/forum/showthread.php?t=69300

From what I have been told, the side box .php files for this mod are from an older ver of ZC. Is there a simple way to make the WP side boxes only visible after someone has logged in? It has been suggested that I rewrite the code for the sideboxes. I am not a programmer and my boxes work fine other than being there all the time.

This php file is from the Wordpress on Zencart Mod.

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2004 The zen-cart developers | // | | // | [\*\*\[U\]\[COLOR=#0000ff\]http://www.zen-cart.com/index.php\[/COLOR\]\[/U\]\*\*](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: | // | [\*\*\[U\]\[COLOR=#0000ff\]http://www.zen-cart.com/license/2\_0.txt\[/COLOR\]\[/U\]\*\*](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 | // | license AT zen-cart DOT com so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ require($template->get_template_dir('tpl_wp_archives.php',DIR_WS_TEM PLATE, $current_page_base,'sideboxes'). '/tpl_wp_archives.php'); $title = BOX_HEADING_WP_ARCHIVES; $left_corner = false; $right_corner = false; $right_arrow = false; $title_link = false; require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); ?>

Is there some code simular to:

// test if box should display
if (!$_SESSION['customer_id']) {
$show_featured= false;
} else {
$show_featured= true;
}

That would allow the same results? I have looked at other sideboxes and I can see the differences in the styles that the code were written in. However, they are very different in the way the work. At least to me.

2 Jul 2007, 5:00 AM
#177
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Wp_Sideboxes to show only after login.......

//Comment in next line if only registered members can view this sidebox 
//if ($_SESSION['customer_id'] != '') 
  require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); 

should do what you require..remove the two forward slashes
before

if ($_SESSION['customer_id'] != '') 

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jul 2007, 5:50 AM
#178
dhaya avatar

dhaya

New Zenner

Join Date:
Jun 2007
Location:
India
Posts:
15
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi Misty,

     I got everything fine in sidebox i.e WP category,pages, archives and links. I replaced my old database(WP) with this integrated WP database. The category,links lists well in sidebox. But i cant able to get the posts in content area. I dont know how to get the post content when user clicks category. did i miss any configuration? . Post content are in WP database. 

regards,

Dhaya

2 Jul 2007, 6:12 AM
#179
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Dhaya:

Hi Misty,

I got everything fine in sidebox i.e WP category,pages, archives and links. I replaced my old database(WP) with this integrated WP database. The category,links lists well in sidebox. But i cant able to get the posts in content area. I dont know how to get the post content when user clicks category. did i miss any configuration? . Post content are in WP database.

regards,

Dhaya
Have you installed zencart wordpress mod, or are trying to integrate
an existing version of standalone wordpress install?
Url of your site is???

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jul 2007, 6:37 AM
#180
dhaya avatar

dhaya

New Zenner

Join Date:
Jun 2007
Location:
India
Posts:
15
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi,

I have installed WP separately.
site url is http://ciscodeals.com/routers/

am confused where to get post pages.. Help me..

Dhaya