Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1753

Extension Writers Discussion • Re: php path to image

$
0
0
Hello,

Have you tried declaring the images when initialising the functions?

What's more, you don't need overall_header_head_append.html, the overall_footer_body_after.html file is all you need:

Code:

{% if S_INDEX %}{% INCLUDEJS '@hifikabin_aprilfools/bug-min.js' %}<script>// default fruit fly bug:new BugController({'imageSprite': '{{ ROOT_PATH }}ext/hifikabin/aprilfools/styles/prosilver/theme/images/fly-sprite.png'});// default spiders:new SpiderController({'imageSprite': '{{ ROOT_PATH }}ext/hifikabin/aprilfools/styles/prosilver/theme/images/spider-sprite.png'});</script>{% endif %}
And in the bug.min.js file, you declare empty variables for the options (x2):

Code:

imageSprite: "",
Perhaps you could also use all/ instead of /prosilver ?

Statistics: Posted by cabot — Fri Feb 16, 2024 10:28 am



Viewing all articles
Browse latest Browse all 1753

Trending Articles