PDA

View Full Version : str_replace editor_toolbar_start quick reply


leodestroy
12-31-2009, 03:34 AM
plugin:
location: editor_toolbar_start
$test1 = '11111111111111111111';

$templater = vB_Template::create('test');
$templater->register('test1', $test1);

$search = '<li class=\"editor_control_group_item\">
<img src=\"{vb:stylevar imgdir_editor}/quote.png\" class=\"imagebutton\" id=\"{vb:raw editorid}_cmd_wrap0_quote\" width=\"20\" height=\"20\" alt=\"{vb:rawphrase wrap_quote_tags}\" />
</li>';
$vbulletin->templatecache['showthread_quickreply'] = str_replace($search,$search.$templater->render('test'), $vbulletin->templatecache['showthread_quickreply']);


tamplate: test
{vb:raw test1} 222222222222222222

I need insert my tamplate after button quote in quick reply. How to?

leodestroy
01-02-2010, 12:48 AM
Any one can help?