I just had one other thought, wanting to make sure that I'm doing this right. This seems like PHP 101, but can someone tell me if both installations- ZC and WP have to be on the same database?
Printable View
Preferably, Yes, and Word Press/Wordpress module shouldQuote:
but can someone tell me if both installations- ZC and WP have to be on the same database?
be installed in zencart directory and not in it's own folder..HTH
[WordPress On ZenCart] v1.3 Release!
This update content is as follows.
(I uploaded screenshot to my blog.)
- Change Zen-Cart template for v1.3
- Support Wordpress and Zen-Cart into separate directories
- (It supports the same directory)
- Zen-Cart side box addition for WordPress sidebars
====
The all of you who had you reply, thank you.
Because I was busy, I am sorry without having reply & update.:(
Thanks my friend.
I will test it..
Hello Hira ,
I have test it on the 1.3.5 zencart.
But once i upload all the files by following the readme files.
The right column and the footer bar are disappeared
What happened . I saw your screenshot were ok ..
I dont know why...
I have finished tested on 1.3.5//
Mod works fine.
But i can not enable the "Permalinks" to customize the URL .
Hi Misty, do you how to enable it?
I tried Ultimate SEO URLs.
Because I wrote the method here, please refer to it.
http://www.s-page.net/en/2007/07/29/...mate-seo-urls/
Hmm. So I just installed Wordpress 2.2.1 in it's own directory. Then uploaded all the files for the mod, but I am getting nothing. I have some new options in the Layout Controller, but it doesn't really do much. It did turn on a "blog sidebar" link of text that has nothing, and when you click it there is an error. Then I turned if off, and it won't go away! Ugh!
So, can anyone help. I follwed the mod instructions to a tee. I am really frustrated about now.
Should I undo it all, and re-install IN my cart directory? Does it not work properly in it's own directory?
Note: using zen cart 1.3.7 w/ wordpress 2.2.1
Another thing I wanted to point is what seems to be a typo in the README:
Step4) File editing of WordPress
Open [wp-include/template-loader.php], and please replace "exit;" with "exit;".
so, it asks us to change "exit;" with "exit;"? There is no difference here!
umm...
thanks for report.
http://www.zen-cart.com/forum/showpo...&postcount=209
I'm having same problem as magneteye.
I was able to enable sideboxes, but nothing shows in the main blog area.
BTW I can enter the blog via
http://www.versatilereproductions.co...ess/wordpress/
but as you see on my main page, it doesn't show:
http://www.versatilereproductions.com/
here is my /includes/extra_configures/wordpress-config.php
<?php
//
// wordpress on zencart by http://www.s-page.net/
//
define ('ABSPATH','/www.versatilereproductions.com/Wordpress/wordpress/');
$woz_install=0;
if (file_exists(ABSPATH.'wp-config.php')) {
$woz_install=1;
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.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(ABSPATH . WPINC . '/template-loader.php');
exit();
}
}
?>
It seems that ABSPATHis wrong
define ('ABSPATH','***');
Please set it in reference to [includes/configure.php] on the server again.
hmm, still not working.
If I understood you correctly, I added the line:
define ('ABSPATH','/www.versatilereproductions.com/Wordpress/wordpress/');
to;
/includes/configure.php
as well as;
/includes/extra_configures/wordpress-config.php
hi,
It seems to have been hard to understand my explanation.
1.At first open [/includes/configure.php] on the server.
2.Please look at the line of [ define('DIR_FS_CATALOG', '***'); ] ,
and please copy text ***.
3.Open [/includes/extra_configures/wordpress-config.php] ,
and please paste a [***]+WordPress directory.
If it is your environment, it is the following images.
define ('ABSPATH','***wordpress/');
An important thing is to input it without making a mistake a COMPLETE path to your WordPress directory.
OK, that makes sense.
Unfortunately, still doesn't work.
I've PM'd both files to you to take a closer look.
Thanks in advance.
Hi All,
I'm having trouble with integrating Wordpress into Zen Cart. First I had Wordpress in a separate file to Zen Cart and that worked fine but I wanted to integrate it into Zen Cart. I followed all of the instructions and have read every post on here and I still can't find the solution to my problem.
When I go to my wordpress url http://www.beautyxpress.com.au/store...age=wordpress/
it comes up with the error
file not found /home/bea15660/public_html/store/index.php?main_page=wordpress/wp-config.php
(please excuse my site at the moment as it is a work in progress).
I believe I have followed all of the instructions but it's just not happening for me. I did put wordpress into a different sql database but I don't believe this to be the problem.
If anyone could help that would be great!
First I want to thank hira, this is awesome!!! I have spent at least 120 hours trying to get this installed and with your awesome directions, I DID IT!!!:clap:
How can I make my sideboxes show when someone is in the blog? I installed wp into its own folder, is that why my sideboxes are not showing in the blog?
I am so afraid to start over I wanted to check.
Thanks again!!:smile:
I should also ask, if it does need to be in the root directory, is there an easy way to fix it or should I delete everything and start over? Please say there's an easy fix!!
Alright, I made the plunge and I have a slow leak!!!:no: I deleted everything and started over, installing everything per the instructions for installing into ZC root. Now my sidebox is not working correctly. The title of the sidebox (Blog Sidebar) works, but the links for everything else does not work.:cry:
Any help is greatly appreciated. I do not understand because it was working when I had wp in its own folder. I feel like I am so close!
Hi, first this is awesome to merge the WordPress to ZenCart. Good job.
I already used WordPress in the past and I know that there is an admin section but I haven't found anything for the admin in Zip file.
I can't setup anything.
Here are the folders included in the file "wordpress_on_zencart_v1.301.zip"
woz_en\WP_ROOT\wp-content
woz_en\WP_ROOT\wp-content\themes\default
woz_en\ZC_ROOT\includes
woz_en\ZC_ROOT\includes\extra_configures
woz_en\ZC_ROOT\includes\languages
woz_en\ZC_ROOT\includes\modules
woz_en\ZC_ROOT\includes\templates
woz_en\docs
----
I'm doing a fresh installation of ZenCart 1.3.7.1.
By the way, is WordPress could work in two different languages, like the rest of the ZenCart appl.?
Best regards.
http://www.thegemtree.com/index.php?...ess/?page_id=2
Hello all,
I have successfully installed this so far, but have a problem with clicking on links in the sideboxes and other links.
They seem to resolve similar to this:-
main_page=wordpress/?page_id=2
when clicked, you go to the home page.
I am sure I have done everything correctly, I appreciate any small pointer to my mistake.
Regards,
Heathenmagic
:smile:
Hello helpme,
Yes mine is in its own directory. I tried it installed in the root and I had the same problem. Apart from that, the index page looks okay, just a bit of ccss adjustment and that is it. But just stumbling over this little glitch.
Regards,
Heathenmagic,
:smile:
I did this hira but still getting no joy.
Please let me know if there are any other files I could PM to you to look at to see what is wrong.
The other option is to install everything from scratch, and put in catalog default dir, but Wordpress wants me to clean out the sql database to reinstall. I'm not sure how to do that.
TIA
Hi, first of all, thanks for this great tool, I really like it and wanted to install this module onto my current zen cart. But Before I proceed, some questions about installation, hope that those who have done this before can help to clear my worries:
1) would like to install wordpress in a different directory of zen cart. Zen Cart was installed with a database (eg database name=shop), my question is, do I install wordpress to the same database of Zen Cart using, ie shop? Or do I have to create another database (with another name and password) for wordpress? I supposed I will have to do another database, otherwise the Shop database could be wiped out during installation? Please confirm if what I'm thinking is right or wrong...
2) I have installed the backup contribution in my Zen cart, hence I use this tool to backup my Zen Cart for safety. I can't use phpMyAdmin cause my hosting provider is not using it (too bad...). If I install wordpress in a different database, is it possible to backup wordpress data using the same tool? Or I should install wordpress in the same database as Zen Cart so that when I click backup, it will backup wordpress as well?
My thought is that this can't be so easy... but hope that it will be easy to do backup for wordpress...
thank you everyone who can give advice on this.. thanks!
Hira,
Any idea why some of us are having problems with the sidebox links not working correctly?
I currently have this installed and working in it's own file, but when I tried to put it in the root folder, the links did not work again.
Your my last hope!
Quote:
I have successfully installed this so far, but have a problem with clicking on links in the sideboxes and other links.
They seem to resolve similar to this:-
main_page=wordpress/?page_id=2
when clicked, you go to the home page.
Hi DrByte & Hira
thanks for your advice. I've succesfully installed the wordpress on zencart module to my zencart, using the same database as zen cart, but install at the different directory as zencart. everything looks nice on my screen, however, when I asked my frens to check on the website, they always encounter network error, or the website is not fully loaded at all. It seems like it is my server problem. but I do worry that the wordpress module will slow down the site as a whole, and to the extent that it will not load at all? this is worrying....
regards,
nataliajoe
Url of your website is??
Will then check for you...
Hi Misty
u can see it at http://www.mummycare.com.my/shop
thanks!
Visited site...
1. WordPress integration can make site load slightly
slower, especially when wp sql is integrated into zencart sql.
2. Could be webhosting server.
3. Your header logo image is over 55k in size..should only
be less than 20k max.
4. You also have flash image, on home page, half
way down.. this is also loading slowly..
5. Javascript nav bar
not helping loading times..
HTH
Hi All,
I still haven't figured out this Wordpress thing. I now have wordpress and zen cart in the same directory. The only thing is I do not have a clue where to put my wordpress index page or how to point to it from the wordpress admin. I've been at this for week's now and have tried so many different things and can't seem to get it right. If someone can point me in the right direction that would be great. I just need to know what path to point to or create if I have to for wordpress. Thanks guys! :smile:
Did not receive message re network error when visiting,Quote:
will those reasons below slowing the website down to the extent that user see "network error" message at their end?
but reasons i have quoted will slow down site...
Hi everybody!
I've successfully installed WOZ on localhost last night and I love it!
Since my website will be multilingual (French and English). I tried different language switch plugins but I really don't like how they behave so I'll be using 2 Wordpress installations.
I am now wondering how I could connect those two blogs on my multilingual cart. I am not a programmer but I came with the idea to replace the value of ABSPATH found in wordpress-config.php with a constant like BLOG_PATH and add a define in my language file so that when a user switch languages in Zen-Cart, the blog would update accordingly.
I tried using this new constant define in my main language file as well as in the provided language file in the mod with no success.
I'm pretty sure I'm close to a solution but can't get it to work that way. Anyone could provide me with tips? I surely must not be the only one who could benefit from such a tweak in the mod!
Thanks all!
Hi,
Unfortunately I'm still trying to get this to work. I put the path in wordpress-config to page 4 of Zen Cart, but nothing. I'm having major issues of trying to figure out how to get wordpress to show and where the paths should be etc. Please help!
Not enough info..i.e.
url of your site?
which directory/folder did you install wordpress?
which directory folder did you install wordpress mod?
did you use seperate database/different database to zencart?
Without all info above, not possible to helpQuote:
path in wordpress-config to page 4 of Zen Cart
Hi sorry my url is www.beautyxpress.com.au/store
I installed wordpress in my zen cart directory i.e. store
I installed the mod into all of the folders it told me to and my database is in my zencart database.
It seems that everyone else is pass this step but I can't seem to get it. I've put a lot of other mods on my site without any hassles but this one I'm really struggling with.
I hope that is enough information, if you need anymore just give me a yell. Thanks.
If you have installed correctly, as per your
last post, then the following url would work correctly.
i.e.
http://beautyxpress.com.au/store/wp-admin/
it does not..
In wordpress admin, under options,
word press addresses would be
[WordPress admin URL] › Options › General
[Blog address (URL)] change to [Zen-Cart URL].
i.e.
http://beautyxpress.com.au/store
Wordpress config file should also be checked
regarding correct paths...
I can't figure out what file this code is coming from at the bottom of the page:
<div id="footer">
<a href="<A href="http://www.s-page.net/products/62.html">WordPress">http://www.s-page.net/products/62.html">WordPress On ZenCart</a>©<a href="<A href="http://www.s-page.net/">S-page</a">http://www.s-page.net/">S-page</a>
</div>
I need to change or remove it, it's messing up my layout, as you can see here: http://tehome.net/shop/index.php?main_page=wordpress
I want to switch to a different div for the blog sideboxes. Right now, it is using the .leftBoxContainer. I have searched and searched and can't figure out which file houses the code which tells the blog sideboxes what div to use. help?:frusty:
I want to add a link to my wp sidebar or above wp archives in the sidebox that directs people back to shopping. How can I add a link at the top of the wordpress sidebox?
If I have a blog installed in a separate folder and has its own address (blog.mysite.com) and custom theme, I can not use this mod rite?
Sorry if these seems like a stupid question but i am a bit lost, do i have to create a new database for the wordpress installation?
Okay, so I have wordpress working on my website, but when someone tries to leave a comment, it says they have to login. When they login and go back to leave a comment, the act of returning to the blog logs them out again. Help!
Hey guys,
I've uninstalled and reinstalled the wordpress mod once again and I'm still getting the same error...
file not found http://www.beautyxpress.com.au/store.../wp-config.php
However when I look in that file, wp-config.php is there. What do I keep doing wrong? I'm sure I've done everything the instructions told me. I installed wordpress in the same directory as my store, I put all the sql databases in my zen cart database and it's still not working. Please please please help, I'm at my wits end.
I have installed this module on my zencart 1.3.7 with wordpress 2.2. I have two websites (they are on my server, not published yet). One of them works perfectly, the other one keeps giving me problems and can't figure why.
When I get to my [ZenCart Path]/index.php?main_page=wordpress everything is fine. When I clicked on a wordpress category, I get all this html code at the top of the page. It begins as such: Uncategorized"/> Product Category One, Product Category Two, Product Category Three, etc... ">
What could I do to fix this?
Thanks
Hi Misty, thanks for your reply. My wp-config.php is located in my extra_configures folder, and that's what I can't understand at all. Everything looks as though it's right and it's just not working. There must be something that I'm missing. Is someone able to give me an example as to what they have in their wordpress-config.php for the ABSPATH? Or perhaps and example of what the blog url should look like in the wordpress admin? Thanks.
You quoted earlier that error message received is
http://www.beautyxpress.com.au/store.../wp-config.php
which suggests your config is incorrect..
posting my own config file will not help you as my wordpress install may be different to your own
Misty,
Obviously you know a lot about wordpress on zencart. I'm running into a problem that is described above. On top of my page after I click on (for example) the uncategorized category, I get this html at the top of my page.
Uncategorized "/> Category keywords here... (all my categories get displayed here) ">
Then the rest of the page looks normal, any help will be really appreciated.
thanks
I'm just headed off to install and have a few questions...
1) I see that WP says that 2.3 is now their current stable version, but all discussion here has been on a 2.2.x base. Should I be concerned about using the current stable version?
2) I'm installing WP into its own directory in root, and I currently have ZC installed in a subdirectory of root while I do my debug on the store. When I'm done, I was planning to change its location to root via the ZC instructions for changing the install directory. I was planning to have them share a database. Are there any concerns from the WP/WOZ perspective to be aware of if I proceed with this plan vs. waiting until ZC is in its final location before installing WOZ?
I've got other usage questions, but they can wait until I've got the installation working first! :blush:
TIA Karen
1. Version of wordpress should not make any difference.
2. Having wordpress in root directory and zencart in sub directory may
cause probs..
Personally, would have zencart installed/working/tested
in permanent home/url before attempting
wordpress/woz install..
Always backup zencart and its database before installing anything
extra.
HTH
Thanks, Misty. I have another (probably dumb!) question...
Is there any preference to whether I use the same userid for the shared database access or if I give a unique userid to WP?
Also, while I'm thinking about it...
Are there any benefits to having them NOT share the same database (if in fact the integration will work that way)? I'm thinking things like future upgradability, WP mods, speed/performance to end user?
Thanks,
Karen
Fred9V - Sorry cannot help with your problem..for security
reasons tho', I would link to your wordpress installs via zencart header,
as you have suggested..
busyMom..use whichever method suits your requirements..
have found that wordpress installed in same database as
zencart, can slow down performance of store, if you have
lots of products and numerous wordpress entries.
Hey Misty, thanks for letting me know!
Cheers!
Thanks Misty for your reply. My website has not been published yet. I'm building it on my server, once everything is the way it should be I will publish it. I'm attaching a picture that will describe my problem. I'm also including the source code below.
When I access "[zencart path]/index.php?main_page=wordpress" everything works fine. When I click on a category, that's when I get the wrong code. The wordpress installation is located at "[zencart path]/blog/" folder.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Self Defense, Home Protection, Safety and Surveillance <img alt="" src="includes/templates/theme005/images/a3.gif" width="4px" height="7px"/> Uncategorized : Zen Cart!, The Art of E-commerce</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="Stun Guns Home Protection Surveillance Child Safety Knives Tasers Mace™ Defense Sprays Personal Alarms Animal Repellers Martial Arts Weapons Miscellaneous Fighting DVD's Home & Work Safety Diversion Safes Metal Detectors Pepper Sprays ecommerce, open source, shop, online shopping Self Defense, Home Protection, Safety and Surveillance <img alt="" src="includes/templates/theme005/images/a3.gif" width="4px" height="7px"/> Uncategorized" />
<meta name="description" content="Zen Cart! : Self Defense, Home Protection, Safety and Surveillance <img alt="" src="includes/templates/theme005/images/a3.gif" width="4px" height="7px"/> Uncategorized - Stun Guns Home Protection Surveillance Child Safety Knives Tasers Mace™ Defense Sprays Personal Alarms Animal Repellers Martial Arts Weapons Miscellaneous Fighting DVD's Home & Work Safety Diversion Safes Metal Detectors Pepper Sprays ecommerce, open source, shop, online shopping" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="The Zen Cart™ Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" />
<base href="http://localhost/bigjoedefense/" />
Thanks so much for your help!
Looks like you did not assign blog post to a category
BUT
sometimes using localhost, on server/home computer,Quote:
My website has not been published yet. I'm building it on my server,
correct/desired results are not achieved, and without an active domain
for your zencart, sorry..cannot help further at this stage..
Thanks for trying.
Hello,
I have read through this entire thread and all the included instructions and the official wordpress instructions without luck.
I am attempting to install the wordpress addon to a fresh, local 1.3.7 Zen Cart installation (using EasyPHP on my computer and my Zen Cart installation works excellent)
Anyways, here's what I have tried and failed with...
1. Uploaded(minus index.php) WordPress 2.2 into the Zen Cart root dir.
2. created seperate database in phpmyadmin
3. edited /ROOT/wp-config-sample.php to reflect database info and changed it to wp-config.php and left it in root folder
3. Uploaded ZC_ROOT into Zen Cart root dir
4. Commented out "return" in wp-include/template-loader.php
5. (includes/extra_configures/wordpress-config.txt to wordpress-config.php) this didn't need to be done.
6. ran wp-admin/install.php in browser - the installation doesn't seem to work at all -
the database I created remains empty and
I keep getting the following page after running the install...
click here for a pic of the error page
here are the details of my wp-config.php files for both the root folder and the includes/extra_configures folder
the root folder...
the extra configures folder...Code:<?php
// ** MySQL settings ** //
define('DB_NAME', 'mafiasam_wordpress'); // The name of the database
define('DB_USER', 'mafiasam'); // Your MySQL username
define('DB_PASSWORD', '*******'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
// 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-content/languages.
// For example, install de.mo to wp-content/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');
?>
and I guess that should be enough information to hang me, lol.Code:<?php
//
// wordpress on zencart by http://www.s-page.net/
//
define ('ABSPATH','/');
$woz_install=0;
if (file_exists(ABSPATH.'wp-config.php')) {
$woz_install=1;
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.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('./wp-includes/template-loader.php');
require_once(ABSPATH . WPINC . '/template-loader.php');
exit();
}
}
?>
Does anyone have any advice?
thanks in advance
mafiasam
I have installed wordpress on zencart and it is working properly with the exception of the fact that whenever I type my website URL http://stunmasters.net, it gets redirected to the wordpress page http://www.stunmasters.net/?main_page=wordpress.
How can I stop that from happening.
Thanks in advance for any help.
Obviously, you have a redirect in place somewhere. Check in your .htaccess file or check in your control panel for a redirect script somewhere.
Well, I figured it out with the help of my hosting company opensourcehost who are awesome. I just had them install wordpress in a separate folder in the zen cart installation because i just couldn't get wordpress to install.
then i followed the readme.html instructions included in the WordPress on Zencart contribution.
so you definitely can install this in a separate folder. mine was in a folder named blog in my zen cart folder
like this...
http://i101.photobucket.com/albums/m...owg/ftp_a2.gif
the entire trick lies in the editing of the zencart folder/includes/extra_configures/wordpress-config.php file.
mine ended up being...
so good luck, i hope this helps someone...Code:define('ABSPATH', '/home/myservername/public_html/blog/');
I finally got this to work locally, using XAMPP. As stated above, editing wordpress-config.php is the key.
I installed XAMPP in C:\xampp, and placed ZenCart and WordPress into separate directories, like so: (see attachment for picture)
C:\xampp\htdocs\blog
C:\xampp\htdocs\catalog
I followed the instructions in the readme, keeping the installation as default as possible, and everything went smoothly. However, I kept getting: file not found: /wp-config-php. After nearly pulling my hair out, I discovered the correct configuration for wordpress-config.php:
define ('ABSPATH','/xampp/htdocs/blog/');
It appears to be working now. I'm running XAMPP 1.6.3a, Zen Cart 1.3.6, and WordPress 2.2.3, with the Acadame template by IChoze.
I'm going to attempt upgrading to ZC 1.3.7... If I have any problems I might post about them.
Hope this helps someone!
Hi Misty:
I hope that you can help me with this. In reference to my post #272, and the suggested solution #273. Do you know a way to fix this? I tried looking for a redirect onn the .htaccess file or on my cPanel. I can not find any.
To make a long story short, if you try going to my site http://stunmasters.net, you get automatically redirected to the blog page.
Thanks for your help.
PS. In reference to my post #268, the problem was that I was using an image as a breadcrumb divider. The html for that was added to the title and therefore the top of my page was totally messed up.
Ok I've been trying to get this set up for a while doing a lot of :frusty:. I have wordpress set up in a sub directory and zen in the root. I can access wordpress to write a post etc. But can't get them to show on my site. I'm getting this error:
file not found wp-config.php when I click on the wp sidebars. Also my post don't show in the sidebars either...
My site is www.homestead-acres.com
Any help is much appreciated!
Also I would like to have the blog accesable from the drop menu. Any advice on how to add it there??
Thanks!
Hi everybody,
I have just installed a fresh wp on zc and it works fine, but opens wp in a separate window (not as a zc page). What is wrong with the templates? I managed to install it a long time ago on another site, but just cannot remember how I fixed this.
Please, advise, it should be a quick fix with the tempolates somewhere.
Thanks
A
Thanks I kept trying and finally got it working. :clap: Just need a bit of tinkering to get the look right now...
But I would still like to have the blog assessable from the drop down menu and not the side bar. Can anyone point me in the right direction to set that up?
Thanks,
Suggest you search/post request in support thread for css dropdown header mod..
i.e how to add external/extra links at
http://www.zen-cart.com/forum/showthread.php?t=58629
Okay I have been searching for two days for an answer for this and couldn't get any help on the wordpress forums either.
I believe this has something to do with the fact that wordpress is integrated into zen cart.
If you take a look at my main page for my blog
Old West Gambler's Press
you will see that it opens on the archive for October 8th, 2007 even though I have added more posts since the 8th. Also when you click on the archives for October in the sidebar you still get only the single post.
I have looked at the archive.php in the theme editor
here is that code...
Is this normal for a Wordpress on Zen Cart installation?Code:<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php is_tag(); ?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Blog Archives</h2>
<?php } ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<small><?php the_time('l, F jS, Y') ?></small>
<div class="entry">
<?php the_content() ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Can anyone give me any suggestions?
thanks for your help
mafiasam..I have installed wordpress zencart mod(different versions) several times, on
different zencart installs/domains, and have never experienced problem you describe in your latest post..however, I see from your post 274, that you installed wordpress in it's own folder(blog), and not into zencart install..to date, this method has never worked for me..have always had to resort to installing directly into zencart..suggest you try
this method.
I wish I could do that but I am determined to make this work. This is obviously a problem with the presentation of data and not something that is going to be a deal killer.
I need to find out what files exactly are being called. do you have any suggestions?
I may have tracked it down to the wp_get_archives tag located in the zen cart file /includes/templates/template_default/sideboxes/tpl_wp_archives.php
here is the code for that file...
Code:<?php $content = "";
if($woz_install){
//start wp output
ob_start();
wp_get_archives('type=monthly');
$out = ob_get_clean();
//end wp output
$content .= '<ul>'.$out.'</ul>';
}
?>
Suggest you contact member hira, dev of this mod, either via personal message here, or via his website..
Thanks Misty.
Now it is getting really interesting.
I changed a couple things and now it is giving me the posts I want but it is not staying in zen cart when it does it.
I changed the WordPress address (URL): to http://blog.oldwestgames.com
and the Blog address (URL): to http://oldwestgames.com/blog
I also added a line to .htaccess -This was explained by the developer Hira in this post in his blog for using wordpress with zencart with seo urls.Code:RewriteRule ^blog/ index\.php?main_page=wordpress&%{QUERY_STRING} [L]
I'll contact Hira.
Thanks again Misty.
Does ANYONE have wordpress installed in the zen cart directory and use Ultimate SEO URLs as well?
Hi
Firstly thanks for sharing this mod and for the support...
I think I've got it up and running correctly and am now at the tinkering around stage.
I have the blog set up to show threads on the home page of my site. My URL is http://africanartandmasks.com/index.php.
My problem is that the blog post are not 'obeying' the constraints of the div they are contained within.
I have looked through style.css and changed a few values but have not resolved the problem.
Any help would be great.
Thanks.
Sorry for the bump but I have still not resolved this...
http://africanartandmasks.com/
Firstly, I cannot see where to get rid of the divider between posts. I am also getting confused because I cannot work out which stylesheet is affecting the blog on the home page since it appears different to the blog on its own page.
http://africanartandmasks.com/?.php
I still cannot get the blog on the home page to fit inside the div. If I narrow the settings for width for the div #page - it narrows on the blogs page but not on my home page.
Any ideas?
Thanks.
Did you install all the templates included in latest
wordpress mod zip file?
Hi Misty
Sorry for no reply until now (I've had malaria but I'm ok now...)
Well I thought I had put all the files (I assume you are referring to WP_ROOT files) but I've uploaded again just in case.
I'll have a look again today and see how I get on.
Thanks,
Jim.
Ok, well I have kind of got it sorted now.
The styling for the blog threads that are shown on the home page...
http://africanartandmasks.com/
is performed in includes/templates/custom_template/css/stylesheet.css
and to get rid of the divider (although this will impact across the whole, site so suggestions are still welcome!) remove border-bottom: 1px solid #9a9a9a; from
Code:HR {
height: 1px;
margin-top: 0.5em;
border: none;
border-bottom: 1px solid #9a9a9a;
}
In wordpress mod for zencart, there is stylesheet_woz.css included,Quote:
is performed in includes/templates/custom_template/css/stylesheet.css
which should be added to your zencart current template's css folder.
Hi
Where does one control the amount of each blog thread that will appear as a summary?
What I really mean is that after, for example, using
to get the blog to appear on the web site's homepage (or where ever) how do you then get this to be a summary or the first few lines of each thread, rather than the entire thread?Code:<?php
require('wp-blog-header.php');
?><?php
$posts = get_posts('numberposts=3'); // change to whatever number of posts to show
foreach($posts as $post) :
setup_postdata($post);
?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_date(); ?>
<?php the_content(); ?><hr />
<?php endforeach; ?>
Thanks.
http://codex.wordpress.org/The_Loop_in_Action
i.e.
Quote:
If you include the Quicktag button called more, and shown as <!--more-->, in the body of your post, only the portion above that line will be displayed to viewers. So, if you only want your front page to show the first sentence or two of every post, simply insert <!--more--> after the first line into every post you make.
Thank you for that misty... (I'd gone through every possible nook and crany in admin and had become not a little confused as to why I could not find it!)
hi there seem to be having a problem having with this install everything seems to look like it should work, but i can't seem to find the wordpress admin section.
had zencart 1.3.7 working fine
1. installed wordpress in the zencart directory /gorillagear.ca/store (but separate databases)
2. was able to play with it and go to the admin section in www.gorillagear.ca/blog/wp-admin/ then i changed the config file
3. added the root files to both zencart and wordpress
4. modified that one file in zencart to integrate the 2 programs and that is it
i don't know how to find the admin section so i can start working on this any thing i missed
got it all working now http://gorillagear.ca/index.php?main_page=wordpress this is awesome
im going round and round with this one- ive done the install, using the lastet version of ZC and WP- BlogSidebar is showing up on my sideboxes in Apple Zen, however the link is a dead end. i keep getting this message.
file not found /var/www/vhost/example.com/wp-config.php
What is the hook here?
Ive gone into the wp-config file and cant seem to figure this one out.
If anyone can help i would greatly app at this time, banging my head against the wall:frusty: thanks guys..