Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
Svault
opps... didn't read your 2nd post. I might try to use a Wordpress SEO mod to add in the word "wordpress" but I highly doubt it would work. I'm now trying to figure out how to mod the WOZ files. I can't seem to find anything inside WOZ that calls the URL from Wordpress and mod it from there.
I know there's another user who is using WP 2.7 and ZC and the ZC SSU who has success but the person doesn't know how it was done. They were fooling around with the programs and it just happened to work.
I don't see why it wouldn't.. In theory it should work. WOZ is simplyWordPress within a Zen Cart wrapper so to speak.. (Hence why the URLS -- except ONE -- are URLs that are generated by WordPress) So a WordPress SEO might do the trick..
A hint on how to accomplish this via WOZ might be found in Kiddo's fix for the WOZ + WordPress v2.7.X main links. Her fix might provide you with a hint on how to accomplish what you are trying to achieve within WOZ.
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
DivaVocals
I don't see why it wouldn't.. In theory it should work. WOZ is simplyWordPress within a Zen Cart wrapper so to speak.. (Hence why the URLS -- except ONE -- are URLs that are generated by WordPress) So a WordPress SEO might do the trick..
A hint on how to accomplish this via WOZ might be found in Kiddo's fix for the WOZ + WordPress v2.7.X main links. Her fix might provide you with a hint on how to accomplish what you are trying to achieve within WOZ.
Hi there,
thanks again for your advice. I did try the Kiddo's fix for WP 2.7 yesterday when I was testing out various options but it was a no-go. After reading your suggestion, I went back and tried the fix and with a little tweaking, I got it to work. Not a perfect SEO type of URL but at least my ZC SEO program works and does not interfere with WP now.
Thanks again for your advice and help!!
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
Svault
Hi there,
thanks again for your advice. I did try the Kiddo's fix for WP 2.7 yesterday when I was testing out various options but it was a no-go. After reading your suggestion, I went back and tried the fix and with a little tweaking, I got it to work. Not a perfect SEO type of URL but at least my ZC SEO program works and does not interfere with WP now.
Thanks again for your advice and help!!
No no no.. You don't get away that easily!!!:laugh: Time to SHARE what you did.. Especially since you were the second person to ask about this very thing in the last week.. Gotta give back to those who held your hand while you sweated out a solution!:laugh::laugh: (Okay the last part is OVER the top..:laugh: but you get my point!)
I can't program, but I can troubleshoot!:laugh: Glad you found an answer that works though!
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
misty
Show wordpress posts on main page of zencart..
Post following code into define_main_page.php
Code:
<?php
require('./wp-blog-header.php');
?><?php
$posts = get_posts('numberposts=2'); // 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; ?>
Alter 2, marked red, to number of posts to show..
:smile:
i have tried this and i get an error......
ok well i have no idea what just happened i just applyed the code to the define_mainpage and now it works??:shocking:??? now is there a way to make the main wp section the home page? or would i just point my domain name to http://sirryche.com/pawnshop/index.p...page=wordpress. i would like to have the wp as the main home page. an not just a recap of the current blogs. thnaks
Re: Wordpress On Zencart / Released
waa just found out that when i click on a link on the sidebox it will go to that link but then the sidebox will be empty and at the bottom of that new page would have the links displaying . i looked around for wp sidebox problems so if somebody could point the way i be a very happy puppy :)
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
DivaVocals
No no no.. You don't get away that easily!!!:laugh: Time to SHARE what you did.. Especially since you were the second person to ask about this very thing in the last week.. Gotta give back to those who held your hand while you sweated out a solution!:laugh::laugh: (Okay the last part is OVER the top..:laugh: but you get my point!)
I can't program, but I can troubleshoot!:laugh: Glad you found an answer that works though!
Look inside wordpress-config.php for the following code:
Code:
$i=strlen(DIR_WS_CATALOG);
$req=substr($_SERVER['REQUEST_URI'],$i,1);
if($req=='?'){
$_GET['main_page']='wordpress';
}
Then insert:
Code:
$i=strlen(DIR_WS_CATALOG);
$req=substr($_SERVER['REQUEST_URI'],$i,1);
if(($req=='?') && ($_GET['main_page']=='wordpress')) {
$_SERVER['REQUEST_URI'] = str_replace("?","wordpress?",$_SERVER['REQUEST_URI']);
}
I don't think the code I came up with is written properly but it works for me. Now my WP in ZC pages (eg: cat, page_id, p) do not go to the 404 Page Not Found. If anyone knows how to write the code properly, please let me know. The last sentence of the code looks wrong but it works for now.
The above code is to solve my issue with regards to SSU 3.3.6, ZC 1.38a, WOZ.
Re: Wordpress On Zencart / Released
Hello all,
I've gotten Wordpress working with a pretty-heavily-customized 1.3.7 install of Zen Cart, and it's working great except for one problem.
When I add the "Recent Posts" widget to the sidebar, it suddenly can't find a number of the posts. Here's what I mean.
* I have the "Categories" widget enabled (not in dropdown mode)
* I click, say, the "Zen Cart" category
* It loads just fine
Then I enable "Recent Posts" and:
* I click the "Zen Cart" category again
* It says "Sorry, but there aren't any posts in the Zen Cart category yet."
Not to mention that only a few (one, right now) links in the Recent Posts area work. The rest go to the Wordpress 404 page, still loading in my ZC template of course.
The Post Count in parentheses next to the category name says that there are 3 posts, which is correct, whether I have Recent Posts enabled or not.
Has anyone encountered anything like this before? I'm fine with PHP, but this is for a client whose site we're migrating - everything needs to stay the same, thus the need to have Recent Posts enabled in the first place - and we can't afford to dig through the Wordpress code for hours on end. Any help would be very greatly appreciated.
Re: Wordpress On Zencart / Released
The only fix I have found for this is to include the code found earlier in this thread on the define_main_page.php file
but then the posts appear in the center content area
There is something wrong with the wordpress sidebox code
whats up with the original dev of this plugin? Is it abandoned?
Re: Wordpress On Zencart / Released
I always recommend to people to read through the entire support thread for the add-ons. Not to be snarky, but becasue it really is incredibly helpful. Teh support threads gives you a sense of the common issues (and sometimes solutions to those issues), and a general sense of what you can expect to encounter when installing an add-on.. The problem you speak of sounds a LOT like the problem I reported..
The answer is that there is no solution, but a workaround. Please go back to around page 63-65.. Somewhere in there is my saga, and workaround solution. Basically I decided to fore go the primary function of WOZ (embedding WordPress inside Zen Cart) and opted instead to run WordPress as a standalone blog and using the widgets function in WordPress create links back to my Zen Cart store, and on the Zen Cart side I used only the WOZ sideboxes. This requires some slight adjustments in how you configure WOZ, but it solved my immediate issue and still tied WordPress to Zen in a nice way (IMO at least)
HTH
Quote:
Originally Posted by
tfortan
Hello all,
I've gotten Wordpress working with a pretty-heavily-customized 1.3.7 install of Zen Cart, and it's working great except for one problem.
When I add the "Recent Posts" widget to the sidebar, it suddenly can't find a number of the posts. Here's what I mean.
* I have the "Categories" widget enabled (not in dropdown mode)
* I click, say, the "Zen Cart" category
* It loads just fine
Then I enable "Recent Posts" and:
* I click the "Zen Cart" category again
* It says "Sorry, but there aren't any posts in the Zen Cart category yet."
Not to mention that only a few (one, right now) links in the Recent Posts area work. The rest go to the Wordpress 404 page, still loading in my ZC template of course.
The Post Count in parentheses next to the category name says that there are 3 posts, which is correct, whether I have Recent Posts enabled or not.
Has anyone encountered anything like this before? I'm fine with PHP, but this is for a client whose site we're migrating - everything needs to stay the same, thus the need to have Recent Posts enabled in the first place - and we can't afford to dig through the Wordpress code for hours on end. Any help would be very greatly appreciated.
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
loosefast
whats up with the original dev of this plugin? Is it abandoned?
Yep.. it would appear that way.. Such is the nature of open source..:blush: