We're using 1.3.6.
So, you're saying this should be working correctly? If so, then what should I look into to solve this weirdness with posts/pages not showing at all?
Printable View
We're using 1.3.6.
So, you're saying this should be working correctly? If so, then what should I look into to solve this weirdness with posts/pages not showing at all?
Yes, ok you are using ZenCart v1.36 BUT I askedQuote:
We're using 1.3.6.
So, you're saying this should be working correctly? If so, then what should I look into to solve this weirdness with posts/pages not showing at all?
which version of WordPress module did you install..
Version 1.2 or Version 1.3
from http://www.s-page.net/products/62.html
Ah sorry -- zen wordpress mod is 1.3 even though the readme says 1.2. I downloaded it again and doublechecked. We're using the latest wordpress files: 2.1.3.
Thanks for info visited your site from url in PM you sent..
Your zencart with wordpress module installed should look
like http://www.dezinacart.co.uk/index.ph...page=wordpress
so did you read wordpress module instructions regarding adding
css to your existing template stylesheet and adding a revised
template page i.e.
zencart Sideboxes for wordpress MUST reflect correct mysql setting forQuote:
----------------
Design adjustment
----------------
1.Please revise a header of a Wordpress theme, a footer, a sidebar, a style sheet.
(Please just upload a reference file if troublesome.)
Reference [/SAMPLE/wp-content/themes/]
2.Please add the following to a style sheet of ZenCart.
/* bigin */
.leftboxcontent ul li, .rightboxcontent ul li , .singleboxcontent ul li{
list-style-type: none;
margin:0px;
padding-left: 0px;
}
.leftboxcontent ul, .rightboxcontent ul , .singleboxcontent ul{
margin:0px;
padding-left:0px;
}
.leftboxcontent ul ul, .rightboxcontent ul ul, .singleboxcontent ul ul{
list-style-type: square;
margin:0px;
padding-left:5px;
}
/* end */
your wordpress install..and wordpress sql database
should be in same database as zencart install..
See my earlier reply today, this thread(postnumber 98), in answer to Stenrique's similar post..
Good call, you're probably right that this is where I failed because even on 6th viewing, I don't have a clue what he's talking about.
I did add the css he mentioned in the instructions to one of my zen's stylesheet.css. The style.css should just stay in the wp-content/theme directory, right? I didn't do any modding of the footer, sidebar or the style.css sheet.
I just tried uploading his SAMPLE default theme and all of the css disappeared and the articles weren't found either. I put it back to the way it was.
Is he saying we should put some of these files in the zen templates directory? Sorry, not sure why I'm so confused by this. I have tried to follow the directions closely.
You're right that my URL is wrong -- the sidebox database sql is correct as far as i can tell, though.
I just noticed this in one of the first posts on this thread:
Where in the world does it say to do that? I'm figuring I didn't set the URL correctly on the wordpress management screen -- but it doesn't give any direction for this in the readme. Are there instructions somewhere I'm missing?Quote:
Please set the following with an option of a wordpress management screen.
-- Blog address (URI):Your_ZenCart_URL/index.php?main_page=wordpress
Additional(I quoted it above) css should be added to your current template's stylesheet.Quote:
I did add the css he mentioned in the instructions to one of my zen's stylesheet.css.
His sample theme file should be added to your zencart install folder inQuote:
I just tried uploading his SAMPLE default theme and all of the css disappeared and the articles weren't found either. I put it back to the way it was.
/includes/templates/nameofyourtemplate/templates
I found that the missing lower portion of the sidebox is due to the missing 'div' element in the sidebox code.
However, I am still encountering the error:Could you elaborate on the following?TIA.Quote:
Warning: mysql_error(): 10 is not a valid MySQL-Link resource in /home/mysite/public_html/blog/wp-includes/wp-db.php on line 177
Is your WordPress Module installed in same SQL database as your zencart install?
Can you post sql details? do entries start as
zen_wp_
Have just installed WordPress Module(latest 1.3 Version)
into Demo ZenCart 1.37 showcase site
at http://dezinashop.com/demo/
As you will see, sideboxes work fine, as does 3 latest blog
posts integrated into zencart main index page..
WordPress mod files uploaded directly into zencart folder....
For some reason, I'm getting a "Server not found" error when I click on the link to the demo site.
Yes, wordpress tables are installed in the same database as those of zencart tables.Quote:
Is your WordPress Module installed in same SQL database as your zencart install?
Mind elaborating on the above? Brain's at 1st gear now. If I understand you correctly, all my Wordpress tables are prefixed with "mysite_wp_".Quote:
Can you post sql details? do entries start as
zen_wp_
My zencart is still at version 1.36 and Wordpress is installed in a sub-folder named "blog" under my catalogue (home/mysite/public_html/blog). TIA.
Latest version of Zencart Wordpress module worksQuote:
My zencart is still at version 1.36 and Wordpress is installed in a sub-folder named "blog" under my catalogue (home/mysite/public_html/blog).
when installed into your actual zencart folder/site
and not separate folder as you have stated.
Hello there,
Thanks to everyones help. I think I have it cracked. Please check out site below to see if I have. I was wondering how you guys managed to seamlessly pop the blog into Zencart, when you click on a sidebox link. contrary to readme with mod, I put index.php back in wordpress/ because when I clicked on sidebox links, it went awol. So I am guessing I haven't fully installed it.
Cheers! :lookaroun
HeathenMagic...
http://www.dezinashop.com/demo/
Above shows how WordPress module should look when seamlessly integrated into zencart
Hello Misty,
Thankyou for helping me. I must admit, my installation also is in public_html/wordpress etc....
If I put a direct url to wordpress, it is integrated.
http://thegemtree.com/index.php?main_page=wordpress
I know I have to alter css, footer and header files also.
But the sidebox links and some links on the page above, have a /?cat=1 ending, which makes it go back to the home page.
So I am getting! there. lol
Understood. I installed it through Fantastico, which wouldn't let me install it in the root. So I will install it manually. Hope this helps others out, as I know Fantastico is popular.
Cheers for the pointers! :smile:
Hope someone can help :lookaroun
I've installed Zencart 1.3.7 (with Future-Zen template), and the latest Wordpress release, using the mimetastic theme (for the fluid aspect of the theme).
I have everything running fine at the moment, except the wordpress sideboxes don't display the same as the rest of the sideboxes.
Can somebody please point me in the right area to modify to fix this?
I have ordered the book, and waiting for it to arrive, but want to fix this ASAP.
Thanks in advance
Duane
Demo of the problem:
www.rndsolutions.com.au
Dorn,
I had the same problem and I resolved it by editing the /includes/templates/template_default/sideboxes/tpl_wp_cats.php file:
Hope this help.Code:$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
if($woz_install){
//start wp output
ob_start();
wp_list_cats('sort_column=name&optioncount=1&hierarchical=0');
$out = ob_get_clean();
//end wp output
$content .= '<ul>'.$out.'</ul>';
$content .= '</div>';
}
Stenrique,
If you could see me now, I am on my knees praising you, thanks, it worked perfectly.
Dorn
Glad I can be of help Dorn.
My praise to the Zen Cart team and community.
The link on the first post is broken.
where should I download the module?
Thanks!
See POST11 of this thread or http://www.s-page.net/products/62.html
Suggest you download version 1.3 from url quoted
:smile:
i'm able to get wordpress working on a seperate directory then i'm lost as to what to do after that i'm going to read all the info on this again but it's just giberish to me, it takes me 10plus hours just to upgrade my zencart just so you can understand where i'm comming from (i won't even upgrade my 1.3.6 to 1.3.7 because i don't want the headache)
I have installed wordpress .3 and am running zen cart 1.3.7 I uploaded the samples and everything else, included them in my sideboxes and they show up but only as titles....there is no way to get into the blog and I can't figure out how to access the admin area, I have looked through my zen cart admin a 1000 times and can't find anything. Any help would be great.
You can see it on my site.
Everything is in my admin folder. I was able to install it.
I just changed all of my wordpress files directly into zencart and now when I go to my site I click on either blog option it takes me to my zen cart admin page!!!! I still can not find any configure options on my admin either....I odviously have something majorly wrong, but I don't know what. I deleted all the "old" files out of my admin folders.
10 hours later, I figured out my problem was, I needed to empty the database tables. So everything is installed directly into my root, changes have been made according to readme. Now my sideboxes just reload my mainpage. Can anyone point me in some direction? I also have nothing in my site admin about wordpress except under the layoutboxes, is this right??? What am I doing wrong? :frusty: This couldn't say it better!
Can anyone help me with this? My blog link is still just redirecting to my home page. What do I need to change? I have looked at all of my files, they are all in the correct spot, I have unistalled and installed again. I am out of options as far as I know....which isn't very far, ha ha!
I currently have Zen installed in the root dir of my server. I have Wordpress installed in a directory called 'forum'.
Is there a way to take my existing installation of Wordpress and move it so that it works inside of Zen without having to reinstall wordpress?
I'm sorry I didn't make out how to write a blog. :blush:
Thanks!:smile:
I have recently tried to install the Wordpress on ZenCart mod. I followed the instructions to the letter and rechecked all the steps twice. When I try and bring up my index.php, I get an error page stating that I have not installed Wordpress yet. I have and can access the admin panel. I did not upload the Wordpress index.php as instructed and when I open the index.php in dreamweaver, it is the page for ZC. The only thing that I may have done incorrectly is I left the old WP database in place and just dumped the tables. When I installed WP, it located the database and installed the new tables.
There was one item that I found in the instructions that was not exactly the same. "6.Change a file name [includes/extra_configures/wp-config.txt] to [includes/extra_configures/wp-config.php]." The file that I located here was accutally called 'wordpress-config.txt' and I renamed it 'wp-config.php'
Also, do I need to remove all 'index.php' from WP? example: wp-content/index.php
Any ideas??
Although I don't have the same problem, I have been having troubles having this working. Though I feel I am so close. I think it is hard to grasp the instructions, but it is not the Authors fault due to their locality. I think I have got most of it nailed, eg. wordpress in the root of Zencart e.t.c. Just me being dense and missing the finer points maybe. lol
As far as I understand, you don't need to remove the index.php from WP-Content.
That was one of my concerns. The file from the mod is called wordpress-config.txt. However, the instructions state to find wp-config.txt and change it to wp-config.php. I was not sure how to name the file.
From what I am understanding, I need to rename it to wordpress-config.php, correct?
And thank you for your response.
I have to be missing something simple.
I am getting the same error.
Do I need to have one database for both zen and wp? I didn't think it would matter but maybe it does.
I have read thru and found nothing. Im sure this is simple. I have installed as per the instructions. I have edited the wordpress_config.php file to the correct settings, I think.
When I goto Your_ZenCart_URL/wp-admin/install.php, no error, just a blank screen? Help!!!!!!!!!!
Thank You
Gary
Finally got it.
Will this mod allow a registered account holder in Zen to post blogs without having to register in WP?
This is getting every frustrating. Now I'm back to getting the same error message again. 'It doesn't look like you have installed WP yet. Try running install.php'
Now I'm back to having it working.:clap:
Now I'm having different probs :frusty:
When I try to open the admin panel, try to open the wp-login.php page, or try to open the wp-register.php page I receive the following message 'Fatal error: Call to undefined function: mb_language() in /home/content/w/h/a/whatever/html/wp-config.php on line 2'
This is in referecne to line 2 'mb_language("English");'
Line 3 is 'mb_internal_encoding("EUC-JP");'
Do I need to make some additional changes concering the language elsewhere in this mod?
I found the answer in the thread. I was using the wp-jp.zip version. I commented out the language lines and all is well. :oops:
I am still having problems with this module. I have it installed directly into my root as directed and my links are still directing back to my main page. I am doing something wrong, but don't know what. Am I supposed to upload the sample folders? Am I missing something or is the only place wp-include/template-loader.php is found is in the sample folders? Any help or ideas is greatly appreciated, I've spent much too long on this!
The site is down. :-(
Anyone know why the site is down?
Am assuming you mean site that houses WordPress Module download.
Accessed 1 minute ago at
http://www.s-page.net/products/62.html
Hello everybody .
I have a problem with the uncompatibility between Wordpress_zen v1.2 and latest google froogle feeder. Anyone has ever such problem yet.
I test it both on my pc and host sever.. It do have such problem.
If you have zen_worldpress on your zencart .
You can not enable the google feeder to work..
Please anyone has solve the problem ?
Thanks for any reply.
Just find out which file in zen_wordpress has conflicted with google foogle feeder.
zen_root\includes\extra_configures\wordpress-config.php
if(isset($_GET['feed'])){
wp();
gzip_compression();
// require_once('./wordpress/wp-includes/template-loader.php');
require_once('./wp-includes/template-loader.php');
exit();
}
The function code isset($_GET['feed']) do conflit with google froogle. Since there is the same function Line in goolgefroogle.php in zencart root directory!
I know little php , My way to get the worked together is to delete the code
if(isset($_GET['feed'])){
wp();
gzip_compression();
// require_once('./wordpress/wp-includes/template-loader.php');
require_once('./wp-includes/template-loader.php');
exit();
}
}
in wordpress-config.php.
The wordpress still works fine. But i am not sure there will be any hidden trouble in futurn.
DOes any body have other options to change the code ?
Looks great! Any chance it works with Wordpress 2.2.1?? Any experiences to share? Thanks Nathan
I installed ZenCar 1.3.7.
I already had WordPress 2.0.2 installed in a seperate diretory. I moved the WordPress files to the zencart root and changed the URIs in WordPress admin per the instructions from WordPress. I then installed the WordPress on Zencart module and followed the instructions.
I am getting the following error. "It doesn't look like you've installed WP yet. Try running install.php."
My question is:
1) Does the word press database have to be installed in the zencart database?
I currently have them seperate hollydoo_zencart and hollydoo_wp_1.
MadTeckHead,
I just installed with WP 2.2.1 and had very little problems with it. Looks awesome and just what my client needed!
Thanks Lawbird123, I actually didn't wait for a reply and had it all install in under 30 min! Wow... Thanks for your reply all the same. I found one small change for the readme file the referance to "exit;" does not exist in this file in Wordpress 2.2, has been replaced with "return;". So i just commented out that instead. Piece of cake, however I am not all that impressed with the theme. Have people got suggestions / options about the best way to merge the two themes? I really am not keen to start from scratch, so if anyone has something that works for them I would be very keem to take it and build on it. Thanks for the great contrib. Nathan
MTH,
Same way you create a new theme for ZC... go to content->themes and create a new folder. Copy the folders from default theme and paste them into your new folder. Modify your style.css and whatever else you need changed from there. Make sure in your WP admin you select your new theme. I took out the sideboxes, footer, and header from mine with no probs.
I went ahead and removed WordPress 2.0.2 and installed WordPress 2.2 in the Zencart root dir and put the WordPress tables in the same database as Zencart. I then went back through the "WordPress on Zencart" instructions and I am still getting the same error. What am I missing? BTW. I installed WordPress on Zencart V1.3
http://www.hollydoodledesigns.com/shop
Thanks for your help,
Brian
Brian, I was getting the same error so I changed out a couple of the wp files that come with mod to resemble what the wp original install files looked like and that solved my issue.
Both config files... the one in the root dir and another one called wordpress-config.php found in the install (you'll want to change that to wp-config.php)
anyone can point me a method how to make the wordpress work in a separete folder. I've searched thread , there is no detailed method posted .
Thanks
Zen Cart 1.3.7 Root dir - http://www.hollydoodledesigns.com/shop
After all of that I am still getting the error:
- Uploaded(minus index.php) and installed WordPress 2.2into the Zen Cart root dir.
- Uploaded ZC_ROOT into Zen Cart root dir
- Commented out "return" in wp-include/template-loader.php
- Renamed includes/extra_configures/wordpress-config.txt to wordpress-config.php and added database information to the file.
- Added wp_archives and wp_cats to Layout Boxes Controller.
- Uploaded /SAMPLE/wp-content/themes/ to wp-content/themes.
- Pasted CSS into my Zencart stylesheet.css.
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
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/
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
Layout box controller files are for sideboxes..I did not botherCode:<?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');
?>
adding those until after WP Module installed correctly..
wordpress-config.php.. adding database details not required..
HTH
Misty, I am still having the same issue. I must be missing something simple.
Here is what my wp-config.php looks like now.
----------------------------------------------------------
-------------------------------------------Quote:
<?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.
----------------------------------------------
Do those look OK?Quote:
<?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();
}
}
?>
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
Those files look ok except for
My entry there would be i.e.Code:define('DB_USER', 'hollydoo');
If installed correctly.. url to access yourCode:define('DB_USER', 'hollydoo_somename');
zencart wordpress mod should be
http://www.hollydoodledesigns.com/shop/?
but you have urls set correctly in WP admin i.e.
Quote:
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
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.
Code:define('DB_USER', 'hollydoo_wp');
I got it working. The problem was in the wordpress-config.php
Before:
After:Quote:
// 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!
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.Quote:
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!
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
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
These files are of secondary importance and only allow forQuote:
how can i install wp_archives and wp_cats in Layout Boxes Controller?
sidebox integration.. best to wait until wordpress mod is
installed correctly
Suggest you read previous posts on this thread, from past couple of days, by myself and member, hollydoodledesigns..he had same problemQuote:
It doesn't look like you've installed WP yet. Try running install.php.
But i installed wordpress already. where i did mistake?
but fixed it with my help..
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.
: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:
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 |
// | |
// | 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 |
// | 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.
Wp_Sideboxes to show only after login.......
should do what you require..remove the two forward slashesCode://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);
before
Code:if ($_SESSION['customer_id'] != '')
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
Hi,
I have installed WP separately.
site url is http://ciscodeals.com/routers/
am confused where to get post pages.. Help me..
Dhaya
Hi..
I have followed the url below.. i thing itz zencart WP module
http://www.s-page.net/products/62.html
also i got the fields in sidebox. Please have a look on my site.. only problem is i cant able to access post pages.
Dhaya
Shall i install Wp again. Just download WP from http://wordpress.org/download/ and shall i proceed with Zen WP module?
Dhaya
Do I need to remove the rest of the code that is already there? I tried adding the code you provided before the existing code but the sidebox still shows up without being logged in.
I also went and tried adding the code after the existing code with the same results.
I was in error. The box is still there. But instead of showing archive information, it shows a box heading of Blog Archive, but shows manufacture information.
WP Archives sidebox.. only show sidebox to registered members
who are logged into zencart
Copy code below ..create file named wp_archives.php
Place file as follows into
/includes/modules/sideboxes/wp_archives.php
Works.. I tested 3 minutes agoCode:<?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 |
// | 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_TEMPLATE, $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;
//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);
?>
Worked. I don't know what I was doing wrong. I tried that. But, it is working now.
Thank you very much Misty!:clap:
Hi..
I installed new version from wordpress site and i got the content page in zen-cart. But still the post values are not displayed when i click the category then i reecived "page not found" error message. Please tell me where to configure?
Dhaya
When I cut and pasted the code from misty's site a couple of characters were not correct which caused the same issue you are having
define_main_page.php - Make sure the quotes are correct in your file. They weren't in mine which caused the url link to be incorrect.
Quote:
<h2><a href="<?php the_permalink(); ?>"><?php the_title();
I have my blog integrated and displaying on the main page. However my blog posts have some strange characters in them. It is a character encoding issue. Wordpress requires UTF-8 encoding. When I manually change the encoding on my browser to UTF-8 the strange characters disappear. Does anyone know how to resolve this?
Here is the site: http://www.hollydoodledesigns.com/shop
Thanks,
Brian
First off, I am trying to download this from the link on the first page.. I get this:
Error establishing a database connection
Secondly, can someone answer a question for me?
I want to have just 2-3 latest topics of the blog at the bottom of the stores landing page. I do not want any of the blog sideboxes to appear until after a user has clicked through to read more. Can this be done?
Thanks!
Post 171 in this thread gives new url to download Word Press Mod..
WPress Side boxes..can be set so only show to members..
2/3 latest blog topics can be shown on main page of zencart i.e.
http://www.dezinashop.com/demo/
Ok, thanks misty!
Not sure what step I haven't followed here, but the site just isn't coming up. Did a clean install on both ZenCart and WordPress and am pretty sure I followed the directions properly, however looking at other posts everyone else seems to have installed it with no problem so I need to get some guidance- probably very simple. I'm just getting an error that there is a problem connecting to database, however the installation went swimmingly and I can enter admin panel on both ZC and WP so it's something at the front end that isn't happy. Any ideas on why there would be connection issues? The install is on www.pimpmyshow.com
No, I haven't gotten this to work yet. The config file is fine, everything installed properly for both ZC and WP and I can log into the admin section on each, just can't find a front end and the error is DB related so I'm kind of baffled.