-
Numinix Blog Embedding Issues/Questions
Hello,
followed all instructions for Numinix Integrating WordPress into Zen Cart 1.3.8x to 1.3.9x. Everything is ok except appearamce of blog in zencart and that I cannot go to the administration since when I enter the admin url I get stack on the blog homepage.
http://www.naturalfinesse.com/blog
The categories on the left are shifted towards the left and the header search part is somewhat displaced. Also I cannot go to my dashboard.
Any clues?
Thanks
-
Re: Numinix Blog Embedding Solution Issues/Questions
Glad to see you took my suggestion to create a new thread!! :clap:
I can't provide any specific help, but the issue you are having has everything to do with your blog stylesheet being applied to your Zen Cart store. You need to figure out which styles in the blogs stylesheet are the cause.
That said IMHO, the EASIEST way to resolve this is to make the blogs stylesheet as generic as possible. You can start doing this by removing any styles that are already managed by the Zen Cart stylesheet. (things like body, li, ul, p, etc) What should be left in the blog stylesheet are only those styles which are specific to the blog. (sidebar styles, etc)
Does this makes sense???
-
Re: Numinix Blog Embedding Solution Issues/Questions
Let me modify what I said in part.. (see red italicized text below)
Quote:
Originally Posted by
DivaVocals
Glad to see you took my suggestion to create a new thread!! :clap:
I can't provide any specific help, but the issue you are having has everything to do with your blog stylesheet being applied to your Zen Cart store
when you navigate to the embedded blog page. You need to figure out which styles in the
blog's stylesheet are the cause.
That said IMHO, the EASIEST way to resolve this is to create a generic blog template. This way the blog's stylesheet will have MINIMAL impact on Zen Cart. The WordPress Template Generator is a great tool for doing this work for you.. Using this tool you can create a very PLAIN WordPress template. Once you have your plain/generic template, you should the edit the blog stylesheet and remove any styles that are already managed by the Zen Cart stylesheet. (things like body, li, ul, p, etc) What should be left in the blog stylesheet are only those styles which are specific to the blog elements. (sidebar styles, etc).
All shared elements will use the styles applied from the Zen Cart stylesheet.
Does this makes sense???
-
Re: Numinix Blog Embedding Solution Issues/Questions
Quote:
Originally Posted by
DivaVocals
Let me modify what I said in part.. (see red italicized text below)
I do understand what you are saying but unfortunately have no clue with css so cant do much on my own. Thanks :blink:
-
Re: Numinix Blog Embedding Solution Issues/Questions
Quote:
Originally Posted by
Yiannis
I do understand what you are saying but unfortunately have no clue with css so cant do much on my own. Thanks :blink:
There is a fair amount of work that needs to be done so that the blog stylesheet does not interfere with the store and vice versa. If you are not familiar enough with CSS to make these changes on your own you may want to consider hiring someone to help you with this work. Otherwise, if you want to be a DIYer then you will need to roll up your sleeves and try giving what I suggested a whirl :smile:..
-
Re: Numinix Blog Embedding Issues/Questions
How do I desable Magic Seo URLs from the whole wordpress blog?
-
Re: Numinix Blog Embedding Issues/Questions
I disabled magic seo urls and still i cannot access my wordpress admin...
any clues?
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
Yiannis
I disabled magic seo urls and still i cannot access my wordpress admin...
any clues?
Magic SEO is a Zen Cart mod, and would/should have NO effect on your ability to access the blog. If you are unable to access the WP admin, it is likely that you missed the step in the Numinix setup for configuring the blog settings. (It's the step in which requires you to log into the WP admin and enter in the URLS for the blog and the home page.) If you configure this incorrectly this could cause issues.. Re-review your install..
-
Re: Numinix Blog Embedding Issues/Questions
Does anybody know of an integrated login solution that will work with the Numinix solution? I would like to install a WP blog on an existing ZC site, but would prefer current users to not have to log in twice. Barring that, I would prefer that accounts are automatically created with the same credentials.
Thanks in advance.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
applynx
Does anybody know of an integrated login solution that will work with the Numinix solution? I would like to install a WP blog on an existing ZC site, but would prefer current users to not have to log in twice. Barring that, I would prefer that accounts are automatically created with the same credentials.
Thanks in advance.
There is no Zen Cart plugin which provides this kind of functionality. There is an old WP plugin, but it relies on WOZ to work.. I'm sure it could be adapted to work with the Numinix solution, but I'm afraid you would have to inquire over on the WP forums about this if you need more details. (don't want this thread shut down discussing WP specific support issues..)
-
Re: Numinix Blog Embedding Issues/Questions
To those of you looking for a sidebox solution that works with Numinix, install the blank sideboxes mod and add the wordpress loop to the end of includes/modules/sideboxes/blank_sidebox.php (alternatively: includes/modules/sideboxes/MY_TEMPLATE/blank_sidebox.php). The code will look like this:
Code:
<?php
$show_blank_sidebox = true;
if ($show_blank_sidebox == true) {
require($template->get_template_dir('tpl_blank_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_blank_sidebox.php');
$title = BOX_HEADING_BLANK_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
<?php define('WP_USE_THEMES', false);
require('/MY_ABSOLUTE_PATH/blog/wp-load.php');
query_posts('showposts=5');
?>
<?php while (have_posts()): the_post(); ?>
<a href="<?php the_permalink(); ?>" style=""><?php the_title(); ?></a><br>
<?php endwhile; ?>
I left an empty style tag in there, because I found that I needed to do some selective styling to get this to blend with my other sideboxes. I am sure that there are more elegant solutions, but this one works.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
joeyrocket
To those of you looking for a sidebox solution that works with Numinix, install the
blank sideboxes mod and add the wordpress loop to the end of includes/modules/sideboxes/blank_sidebox.php (alternatively: includes/modules/sideboxes/
MY_TEMPLATE/blank_sidebox.php). The code will look like this:
Code:
<?php
$show_blank_sidebox = true;
if ($show_blank_sidebox == true) {
require($template->get_template_dir('tpl_blank_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_blank_sidebox.php');
$title = BOX_HEADING_BLANK_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
<?php define('WP_USE_THEMES', false);
require('/MY_ABSOLUTE_PATH/blog/wp-load.php');
query_posts('showposts=5');
?>
<?php while (have_posts()): the_post(); ?>
<a href="<?php the_permalink(); ?>" style=""><?php the_title(); ?></a><br>
<?php endwhile; ?>
I left an empty style tag in there, because I found that I needed to do some selective styling to get this to blend with my other sideboxes. I am sure that there are more elegant solutions, but this one works.
I'll be saving his for future reference :cool:
thanks!
-
Re: Numinix Blog Embedding Issues/Questions
Once I had the Wordpress installation embedded (and the default 2011 template seems to work best), I removed all the content from style.css (leaving the empty file) and removed all mentions of body in blog.css, letting the Zencart stylesheet handle the body rules. Worked for me.
-
Re: Numinix Blog Embedding Issues/Questions
I am not sure if this is for me. I am looking for a solution to have the flexibility of the wordpress template look and feel and the power of zencart for the ecommerce part. If I understand right, this mod does the opposite? Adding blog power into a zencart page?
Is there a solution the other way around? Wordpress site with a shopping portion?
I looked around and have found DivaVocals very active looking for something like this in Joomla and WordPress forums.
@DivaVocals how do you now solve this?
-
Re: Numinix Blog Embedding Issues/Questions
There are several 'carts' that are Wordpress plugins. I looked at a few and wasn't impressed.
-
Re: Numinix Blog Embedding Issues/Questions
That is exactly my beef. And I know Zen Cart pretty well but find creating templates and changing looks is some what limited. But that is topic for another day or thread.
-
Re: Numinix Blog Embedding Issues/Questions
Hi i wonder if someone can help me, i have followed all the steps and found it fine and styling is not an issue either, however as i understand the whole install should be embeeded within the ZC header and footers, when i click on a blog page link it takes me to the blog itself outside of the ZC headers and footers, is this something that is supposed to happen or does someone have a suggestion of what is wrong? thanks x
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
mydanilo
I am not sure if this is for me. I am looking for a solution to have the flexibility of the wordpress template look and feel and the power of zencart for the ecommerce part. If I understand right, this mod does the opposite? Adding blog power into a zencart page?
Is there a solution the other way around? Wordpress site with a shopping portion?
I looked around and have found DivaVocals very active looking for something like this in Joomla and WordPress forums.
@DivaVocals how do you now solve this?
I only actively sought after a Joomla solution on the Joomla forums.. Have not had active discussions on the WordPress forums on this..
I suggest taking a look at some of the articles on the web and on the WordPress site which talk about pulling in WordPress content into a non WordPress sites.. I have been experimenting with using these methods to wrap WordPress' look and feel around Zen Cart..
-
Re: Numinix Blog Embedding Issues/Questions
How would I go about using the code above to add widgets? I can get the widgets into the sidebar, but they sit on top of blank_box on the sidebar and I can't style them, even if I wrap them in a new div, and do i need to add anything to the tpl_blank_sidebox?
-
Re: Numinix Blog Embedding Issues/Questions
Hi
Out of curiosity. Has anyone tried using the Numinix Wordpress solution with ZenCart 1.5?
cheers
mark
-
Re: Numinix Blog Embedding Issues/Questions
I have, and it seems to work fine.
-
Re: Numinix Blog Embedding Issues/Questions
Mark,
Yes, we installed the Wordpress mod from Numinix and definitely think it is worth the investment. Have had no glitches so far. There was some miscommunication during the installation (we paid Numinix to do the install, which was a fairly modest cost), but I think we just caught them at a busy time. I would certainly work with Numinix again. Also purchased other mods from them and have used some of their free mods and all have been excellent.
Cheers, Sean
-
Re: Numinix Blog Embedding Issues/Questions
Hi Guys,
I've followed the steps as per Numinix blog post. My blogs homepage is working fine however when posts, categories etc are clicked I get redirected to our stores homepage. This happens only when Permalink Settings in Wordpress are set to anything other than default.
Blog is installed at mystore.com/wpblog/
WordPress Address (URL) in settings set to http://mystore.com/wpblog
Site Address (URL) in settings set to http://beautystore4u.co.uk/blog
/index.php?main_page=blog is rewritten to /blog/ by CEON URI
Could I ask someone to have a look at my blog and give advise -> http://goo.gl/OBO7q
I think the problem is in .htaccess file. Wordpress advises to put the code below in .htaccess but it crashes my site:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
Kind Regards Damian K.
-
Re: Numinix Blog Embedding Issues/Questions
I know that it's sad that I'm replying to my own post but I have to say that I've managed to finally work this out.
I've removed tha rewrite from CEON URI and used the rewrite from NUMINIX post, but I placed it on the top of .htacces file, above CEON URI rules:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
If anyone is struggling with this setup I'm more than happy to help.
Kind Regards
Damian K.
-
Ceon URI Mapping and WP Zencart Integration
zc 1.3.9h
relevant mods installed: Ceon URI Mapping, WP Zencart Integration Package (Numinix)
blog viewable at http://www.adamantbarbell.com/blog/
WP directory is www.adamantbarbell.com/blog-backend/
I'm having trouble with a final piece of the integration of WP into zc. I followed the instructions at the link below.
https://www.numinix.com/blog/2009/09...n-cart-1-3-8a/
The problem is when I click any links on my blog page, whether to view a single post, view by category, view by tag, etc, I get the zc 404 (not found) page.
I added a line to htaccess to tell Ceon URI Mapping to not redirect requests for the /blog-backend directory so I can access the WP admin. Below is my htaccess, edited only to remove a few things totally unrelated to URL rewriting.
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/myadmindir [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite WordPress directory
RewriteCond %{REQUEST_URI} !^/blog-backend/ [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Redirect all requests for all non-canonical domains to same page in www.example.com
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.adamantbarbell\.com$
RewriteRule (.*) http://www.adamantbarbell.com/$1 [R=301,L]
If I add the below line, I lose my WP css formatting. I donj't know why. Perhaps there is a problem with the RewriteRule given that WP is at /blog-admin , the first part of which may be causing a match to /blog ? I can access the WP admin subdirectory in /blog-backend fine. Note that I do have a blank html page at www.adamantbarbell.com/blog-backend because I don't want the blog to be viewable there.
Code:
# wordpress integration
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
-
Re: Ceon URI Mapping and WP Zencart Integration
Quote:
Originally Posted by
fakeDecoy
One of the biggest reasons why module installs fail is that the install instructions are not followed..:blush: That said if you followed Step 4 of the instructions, then adding an index.html is not necessary and probably a BIG part of your issue.. Remove that file.. follow the instructions for adding the correct directive for Ceon URI and let me know if that works..
Quote:
Step 4:
- Open http://www.domain.com/path_to_wordpress/wp-admin/ and go to SETTINGS
- Change WordPress address (URL) to http://www.domain.com/folder_name_of_your_choice (WordPress will be physically installed here)
- Change Blog address (URL) http://www.domain.com/blog
Note: these two paths must not match. If WordPress is located in “/wordpress/”, then the blog will be publicly accessible through an alternate URL (i.e. /blog/). You can name either whatever you like, but the blog must physically exist at the WordPress Address.
The Blog address will be used as a rewrite for the Zen Cart page we will be building later on. If you’d like to use a different name other than /blog/ in the URL, you’ll need to modify the htaccess rewrite provided in the Zen Cart installation instructions below.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
damiankrzyz
I know that it's sad that I'm replying to my own post but I have to say that I've managed to finally work this out.
I've removed tha rewrite from CEON URI and used the rewrite from NUMINIX post, but I placed it on the top of .htacces file, above CEON URI rules:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
If anyone is struggling with this setup I'm more than happy to help.
Kind Regards
Damian K.
This will likely NOT work and could either break Ceon URI or prevent you from accessing your WordPress admin..
Quote:
Originally Posted by
fakeDecoy
I added a line to htaccess to tell Ceon URI Mapping to not redirect requests for the /blog-backend directory so I can access the WP admin. Below is my htaccess, edited only to remove a few things totally unrelated to URL rewriting.
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/myadmindir [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite WordPress directory
RewriteCond %{REQUEST_URI} !^/blog-backend/ [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Redirect all requests for all non-canonical domains to same page in www.example.com
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.adamantbarbell\.com$
RewriteRule (.*) http://www.adamantbarbell.com/$1 [R=301,L]
If I add the below line, I lose my WP css formatting. I donj't know why. Perhaps there is a problem with the RewriteRule given that WP is at /blog-admin , the first part of which may be causing a match to /blog ? I can access the WP admin subdirectory in /blog-backend fine.
Note that I do have a blank html page at www.adamantbarbell.com/blog-backend because I don't want the blog to be viewable there.
Code:
# wordpress integration
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
It's been a while since I used the blog embedding solution. My previously posted advice is WRONG.. (my bad!:blush:)
Quote:
Step 2:
First, you will need to disable access to your current blog by uploading a blank file named index.html to your WordPress root directory. You may also want to rename your index.php file in case your server settings automatically load this file before any html files (this will differ from server to server).
Your issue is your .htaccess file settings.. let's see if this helps..
I posted this a LONG time ago on the Numinix post, but here it is again..
Step 6 of the Numinix instructions reads:
Quote:
In your domain root, open .htaccess and add the following:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /catalog/index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
If you are using Ceon URI you need to use the following directives in your .htaccess file instead:
Code:
# Don’t rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/wordpress.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
Doing this not only excludes the “blog” directory from being re-written, but it also excludes the actual directory where the WordPress files are physically located otherwise you will find yourself unable to access your WordPress admin.
ie: http://www.yoursite.com/wordpress/wp-admin
-
Re: Numinix Blog Embedding Issues/Questions
DivaVocals, thank you for the replies!
So if I understand right I should go by your last post rather than the previous one?
I made the changes in htaccess and now have this:
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/sysop [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
http://www.adamantbarbell.com/blog is now rewritten in my browser as http://www.adamantbarbell.com/blog?%2F=/
And the WP styling has been lost, so the WP stylesheet is apparently now not being imported after the above htaccess change. I view the page source of the above and there is the below line.
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/mistik/css/blog.css" />
blog.css includes the below line
@import url('/blog-backend/wp-content/themes/zencart/style.css');
For troubleshooting, when I tried accessing http://www.adamantbarbell.com/blog-b...cart/style.css in a browser I got a Forbidden error.
As far as step 4 you quoted in your first reply, I already had changed those settings as directed during the process and checked them again. I tried removing the blank index.html file I had created in the WP directory, and putting index.php back, but it doesn't appear to have affected the problem.
I could try the WP process of renaming my WP directory from /blog-backend to /wp if that might be causing some trouble with the rewrite matching?
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
DivaVocals, thank you for the replies!
So if I understand right I should go by your last post rather than the previous one?
I made the changes in htaccess and now have this:
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/sysop [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
http://www.adamantbarbell.com/blog is now rewritten in my browser as
http://www.adamantbarbell.com/blog?%2F=/
And the WP styling has been lost, so the WP stylesheet is apparently now not being imported after the above htaccess change. I view the page source of the above and there is the below line.
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/mistik/css/blog.css" />
blog.css includes the below line
@import url('/blog-backend/wp-content/themes/zencart/style.css');
For troubleshooting, when I tried accessing
http://www.adamantbarbell.com/blog-b...cart/style.css in a browser I got a Forbidden error.
As far as step 4 you quoted in your first reply, I already had changed those settings as directed during the process and checked them again. I tried removing the blank index.html file I had created in the WP directory, and putting index.php back, but it doesn't appear to have affected the problem.
I could try the WP process of renaming my WP directory from /blog-backend to /wp if that might be causing some trouble with the rewrite matching?
I HATE the "throw everything against the wall" method of troubleshooting..:smile: So let's stick to following the Numinix instructions and using the .htaccess changes I posted if you are using Ceon URI.. That import statement you in your stylesheet have needs to be removed as does ANYTHING else you've done which does NOT explicitly follow the Numinix instructions and the .htaccess changes I posted..
That means follow the Numinix instructions and COPY your theme’s style.css file into the includes/templates/mistik/css/blog.css file.
-
Re: Numinix Blog Embedding Issues/Questions
The import statement in the blog.css stylesheet is a result of the Numinix instructions. Numinix links to instructions saying to create a WP child theme and create a new style.css file in that theme's folder with the following content.
/blog-backend/wp-content/themes/zencart/style.css
Code:
/*
Theme Name: Twenty Thirteen Child
Theme URI: http://example.com/twenty-thirteen-child/
Description: Twenty Thirteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentythirteen
Version: 1.0.0
*/
/* =Imports styles from the parent theme
-------------------------------------------------------------- */
@import url('../twentythirteen/style.css');
/* =Theme customization starts here
-------------------------------------------------------------- */
And then make a copy of the child theme style.css to blog.css, edit it to change any image URL paths (I didn't make edits for that because I didn't see any such thing), then copy it to my zencart template's css folder.
That wasn't working well for me because of the vast number of unneeded styles it was importing from the 'twentythirteen' theme that were screwing up the display of the blog page within zencart, like the way it changed the default table style and all kinds of other tags. So I removed the @import line of /blog-backend/wp-content/themes/zencart/style.css and instead just copied most of the styles from /blog-backend/wp-content/themes/twentythirteen/style.css that didn't seem to screw things up, and changed some the styles to look more uniform in my site. So my /blog-backend/wp-content/themes/zencart/style.css file is still pretty large, and I could post it if needed, but I assume the styles content isn't important as far as my problem goes.
I don't understand why it didn't just have me copy a file with all the WP styles I want into the .css file in the zc template directory. That would fix this wacky importing problem at least, although it wouldn't fix the broken links problem.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
The import statement in the blog.css stylesheet is a result of the Numinix instructions. Numinix links to instructions saying to create a WP child theme and create a new style.css file in that theme's folder with the following content.
/blog-backend/wp-content/themes/zencart/style.css
Code:
/*
Theme Name: Twenty Thirteen Child
Theme URI: http://example.com/twenty-thirteen-child/
Description: Twenty Thirteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentythirteen
Version: 1.0.0
*/
/* =Imports styles from the parent theme
-------------------------------------------------------------- */
@import url('../twentythirteen/style.css');
/* =Theme customization starts here
-------------------------------------------------------------- */
And then make a copy of the child theme style.css to blog.css, edit it to change any image URL paths (I didn't make edits for that because I didn't see any such thing), then copy it to my zencart template's css folder.
That wasn't working well for me because of
the vast number of unneeded styles it was importing from the 'twentythirteen' theme that were screwing up the display of the blog page within zencart, like the way it changed the default table style and all kinds of other tags. So I removed the @import line of /blog-backend/wp-content/themes/zencart/style.css and instead just copied most of the styles from /blog-backend/wp-content/themes/twentythirteen/style.css that didn't seem to screw things up, and changed some the styles to look more uniform in my site. So my /blog-backend/wp-content/themes/zencart/style.css file is still pretty large, and I could post it if needed, but I assume the styles content isn't important as far as my problem goes.
I don't understand why it didn't just have me copy a file with all the WP styles I want into the .css file in the zc template directory. That would fix this wacky importing problem at least, although it wouldn't fix the broken links problem.
The instructions for creating a child theme are correct (they are from the WordPress site) However, you don't make a copy of the CHILD THEME stylesheet to blog.css, you copy the PARENT THEME stylesheet to the blog.css.. (the one with the actual style declarations) Then follow the last part of the installation instructions:
Quote:
Now is the part where you will need some experience with CSS and HTML as you have just imported your entire blog into the main page area of your Zen Cart template… chances are it isn’t going to fit and all of the CSS is ruined by the global style sheet of your Zen Cart. Or, global styles within the blog.css file will have an effect on the look of your store.
Once you get everything configured EXACTLY like the Numinix instructions and the .htaccess changes, and the right stylesheet code in your blog.css, see if it works..
-
Re: Numinix Blog Embedding Issues/Questions
Ok, I went ahead and changed things so the child theme has the small style.css file that imports styles from the parent theme, and the blog.css in zc has all the styles I've edited to my liking. The styles work, and the links on the blog appear to be working, although I just have one post so far so I'm not sure.
I get a 403 Forbidden when browsing to http://www.adamantbarbell.com/blog-backend/wp-admin .
The image in the blog post is also not displaying. I get a 403 Forbidden on it too. http://www.adamantbarbell.com/blog-b...b_01-Small.jpg
I could try making another test post and upload another image, but I'm unable to do that until I can access wp-admin.
Same htaccess file as last post.
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/sysop [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
-
Re: Numinix Blog Embedding Issues/Questions
I remembered I had added a line to the database table for Ceon URI Mapping trying to fix this yesterday, and that was causing a problem with weirdly rewritten URLs that I neglected to mention. So at least that part is fixed (sorry!), the blog links are definitely working (and I have some more styling adjustments to make), but the errors I'm getting are new -
Now I get a 404 Not Found when trying to access /blog-backend or anything in it including the image in the blog post.
Same htaccess as above.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
Ok, I went ahead and changed things so the child theme has the small style.css file that imports styles from the parent theme, and the blog.css in zc has all the styles I've edited to my liking. The styles work, and the links on the blog appear to be working, although I just have one post so far so I'm not sure.
I get a 403 Forbidden when browsing to
http://www.adamantbarbell.com/blog-backend/wp-admin .
The image in the blog post is also not displaying. I get a 403 Forbidden on it too.
http://www.adamantbarbell.com/blog-b...b_01-Small.jpg
I could try making another test post and upload another image, but I'm unable to do that until I can access wp-admin.
Same htaccess file as last post.
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/sysop [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
Now that you've rolled back all the "thorw everything at the wall to see what sticks" kind of changes, you've narrowed this down to only one issue to resolve.. So at this point it's really a matter of finding the correct directive to prevent rewriting the blog's actual physical directory (in your case, "blog-backend"). The directive to NOT re-write the virtual directory appears to be working since your blog is displaying as expected in the center content area..
You can try this instead:
replace this directive:
Code:
RewriteCond %{REQUEST_URI} !^/blog-backend.* [NC]
With this one
Code:
RewriteCond %{REQUEST_URI} !^/blog-backend($|/) [NC]
if that doesn't work, then try this..
Code:
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
If one of these don't work, then I need to defer to the Zen Cart community for help with this... I copied other solutions that have been posted on the Ceon URI thread (NOT the right thread to ask this question BTW..) In the meantime DO NOT change a bunch of stuff wildly..:smile: We know what the issue is.. we just have to find the RIGHT solution..
I am not an expert on Apache directives, and I no longer use any of the blog embedding solutions.. I prefer to use Zen Cart sideboxes to display specific blog content, and simply styling my blog and store to look alike.. This eliminates these kind of issues for me.. Hopefully someone in the community could help.. If after tryin one of these alternative directives you still can't get to the WordPress admin, would suggest asking lhungil very nicely if he can come over to this thread and take a look.. He's REALLY good with these Apache directives..:yes:
-
Re: Numinix Blog Embedding Issues/Questions
No luck with those two directives, but thanks for the help anyway DivaVocals. Just one step away now!
I just realized the 404 error I'm getting isn't the zencart 404 page, it's the WP 404 page. So that's interesting.
Anyone else have ideas on how to fix the directives?
-
Re: Numinix Blog Embedding Issues/Questions
Another thing I noticed is if I change
Code:
# Do rewrite blog directory
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
to
Code:
# Do rewrite blog directory but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
then the blog displays and /blog-backend is also accessible, but the styles the blog uses isn't just from blog.css (that file appears to be loaded too, from the displayed page's source code), it's from the active WP theme css. Maybe that's a good sign, ie: it was able to access the WP directory fine, but for some reason is loading the WP theme css?
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
Another thing I noticed is if I change
Code:
# Do rewrite blog directory
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
to
Code:
# Do rewrite blog directory but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
then the blog displays and /blog-backend is also accessible, but the styles the blog uses isn't just from blog.css (that file appears to be loaded too, from the displayed page's source code), it's from the active WP theme css. Maybe that's a good sign, ie: it was able to access the WP directory fine, but for some reason is loading the WP theme css?
Well not for nothing, but it seems like that's the solution.. So change those directives.. Backup (just in case) and DELETE the blog.css stylesheet, and apply your custom changes to the WP theme stylesheet..
What does your FULL .htaccess file look like??
-
Re: Numinix Blog Embedding Issues/Questions
I did something similar - commented out the @import command from the WP child theme css so it's essentially blank. Everything seems to work!
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/myadmindir [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
I feel like I could have done this with one less directive by modifying and moving the last two to before the "all other URIs" directive, but hey, it works.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
I did something similar - commented out the @import command from the WP child theme css so it's essentially blank. Everything seems to work!
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/myadmindir [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
I feel like I could have done this with one less directive by modifying and moving the last two to before the "all other URIs" directive, but hey, it works.
No no no.. You will lose your changes if there is an update to the parent theme.. (that's WHY you create a child theme)
Restore the parent theme stylesheet back to the default.. Yes, remove the @import statement from the child theme stylesheet, but try putting your adjusted stylesheet declarations in the child theme stylesheet..
Also remove out the directive highlighted in red.. you don't need it declared TWICE..
-
Re: Numinix Blog Embedding Issues/Questions
I haven't touched the parent theme stylesheet. But I'll put my styles into the child theme stylesheet and remove the blog.css from zc if that will help avoid problems in the future.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
I haven't touched the parent theme stylesheet. But I'll put my styles into the child theme stylesheet and remove the blog.css from zc if that will help avoid problems in the future.
I think I misread/misunderstood what you did..
So you had NOTHING in the child stylesheet, the parent stylesheet was left in it's default state, and then you had your modified blog.css in your shop's stylesheet folder.. Correct????
If that's the case, and EVERYTHING worked, then put things back the way you had them.. that's just fine..
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
DivaVocals
I think I misread/misunderstood what you did..
So you had NOTHING in the child stylesheet, the parent stylesheet was left in it's default state, and then you had your modified blog.css in your shop's stylesheet folder.. Correct????
If that's the case, and EVERYTHING worked, then put things back the way you had them.. that's just fine..
Right. I haven't messed with it yet, so I think that's it, thanks!
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
Right. I haven't messed with it yet, so I think that's it, thanks!
Sure.. you did remove the duplicate directive though right????????
-
Re: Numinix Blog Embedding Issues/Questions
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
fakeDecoy
Yep, did that.
Great.. then you are all done..
-
Re: Numinix Blog Embedding Issues/Questions
Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
Any insight quite welcome. In the meantime using the twenty thirteen theme without secondary widget area (which takes up right column space anyway)
-
Re: Numinix Blog Embedding Issues/Questions
Combining WOZ sideboxes only module and/or combining it with the numinix solution.
I recently submitted an updated version of the module, the tpl_wp_XXX pages to which are added one line that seemed to be needed to close a DIV. Maybe this is only necessary when using the numinix method.
Code:
$content .= '</div>';
below
Code:
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= '<ul>'.$out.'</ul>';
The extra-configures/wordpress_config.php file also needed to be changed. A 404 file not found error was occurring on the blog pages, which seemed to be due to something in here:
Code:
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.php');
It worked fine when that code was removed, but there was a sidebox error on the NON-blog pages.
So I updated the code on the extra-configures/wordpress_config.php page to:
Code:
define ('ABSPATH','/path/to/my/blog/');
$host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$its_blog_page = $_SERVER['SERVER_NAME'] . "/blog";
if ((strpos($host, $its_blog_page) !== false) && (file_exists(ABSPATH.'wp-config.php'))){
$woz_install=1;
}else{
$woz_install=1;
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.php');
}
which simply checks the current URL to see if it contains the numinix-style path to the blog (mydomain.com/blog) and loads ONLY the $woz_install=1; line, otherwise for any other page it loads also the WP THEME, wp Header and WP config lines.
I imagine there as a much more elegant way to do this and I would love to see if if anyone's inspired to share. Otherwise, hope this is useful.
DivaVocals has mentioned that the blogroll and wp_sidebox are no longer supported by wordpress coding.
Also - am having a problem because the above method only works when the URL for the blog is formatted domain.com/blog and NOT domain.com/index.php?main_page=blog.
So - am experimenting with adding a third variable:
Code:
$host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$its_blog_page = $_SERVER['SERVER_NAME'] . "/blog";
$its_blog_page_2 = $_SERVER['SERVER_NAME'] . "/index.php?main_page=blog";
if ((strpos($host, $its_blog_page) !== false) && (file_exists(ABSPATH.'wp-config.php'))){
$woz_install=1;
}elseif ((strpos($host, $its_blog_page_2) !== false) && (file_exists(ABSPATH.'wp-config.php'))) {
$woz_install=1;
}else{
$woz_install=1;
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.php');
}
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
mutinyzoo
Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
Any insight quite welcome. In the meantime using the twenty thirteen theme without secondary widget area (which takes up right column space anyway)
Anyone know of a solution for this error log as described by Mutinyzoo please?
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
mutinyzoo
Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
Any insight quite welcome. In the meantime using the twenty thirteen theme without secondary widget area (which takes up right column space anyway)
Bump... Anyone have any insight into this error that gets logged please? I have the same issue.
-
Re: Numinix Blog Embedding Issues/Questions
1.5.1
I guess I am not as far along on the installation as the rest on this thread...
Installed Wordpress in a subfolder blog
I have created the child theme as instructed with the suggested style.css
some q? that are fuzzy -
Quote:
Step 3:
Next, save a copy of your theme’s style.css file and any images that are referenced in the style sheet to a place on your desktop to later be uploaded to your Zen Cart installation.
Rename style.css on your desktop to blog.css and open the file and change all image URL paths to match the URLs found in your Zen Cart style sheets.
below is the suggested style.css as provided on the Numinix instructions. there are no images???
Below I have a copy of the style that will be renamed to blog.css Am I missing something? TIA
/*
Theme Name: Twenty Twelve Stitch
Theme URI: http://www.stitchnframeonline.com/bl...twelve-stitch/
Description: Twenty Fourteen Child Theme
Author: Stitch 'N Frame
Author URI: http://www.stitchnframeonline.com
Template: twentytwelve
Version: 1.0.0
Tags: needleart, needlework, cross stitch, needlepoint, goldwork, hardanger,
Text Domain: twenty-fourteen-child
*/
@import url("www.stitchnframeonline.com/blog/wp-content/themes/twentytwelve-stitch/style.css");
/* =Theme customization starts here
-------------------------------------------------------------- */
-
Re: Numinix Blog Embedding Issues/Questions
[QUOTE=mutinyzoo;1227065]Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
If anybody still has this problem, it's trying to find the Jetpack plugin. Looks like something was added for Jetpack to work. But if you don't have Jetpack installed it causes an error.
Installing the Jetpack plugin stopped the errors for me. :smile:
-
Re: Numinix Blog Embedding Issues/Questions
Hi all,
I have a question I have followed the directions and have my blog embedded with in my store. I have been able to do everything except make the blog full width have tried editing with firebug and it keeps reverting. I have been able to get rid of footer and sidebar just this last part having issues with. Blog site is www.thedragonskeep.net/blog My second isssue is the blog css is taking over my template on blog page only, but I can't figure out where to edit to get the blog page header and footer to look like the rest of pages on www.thedragonskeep.net. Bare with me knew to css and html but I have made it this far so really would like to learn to do this. I am running zencart 1.5.5a.
Thanks
Sandria
-
Re: Numinix Blog Embedding Issues/Questions
Ok figured out full width. Now just have to get css fixed. I really can't believe how much I have learned.
Thanks
Sandria
-
Re: Numinix Blog Embedding Issues/Questions
[QUOTE=Tim Ware;1274416]
Quote:
Originally Posted by
mutinyzoo
Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
If anybody still has this problem, it's trying to find the Jetpack plugin. Looks like something was added for Jetpack to work. But if you don't have Jetpack installed it causes an error.
Installing the Jetpack plugin stopped the errors for me. :smile:
Thank you for the solution to this error and for sharing it with the community!
We've updated the package and the contents of that file now read:
PHP Code:
<?php
// turn off WordPress themes and include the WordPress core:
if ($_GET['main_page'] == FILENAME_BLOG) {
define('WP_USE_THEMES', false);
require('wordpress/wp-blog-header.php'); // edit this with relative path to wordpress from store root
if (function_exists('stats_template_redirect')) {
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
}
?>
-
Re: Numinix Blog Embedding Issues/Questions
Tested it with ZC 1.5.5 and it works well. Has anybody an idea how to make the domain http://blog.mydomain.com instead of http://mydomain.com/blog
I am kinda stuck with the rewrite rule on this.
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
dachilla
Do you mean you've already created the subdomain and now you want to redirect, or is your question "how do I create a subdomain?" ?
-
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
picandnix
Do you mean you've already created the subdomain and now you want to redirect, or is your question "how do I create a subdomain?" ?
Subdomain is already created, I need to know how to redirect it with hataccess.
Just want to know how I have to rewrite this part so that it gores to http://blog.domain.com instead of http://domain.com/blog
Quote:
In your domain root, open .htaccess and add the following:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
This will rewrite your blog page url to domain.com/blog/. If this causes a server error, try changing the last line above to:
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
Note: If you want wordpress to load as a different URL, change the first instance of “blog” in the RewriteRule to whatever you set as the Blog Address in step 3 of the Preparing WordPress section above.
Any help is appreciated.
-
Re: Numinix Blog Embedding Issues/Questions