The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
modifying the postbit_quickedit template via a plugin
i cant find which hook will allow this
i've tried quite a few, most do nothing, some cause the page not to load css and others cause the page to load normally but when i click edit the post goes away but the editor doesnt show up (i take it AJAX doesnt want to play nice with plugin hooks) is there a hook that will allow editing of this template? P.S. i am able to edit editor_toolbar_on through the following hooks editor_wysiwyg_compatible editor_toolbar_start editor_toolbar_end parse_templates global_start i am able to edit showthread_quickreply through the following hooks editor_wysiwyg_compatible editor_toolbar_start editor_toolbar_end parse_templates global_start showthread_start the following templates caused no css to load while trying to view threads init_start style_fetch cache_templates i havent tried ALL of the hooks, those are just the ones that suck out to me as possible tries P.P.S. this is the plugin code i am trying to use on these locations Code:
$vbulletin->templatecache['headinclude'] .= addslashes('<script type="text/javascript" src="vbspell.js"></script>'); $vBSpell_temp_header = <<< html <form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php"> <input type="hidden" name="spell_formname" value="" /> <input type="hidden" name="spell_fieldname" value="" /> <input type="hidden" name="spellstring" value="" /> </form> html; $vbulletin->templatecache['header'] .= addslashes($vBSpell_temp_header); $vBSpell_search_editor_toolbar_on = array("is_browser('ie') AND !is_browser('mac')", "_cmd_spelling\\\"><img"); $vBSpell_replace_editor_toolbar_on = array("1==1", "_cmd_spelling(null)\\\"><img onclick=\\\"spellCheck('vbform', '\$editorid', '2');\\\""); $vBSpell_search_postbit_quickedit = array("is_browser('ie')", "_cmd_spelling\\\"><img"); $vBSpell_replace_postbit_quickedit = array("1==1", "_cmd_spelling(null)\\\"><img onclick=\\\"spellCheck('3', '\$editorid', '2');\\\""); $vBSpell_search_showthread_quickreply = array("is_browser('ie')", "_cmd_spelling\\\"><img"); $vBSpell_replace_showthread_quickreply = array("1==1", "_cmd_spelling(null)\\\"><img onclick=\\\"spellCheck('qrform', '\$editorid', '2');\\\""); foreach ($vBSpell_search_editor_toolbar_on as $id => $item) { $vbulletin->templatecache['editor_toolbar_on'] = str_replace($vBSpell_search_editor_toolbar_on["$id"], $vBSpell_replace_editor_toolbar_on["$id"], $vbulletin->templatecache['editor_toolbar_on']); $vbulletin->templatecache['postbit_quickedit'] = str_replace($vBSpell_search_postbit_quickedit["$id"], $vBSpell_replace_postbit_quickedit["$id"], $vbulletin->templatecache['postbit_quickedit']); $vbulletin->templatecache['showthread_quickreply'] = str_replace($vBSpell_search_showthread_quickreply["$id"], $vBSpell_replace_showthread_quickreply["$id"], $vbulletin->templatecache['showthread_quickreply']); } |
#2
|
|||
|
|||
can anyone help with this?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|