Recent Topics

1 Mar 04, 2012 06:55    

It would be a good idea to have custom buttons in write panel for repetitive tasks.

For example if you always add an author info box on bottom of the post;


<div class="author-inf"></div>

You would want to wrap it like above.. I know it's not a big deal, but it could be a real time saver if you have a few of those in every post.

I dug through some old topics, most recent one being (from 2009):

http://forums.b2evolution.net/viewtopic.php?t=19273

I will try to hack my way into the _item_expert.form.php and see what i can do, but it would of course would be a lot better to have it as a plugin.

2 Mar 04, 2012 21:26

It's easy, just use this method

function UnfilterItemContents( & $params )
{
	$params['content'] .= '<div class="author-inf"></div>';

	return true;
}

3 Mar 04, 2012 22:41

sam2kb wrote:

It's easy, just use this method

function UnfilterItemContents( & $params )
{
	$params['content'] .= '<div class="author-inf"></div>';

	return true;
}

nah that was just an example. You may not want the whole post. or insert it at the end.

Maybe you just want to wrap a sentence in the middle of the post, or maybe insert a custom download button etc.


Form is loading...