Trying to add some options to the options on the right side on the page
where you create articles.. usually i would just use hook, but theres none.
so trying via the cache..
I tryed using the classic
str_replace which usually works,
but suspecting its becourse the template i was adding to is
working as a variable..
but then the options panel just renders blank...
Now i tryed craeting a "replica" menu and want to add it above the
publishing options, created a template and trying to render it,
but nada, it does not show.. .
plugin i use to change with
Hook location :
process_templates_complete
PHP Code:
$templater = vB_Template::create('excs_article_option');
$elock = $templater->render();
$oldtemplate = $vbulletin->templatecache['vbcms_edit_publisher'];
$newtemplate = null;
$newtemplate = $elock . '<br />' . $oldtemplate;
$vbulletin->templatecache['vbcms_edit_publisher'] = $newtemplate;
basicly the template is just a bunch of div tags,
like the original article publising options..
PHP Code:
<div class="fullwidth editorheader">
<div class="headerbar">
enable content share
</div>
</div>
<div class="fullwidth blockbody formcontrols">
<div class="fullwidth" >
<div class="thirdleft">Enabel export ? </div>
<div class="twothirdsright">
<input type="radio" value="1" name="eviexport" tabindex="1" />{vb:rawphrase yes}
<input type="radio" value="0" name="eviexport" tabindex="1" checked="checked" />{vb:rawphrase no}
</div>
</div>
</div>
<div style="clear:both"></div>
open to suggestions