(2014-03-12, 07:10 PM)Clank Wrote: [ -> ]Wait a moment, when you load the index there are two of inferno_shoutbox loaded, one isn't cached and one is(I missed it before), could this be related?
Also when I make changes to the inferno_archive template, those are loaded.
I don't know if this is a real fix or a hack fix, but in inferno.php if you change
$plugins->add_hook('global_start', 'inferno_global');
to
$plugins->add_hook('global_end', 'inferno_global');
it will load the custom template. I honestly have no idea why this works, but perhaps someone who knows Mybb can help me out there.
The global_start hook is before the templates are cached, which may explain why you saw that the template was loaded twice (one was cached, one wasn't). I am not terribly familiar with how MyBB handles template caching, so I can't say why that means edits don't show up.
(2014-03-12, 09:37 PM)Tanweth Wrote: [ -> ]The global_start hook is before the templates are cached, which may explain why you saw that the template was loaded twice (one was cached, one wasn't). I am not terribly familiar with how MyBB handles template caching, so I can't say why that means edits don't show up.
The reason I changed it from global_end to global_start was because everybody was complaining that their shoutbox wouldn't load when they moved the variable to (insert random page) and that was my fix for that problem. I'll have to do a bit more research because the way MyBB does templates is pretty ghetto compared to other forum software
Yeah, that is one unfortunate issue with MyBB's implementation. The globally available templates (like header) are loaded before global_end. So if someone wants to put your variable into header (which probably some did), it won't work if you use global_end. An issue that many plugins before have faced. Hopefully one day we'll have another hook added to global before those templates are loaded.
Would be great to have the archive view (trow1+trow2) in the normal shoutbox view too. Would be clearer as only one background and <br />.
(Sorry if these repeated feature request posts get annoying, I have been using SB posting as I think of things)
Is there a way do disable the idle timeout? I ask because some small sites like mine don't really need it and it kind-of annoys members, I know I can set it to a really high timeout, but I guess an option to disable it would be nice as well.
I like the shoutbox but is there a way to move the text bracket from the top to the bottom ?
still no fix for this issues comented in
post#195 ?
(2014-03-21, 09:22 AM)Masterchief1 Wrote: [ -> ]still no fix for this issues comented in post#195 ?
The way to fix is not loading the custom template is described
here. I don't know why it won't allow the SB to be collapsed, and to fix the issue with anus, chmod inc/plugins/inferno/anus.php to 777.
So there's two of the three issues fixed.
Edit: The reason the SB couldn't be collapsed was because he typoed and put
<img id="cat1_img" class="expander" title="[-]" alt="[-]" src="images/collapse.gif" style="cursor: pointer;">
Instead of
<img id="cat_1_img" class="expander" title="[-]" alt="[-]" src="images/collapse.gif" style="cursor: pointer;">
You can edit the templates and fix this yourself, however for it to take effect you will have to make the change outlined in the post that I linked earlier.