Recent Topics

1 Dec 13, 2009 03:58    

My b2evolution Version: 3.2

Hello,

Ed helped me convert my plain theme to 2.4. It works fine with 3.2 except for the intro posts. I was wondering if there's something I can do to fix it. Perhaps somebody can help me out?

You can see it here:

www.nelsonguirado.com

2 Dec 13, 2009 05:36

You need to add special code for the intro posts.

Something like this:

	<?php
	// Go Grab the featured post:
	if( $Item = & get_featured_Item() )
	{	// We have a featured/intro post to display:
		// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
		skin_include( '_item_block.inc.php', array(
				'feature_block' => true,
				'content_mode' => 'auto',		// 'auto' will auto select depending on $disp-detail
				'intro_mode'   => 'normal',	// Intro posts will be displayed in normal mode
				'item_class'   => 'featured_post',
				'image_size'	 =>	'fit-400x320',
			) );
		// ----------------------------END ITEM BLOCK  ----------------------------
	}
	?>

3 Dec 13, 2009 06:02

Worked. Thanks. I'm guessing all _item_block.inc.php files are the same?

4 Dec 14, 2009 04:54

No they're not necessarilly all the same but if you don't have one in your specific skin, you'll get the default one, which most of the time will be ok :)


Form is loading...