Recent Topics

1 Jan 29, 2008 15:22    

My b2evolution Version: 2.4.x

Hello, I ahve a question:

I am Writting code in my skin (evoSkin -posts.main.php) and I am triying to get access to the function (DisplayExtraFields) of a installed plugin (extrafields_plugin extends Plugin)

What PHP code should I writte to run the code of the plugin function?

2 Jan 29, 2008 15:27

Something like this should work :

$ExtraFields = $Plugins->get_by_code( 'extrafields' );
$ExtraFields->DisplayExtraFields();

¥

3 Jan 29, 2008 17:03

Sorry, what about in the version 2.4?

4 Jan 29, 2008 17:14

You may need to global $Plugins first

¥

5 Jan 29, 2008 22:38

Thanks a lot, It worked!

global $Plugins;
$ExtraFields = $Plugins->get_by_code('extrafields');
$tellmyfields= $ExtraFields->DisplayExtraFields($Item->get('ID'));


Form is loading...