Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 58
  1. #31
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Numinix Blog Embedding Issues/Questions

    Quote Originally Posted by fakeDecoy View Post
    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:

    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..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #32
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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]
    Last edited by fakeDecoy; 17 Sep 2013 at 03:20 AM.

  3. #33
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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.

  4. #34
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Numinix Blog Embedding Issues/Questions

    Quote Originally Posted by fakeDecoy View Post
    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.. 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..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #35
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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?

  6. #36
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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?
    Last edited by fakeDecoy; 17 Sep 2013 at 01:14 PM.

  7. #37
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Numinix Blog Embedding Issues/Questions

    Quote Originally Posted by fakeDecoy View Post
    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??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #38
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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.

  9. #39
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Numinix Blog Embedding Issues/Questions

    Quote Originally Posted by fakeDecoy View Post
    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..
    Last edited by DivaVocals; 17 Sep 2013 at 01:46 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #40
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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.

 

 
Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Intergrating WordPress Blog onto site - issues with Permanlinks
    By hakatours in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 15 Apr 2010, 03:46 AM
  2. Embedding ZC In a Blog Page??
    By gabstero in forum General Questions
    Replies: 7
    Last Post: 16 Apr 2009, 06:17 PM
  3. Style Issues - 2 Questions
    By traciboyle in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Jan 2008, 03:26 PM
  4. PayPal eCheck Issues & Questions
    By fepb in forum Addon Payment Modules
    Replies: 14
    Last Post: 3 Apr 2007, 06:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR