|
Hi,
I also try hard to see it working and suceeded with some tricks! Despite those problems of integration, I have to tell this is a great job from LazzyMonks! Many thanks!
For my part, I follow the configuration steps also. And as many of us, I get a blank screen on the home page of my demo site.
Here are the steps to see it working (on a demo site), hope this could help:
Here is my magento configuration:
- For me the magento root dir is: http://www.example.com/magento
- My wordpress directory is in my magento directory (ie.: http://www.example.com/magento/wordpress)
- All configuration steps were done as LazzyMonks wrote. (i.e I did all steps before finding the solution so this is the starting point from my explanation )
So:
1. Into the index.php in the root of your magento installation:
- Find
define('WP_USE_THEMES', true); require('wordpress/wp-blog-header.php');
Replace by:
require('wordpress/wp-blog-header.php');
(I got a bug with the previous configuration so that I can’t connect anymore to my admin?)
2. Create in your magento directory a new directory named: blog
3. Copy then paste the index.php from your magento directory to the blog directory
4. Modify the index.php file in the blog directory like this:
- Find:
$mageFilename = 'app/Mage.php';
- Replace by:
$mageFilename = '../app/Mage.php';
- Find:
echo "app/Mage.php not found";
- Replace by:
echo "../app/Mage.php not found";
- Find:
require_once $mageFilename; require('wordpress/wp-blog-header.php');
- Replace by:
require_once $mageFilename; define('WP_USE_THEMES', true); require('../wordpress/wp-blog-header.php');
5. Into the Magento Admin, Go to CMS->Manage Pages->Home Page. In the left menu click on Custom Design. If you have already some XHTML code uncommented:
- Find:
<reference name="content">
after add:
<block type="core/template" name="blog" template="blog/blog.phtml"/>
Or If you didn’t uncomment the XHTML code then, at the end, add:
<reference name="content"> <block type="core/template" name="blog" template="blog/blog.phtml"/> </reference>
Save the configuration and that’s it, you can go to your home page and see all your wordpress posts!!! Not very strict but this can help testing the extension!
Hope this is enough clear!
Now trying to put the code in another page than home page and fix footer link too
|