MyBB Community Forums

Full Version: Implementing a Collapsible Footer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I changed it per your points, effone. It doesn't show up when I first load the page, but clicking on where it's meant to be brings it up. But I can live with that.
On the first load the image icon does set from CSS. On clicking the image icon loads from script.
Make sure you have edited the CSS properly.

On the other note, some people stated that when they expand the footer, the alternate down arrow image appears late for the first time. That is because after expanding the footer the down image download request is called. To solve that, you can just cache the button images at page load for appearing faster.

var footCollapse = new Image();
footCollapse.src = "images/footerdn.png";

(2012-09-11, 02:02 PM)ProVirus Wrote: [ -> ]Scheduled Tasks wont run using your codes and the debug info also won't be displayed to the admins.

You need to add this to your OP:
<div id="debug"><debugstuff></div>
				
<br class="clear" />
<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->
{$auto_dst_detection}

The scheduled task call is there, if you have scrolled down the provided code and noticed properly.

For debug thing I've removed it permanently intentionally as I feel that a little awkward. You can always put it back if you want and if you can find a suitable place for that.
Pages: 1 2