[RFC|Merged] Template tag to include JS files
Re: [RFC] Template tag to include JS files
I would think that is kind of a no brainer as HTML loads top down why would it change the order?
Re: [RFC] Template tag to include JS files
Ticket: http://tracker.phpbb.com/browse/PHPBB3-10665
Patch: https://github.com/cyberalien/phpbb3/tree/ticket/10665
Patch is not available as pull request yet because it is based on another pull request.
Also moved to 3.1 forum.
Patch: https://github.com/cyberalien/phpbb3/tree/ticket/10665
Patch is not available as pull request yet because it is based on another pull request.
Also moved to 3.1 forum.
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Re: [RFC|Merged] Template tag to include JS files
When you create wiki articles for transitioning to 3.1 please make sure they are linked to from http://wiki.phpbb.com/phpBB3.1 so they are easy to find.
Re: [RFC|Merged] Template tag to include JS files
Done. Updated wiki with all major style changes.
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Re: [RFC|Merged] Template tag to include JS files
This does not work for assets though, right?
Re: [RFC|Merged] Template tag to include JS files
How come?igorw wrote:This does not work for assets though, right?
It makes no real sense if it was made in such way that it doesn't... (I hope I understood it right)
Re: [RFC|Merged] Template tag to include JS files
Not as in not yet.
Re: [RFC|Merged] Template tag to include JS files
The test has this code:
Why are filesystem paths ending up in script tags?
Also please note the following additional tickets filed:
http://tracker.phpbb.com/browse/PHPBB3-10800
http://tracker.phpbb.com/browse/PHPBB3-10799
Code: Select all
// Prepare correct result
$dir = dirname(__FILE__);
$scripts = array(
'<script src="' . $dir . '/templates/parent_and_child.html?assets_version=1"></script>',
'<script src="' . $dir . '/parent_templates/parent_only.html?assets_version=1"></script>',
'<script src="' . $dir . '/templates/child_only.html?assets_version=1"></script>'
);
// Run test
$cache_file = $this->template->cachepath . 'includejs.html.php';
$this->run_template('includejs.html', array('PARENT' => 'parent_only.html'), array(), array(), implode('', $scripts), $cache_file);
Also please note the following additional tickets filed:
http://tracker.phpbb.com/browse/PHPBB3-10800
http://tracker.phpbb.com/browse/PHPBB3-10799
Re: [RFC|Merged] Template tag to include JS files
Because of this: https://github.com/phpbb/phpbb3/blob/de ... se.php#L66Oleg wrote:Why are filesystem paths ending up in script tags?
and this: https://github.com/phpbb/phpbb3/blob/de ... ee.php#L21
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Re: [RFC|Merged] Template tag to include JS files
That needs to be changed/fixed then? Is there a ticket filed to fix it? Was this discussed anywhere?
I stopped blaming that code when I got to https://github.com/phpbb/phpbb3/commit/ ... c89a53d0c5.
I stopped blaming that code when I got to https://github.com/phpbb/phpbb3/commit/ ... c89a53d0c5.