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
-------------------------------------------------------------- */