Re: Re: package-info.xml to... .something else?
Reply #5 –
I can't argue it can be a little tricky, but you don't need to edit any template file.
As I demonstrated above you can replace the template with your own without doing code edits.
Then there are two "odd" points:
1) if the member is using the WYSIWYG then SCEditor javascript is still loaded. True. Though since you are using another template it's just a matter of not instantiate it, and it will not be used. Yes, waste of bandwidth. But that can be avoided:
foreach ($context[javascript_files'] as $key => $file))
{
if ($file['filename'] == 'sceditor.js')
{
unset($context[javascript_files'][$key]);
break;
}
}
Of course this has to be done after the javascript has been loaded and before the template is sent out.
2) each "quote" button has: onclick="return oQuickReply.quote(', $message['id'], ');"
In that case, you can create a dummy javascript object oQuickReply with a dummy quote method, just to avoid errors, and then handle the quoting the way you want.
Did I miss anything?