vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   modifying the postbit_quickedit template via a plugin (https://vborg.vbsupport.ru/showthread.php?t=124316)

cynix2 08-18-2006 03:53 PM

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']);
}


cynix2 08-22-2006 04:37 PM

can anyone help with this?


All times are GMT. The time now is 11:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01007 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete