It varies from page to page. Here is a list which is common to all pages:GoBieN wrote:Is there a list somewhere with TEMPLATE variables I can use?
Like SCRIPT_NAME and such?
https://github.com/phpbb/phpbb/blob/3.1 ... .php#L5099
It varies from page to page. Here is a list which is common to all pages:GoBieN wrote:Is there a list somewhere with TEMPLATE variables I can use?
Like SCRIPT_NAME and such?
Some languages do not have all keys yet. Help is welcome on (use pull requests):Mauron wrote:Any news about the official release in extension database?
This made me think they should validate language packs separately?martti wrote:Some languages do not have all keys yet. Help is welcome on (use pull requests):Mauron wrote:Any news about the official release in extension database?
If they won't get completed, they can't be included in the release.
- Arabic (ar)
- Dutch (nl)
- Turkish (tr)
Code: Select all
<!-- INCLUDE ../../../../../../store/customcode/new.html -->
Code: Select all
Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "../../../../../../store/customcode/new.html"
How do you scale the width and height of the background image to be Responsive?<!-- Baby chickens in headerbar styling -->
<style>
.headerbar {
background-image: url("{ROOT_PATH}images/baby_chickens.jpg");
}
/** remove the logo and increase the height of the headerbar **/
.imageset.site_logo {
background-image: none;
padding-left: 0;
padding-top: 100px;
}
</style>
kooljp wrote: How do you scale the width and height of the background image to be Responsive?
Edit : overall_header_stylesheets_after.hml
Code: Select all
<!-- Baby chickens in headerbar styling -->
<style>
.headerbar {
background-image: url("{ROOT_PATH}images/baby_chickens.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
/** remove the logo and increase the height of the headerbar **/
.imageset.site_logo {
background-image: none;
padding-left: 0;
padding-top: 100px;
}
</style>
Then add the following:kooljp wrote:Thanks martti, works perfectly.
Is there a way to make the image a clickable link to the homepage?
Cheers
JP
Edit : overall_footer_after.html
Code: Select all
<!-- Clickable headerbar -->
<script>
var headerbar = document.querySelector('.headerbar');
if (headerbar)
{
headerbar.addEventListener('click', function(){
window.location = '{{ U_SITE_HOME ? U_SITE_HOME : U_INDEX }}';
});
headerbar.title = '{{ U_SITE_HOME ? L_SITE_HOME : L_INDEX }}';
headerbar.style.cursor = 'pointer';
}
</script>
Was the file created with the extension itself?romeo_piter wrote:This path:does not work for me:Code: Select all
<!-- INCLUDE ../../../../../../store/customcode/new.html -->
But the file exists.Code: Select all
Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "../../../../../../store/customcode/new.html"
Maybe the problem is that my forum is on subdomen: forum.site
Could you please help?
Added this code and refreshed the cache.martti wrote:Then add the following:kooljp wrote:Thanks martti, works perfectly.
Is there a way to make the image a clickable link to the homepage?
Cheers
JP
Edit : overall_footer_after.html
Code: Select all
<!-- Clickable headerbar --> <script> var headerbar = document.querySelector('.headerbar'); if (headerbar) { headerbar.addEventListener('click', function(){ window.location = '{{ U_SITE_HOME ? U_SITE_HOME : U_INDEX }}'; }); headerbar.title = '{{ U_SITE_HOME ? L_SITE_HOME : L_INDEX }}'; headerbar.style.cursor = 'pointer'; } </script>
kooljp wrote:Added this code and refreshed the cache.martti wrote:Then add the following:kooljp wrote:Thanks martti, works perfectly.
Is there a way to make the image a clickable link to the homepage?
Cheers
JP
Edit : overall_footer_after.html
Code: Select all
<!-- Clickable headerbar --> <script> var headerbar = document.querySelector('.headerbar'); if (headerbar) { headerbar.addEventListener('click', function(){ window.location = '{{ U_SITE_HOME ? U_SITE_HOME : U_INDEX }}'; }); headerbar.title = '{{ U_SITE_HOME ? L_SITE_HOME : L_INDEX }}'; headerbar.style.cursor = 'pointer'; } </script>
Didn't appear to work:
Board is http://www.fishing-victoria.com/
Cheers
overall_header_stylesheets_after.html
, but I gave you Edit : overall_footer_after.html
overall_stylesheets_after.html
doesn't work because at this position the .headerbar div is not rendered yet. So document.querySelector('.headerbar');
returns null.oopsmartti wrote:
You've put the code inoverall_header_stylesheets_after.html
, but I gave youEdit : overall_footer_after.html
overall_stylesheets_after.html
doesn't work because at this position the .headerbar div is not rendered yet. Sodocument.querySelector('.headerbar');
returns null.
Meykota wrote:So is it's possible to hide my ads from my registered users? Only guests shall see those ads. Would be great
You don't really want theGalixte de EzCom wrote:more like this:Code: Select all
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT --> "your code" <!-- ENDIF -->
and not S_IS_BOT
condition in there. That would be saying, if you are not a bot show the ads, but hiding the ads from bots probably isn't a good idea, particularly if you use Adsense.