Using xvideoplaypack plugin in my own component
Posted: Tue Jan 01, 2008 9:45 pm
Hi friends,
I would like to use plugin (in this case it is "xvideoplaypack" mambot) in my custom components.
detail info:
- I installed that plugin (XtremVideoPlayer)
- the main file ("xvideoplaypack.php") of this plugin contains next code (bit of this):
$_MAMBOTS->registerFunction( 'onPrepareContent', 'youtube_content' );
...
function youtube_content( $published, &$row, &$params, $page=0 ) {
...
}
- how can I use this plugin's function in my custom component:
- in my component is loaded next text string: [youtube:http://www.youtube.com/watch?v=blablabla] from database
and I want manage this text string with function "youtube_content" in plugin
and return back to component result from that plugin's function.
My answer is:
How to call plugin's function in my component script and how can I pass atributtes, and which attributtes?
thank for help
Fred
I would like to use plugin (in this case it is "xvideoplaypack" mambot) in my custom components.
detail info:
- I installed that plugin (XtremVideoPlayer)
- the main file ("xvideoplaypack.php") of this plugin contains next code (bit of this):
$_MAMBOTS->registerFunction( 'onPrepareContent', 'youtube_content' );
...
function youtube_content( $published, &$row, &$params, $page=0 ) {
...
}
- how can I use this plugin's function in my custom component:
- in my component is loaded next text string: [youtube:http://www.youtube.com/watch?v=blablabla] from database
and I want manage this text string with function "youtube_content" in plugin
and return back to component result from that plugin's function.
My answer is:
How to call plugin's function in my component script and how can I pass atributtes, and which attributtes?
thank for help
Fred