Recent Topics

1 Apr 22, 2006 11:03    

Any chance we can replicate the following plugin events for comments?

				'RenderItemAsHtml' = > T_('Renders content when generated as HTML.'),
				'RenderItemAsXml' = > T_('Renders content when generated as XML.'),
				'RenderItem' = > T_('Renders content when not generated as HTML or XML.'),

				/*
				not used yet..
				'DisplayItemAsHtml' = > T_('Called on an item when it gets displayed as HTML.'),
				'DisplayItemAsXml' = > T_('Called on an item when it gets displayed as XML.'),
				'DisplayItem' = > T_('Called on an item when it gets not displayed as HTML or XML.'),
				*/
				'DisplayItemAllFormats' = > T_('Called on an item when it gets displayed.'),


This would allow things like smilies/bbcode to be used in comments without having to amend all the skins.

also, would it be possible to have sister functions for these two functions to make skin installations a tad simpler?

call_method( plugin ID, method, params);
call_method_if_active( plugin ID, method, params);

/* sister functions */
call_plugin_method( plugin code, method, params);
call_plugin_method_if_active( plugin code, method, params);


The sister functions would simply call get_by_code( plugin code) and then call the relevant current functions.

Have fun,
¥

*edit*
Whilst I'm at it I might as well go the whole hog ;)

Can we also replicate AdminDisplayToolbar( ) for comments as well? Although that would require all the skins being updated.


Form is loading...