I just recently tried setting up the mbBlog plugin and ran into many of the difficulties that others have. I am not sure if a final fix has been found and posted elsewhere, but I managed to get it working fine, so I thought I would share how...
1. I installed and activated the plugin.
2. I set my blog path in the settings to: blog/
3. Needing to get a link to said blog to appear in my navigation menu, I created a child page titled: Blog with a slug of: blog and a breadcrumb entry of: Blog
... I then set the page to Published.
4. I installed the Redirector plugin...
5. I added a redirect so that: /blog redirects to: /blog/
6. In viewlog.php I changed this code: href="/view/
...to this: href="blog/view/
...and then in the same line changed: >/">
...to this: >">
7. In bloglist.php I changed this code: href="/view/
...to this: href="blog/view/
...and then in the same line changed: >/">
...to this: >">
....and then changed this code: href='/view/".stripslashes
...to this: href='blog/view/".stripslashes
....and it works. So far. Hope this helps out. I'm getting ready to do a redesign on my site as I pursue something a little different, so I can't say how long that blog post or even the blog will remain online if anyone should care to check it out. I'll try to leave it up a few days and add another post or two to see how it works with multiple posts, but I was up all night and am tired, in need of sleep.
http://www.connectionary.com/
Sean
** UPDATE: 08/29/2010 - 3:21 CST **
Ran into a minor problem with the navigation menu outputting the Blog menu item in the navigation menu as I wanted....but with an empty set of UL tags (no list items...which is what it should be doing, because I want them hidden), and this led to non-validation for XHTML strict.
Solution? I changed the Blog page status to hidden and hard-coded the entry into the navigation menu.
Everything seems fine, and I don't appear to get any robots.txt, 404 or other internal errors in any logs...so the redirection all seems to be going smoothly.
** UPDATE: 08/29/2010 - 5:24 CST **
I tried a few changes to see what I could get going. I deleted the Blog page altogether and eliminated all the redirects....
Things will work like this if I set my blog settings path to: blog/
The problem is that I then have that one page with '/' tacked on the end of the URL which is contrary to what I want. This seems to be the root of the problem--the trailing / required in the Blog Settings - Blog Path field.
I wish I were more knowledgeable of PHP and programming in general so I could track the issue better, but that appears to be the major obstacle to having a uniform navigation/URL structure with this blog plugin. The other issue that I have is in trying to enable commenting on blog posts using the Comments plugin. I have tried various solutions, from placing the required code in the template for my site pages (which then requires ensuring comments are disabled for all non-blog pages...and it doesn't work in any case) to placing the code in viewblog.php...again, with no luck.
The question to me is: why is it necessary to append the Blog Path setting with a / at all? There must be a better way to tackle this.....just wish I knew what it was. I suppose for uniformity's sake, I could tweak .htaccess to append a / to every URL that doesn't end one so everything would look uniform. But that still wouldn't solve the issue with getting the needed Comment plugin code into pages (I suppose there could be something I'm obviously missing....just not aware of?).
Last edited by Sean (2010-08-29 23:47)