Recent Topics

1 Feb 14, 2012 05:13    

My b2evolution Version: 4.0.5

Hello Again:

I suppose, our blog is running into 'bugs' since it is about hidden bugs (microbial ones). lol! Sheesh, I've run into strange things with doing this update.

Okay, so, here's the latest when I did a search on this blog on 'Skeptical Doctors'
http://www.rhrplus.com/b2evolution/blogs/index.php/Articles/?s=skeptical+doctors&sentence=OR&disp=search&submit=Search

Sub template [_item_block.inc.php] not found.

User level 10 help info: [/home/dxxx/public_html/b2evolution/blogs/skins/evocamp_purple/_item_block.inc.php]

Is this a new file "_item_block.inc.php" that was added after 2x?

Quick question about installer feature, if I were to upgrade to 4.1.5 in
Dashboard > Tools > Upgrade. There is a warning about it being 'experimental'. Is this still the case after a year or is it safe to use and I should be confident? Perhaps it would get rid of the above issue? What files would it overwrite?

Thoughts?

Thanks. :)

2 Feb 14, 2012 07:44

Another bug to your collection :)

It's pretty easy to fix it. Edit index.main.php file in your skin, at the very top replace this

if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

with this

if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( $disp == 'search' ) $disp = 'posts';

Of course, you need to find time to update your 2.x skin to work in b2evo 4. Just compare it to the skin shipped with b2evolution.

The upgrade feature is still experimental, I don't recommend running it on a live website.

3 Feb 14, 2012 07:48

If you want to upgrade the blog, you should wait a few more days till b2evo 4.1.3 comes out.

4 Feb 14, 2012 22:07

LOL! Just my luck! Thank you for your input and steering me in the right direction.

"Of course, you need to find time to update your 2.x skin to work in b2evo 4. Just compare it to the skin shipped with b2evolution."

In the online manual, I used the instructions for skin updates. At the time, I had assumed that everything was up-to-date with those instructions. I now know that the manual needs a serious overhaul.

5 Feb 14, 2012 22:48

You don't have to reinvent a wheel, your skin is based on evocamp, just compare the two skins with WinMerge or any other merge program ;)

6 Feb 15, 2012 09:41

Will do and thanks again. :)

7 Feb 15, 2012 22:49

Fixed in v5 and v4.1.3

8 Feb 27, 2012 20:00

Hi Sam2kb:

I finally had an oppty to change all the skins with code that you suggested. However, the problem still exists with:

User level 10 help info: [/home/dxxx/public_html/b2evolution/blogs/skins/evocamp_purple/_item_block.inc.php]

Sub template [_item_block.inc.php] not found.

What next?

One other question.....
The search feature has never worked very well for comments, only for blog posts. How can this be accomplished?

9 Feb 27, 2012 20:36

There's actually a better fix. Instead of adding the code I posted above, do this

Open /inc/_blog_main.inc.php and find similar code there

$disp_handlers = array(
		'404'            => '404_not_found.main.php',
		'activateinfo'   => 'activateinfo.main.php',
		'arcdir'         => 'arcdir.main.php',
		'catdir'         => 'catdir.main.php',
		'comments'       => 'comments.main.php',
		'feedback-popup' => 'feedback_popup.main.php',
		'login'          => 'login.main.php',
		'mediaidx'       => 'mediaidx.main.php',
		'msgform'        => 'msgform.main.php',
		'page'           => 'page.main.php',
		'postidx'        => 'postidx.main.php',
		'posts'          => 'posts.main.php',
		'profile'        => 'profile.main.php',
		'search'         => 'search.main.php',
		'single'         => 'single.main.php',
		'sitemap'        => 'sitemap.main.php',
		'subs'           => 'subs.main.php',
		'threads'        => 'threads.main.php',
		'messages'       => 'messages.main.php',
		'contacts'       => 'contacts.main.php',
		'user'           => 'user.main.php',
		'users'          => 'users.main.php',
		'edit'           => 'edit.main.php',
		// All others will default to index.main.php
	);

Then add this code below

$disp_handlers = array(
		'404'            => '404_not_found.main.php',
		'activateinfo'   => 'activateinfo.main.php',
		'arcdir'         => 'arcdir.main.php',
		'catdir'         => 'catdir.main.php',
		'comments'       => 'comments.main.php',
		'feedback-popup' => 'feedback_popup.main.php',
		'login'          => 'login.main.php',
		'mediaidx'       => 'mediaidx.main.php',
		'msgform'        => 'msgform.main.php',
		'page'           => 'page.main.php',
		'postidx'        => 'postidx.main.php',
		'posts'          => 'posts.main.php',
		'profile'        => 'profile.main.php',
		'search'         => 'search.main.php',
		'single'         => 'single.main.php',
		'sitemap'        => 'sitemap.main.php',
		'subs'           => 'subs.main.php',
		'threads'        => 'threads.main.php',
		'messages'       => 'messages.main.php',
		'contacts'       => 'contacts.main.php',
		'user'           => 'user.main.php',
		'users'          => 'users.main.php',
		'edit'           => 'edit.main.php',
		// All others will default to index.main.php
	);

if( $disp == 'search' && ! file_exists( $ads_current_skin_path.'_item_block.inc.php' ) )
{	// Skins from 2.x don't have '_item_block.inc.php' file, and there's no fallback file in /skins directory
	// So we simply load the 'posts' disp handler
	$disp = 'posts';
}

10 Feb 27, 2012 20:37

The search feature has never worked very well for comments, only for blog posts. How can this be accomplished?

The search was not intended for comments, it doesn't search comments at all.

There's no easy way around. You can probably run a second search on comments and then merge found posts together. This may be possible with a plugin in b2evo v5

11 Feb 28, 2012 00:17

The code for inc file worked flawlessly. Thanks.

Search for comments:
It would be nice if there were some kind of search feature that included comments in the future. Bloggers have asked about seeing a comment or they made one and it is lost in the abyss of posts, never to be found again. This feature is particularly helpful in private blogs where there are ongoing conversations and posts. As for public blog posts.... I can see why there wouldn't be much use for it or a need. I think others would agree that in private blogs this would be a good thing to have.

12 Feb 28, 2012 00:20

I agree with you, comment search is needed. Especially in b2evo v5 where you can setup a forum "blog" with posts as topics and comments as replies.


Form is loading...