8.0.3 Changing Login Background
Permalink
I've recently created a second concrete site using the newest version, 8.0.3, and cannot seem to find a way to change the background image of the login page. With 7.5.6, which I use on my existing site, this was achieved by editing concrete.php in the generated_overrides folder and adding the following:
However, in the new version of the file, this code causes a 500 internal error (as does creating a new concrete.php in the 'config' directory. I also notice that in the new concrete.php all parentheses have been replaced by square brackets. I attempted to follow the format of the new concrete.php to try and retrofit the code for it, but all efforts resulted in a 500 server error until it was removed.
However, in the new version of the file, this code causes a 500 internal error (as does creating a new concrete.php in the 'config' directory. I also notice that in the new concrete.php all parentheses have been replaced by square brackets. I attempted to follow the format of the new concrete.php to try and retrofit the code for it, but all efforts resulted in a 500 server error until it was removed.
Thank you for your response.
I will certainly use the plugin if necessary, however for things like this I tend to like hard-coded changes. Should the concrete.php in the config directory (which doesn't exist for me by default) be a copy of the file in generated-overrides? I tried creating one and adding the code above into it, without any lines from the original file, and this also caused a 500 error.
I will certainly use the plugin if necessary, however for things like this I tend to like hard-coded changes. Should the concrete.php in the config directory (which doesn't exist for me by default) be a copy of the file in generated-overrides? I tried creating one and adding the code above into it, without any lines from the original file, and this also caused a 500 error.
@lorenzolrom
This tutorial covers setting the login background image through the config:
https://documentation.concrete5.org/tutorials/how-to-set-a-custom-lo...
This tutorial covers setting the login background image through the config:
https://documentation.concrete5.org/tutorials/how-to-set-a-custom-lo...
@MrKDilkington
I must have looked at that tutorial many times, and only now did I catch the part at the top stating that a php tag was required (I don't do much manually editing of php). That solution does work for version 8.
I also used your plugin until I implemented the above, and it worked perfectly as well.
Thanks,
Larry
I must have looked at that tutorial many times, and only now did I catch the part at the top stating that a php tag was required (I don't do much manually editing of php). That solution does work for version 8.
I also used your plugin until I implemented the above, and it worked perfectly as well.
Thanks,
Larry
The application\config\generated_overrides\concrete.php file is not meant to be edited. The application\config\concrete.php is the file that should be used.
This add-on can be used to change the login background image and welcome screen image through the dashboard:
https://www.concrete5.org/marketplace/addons/mrkdilkington-login-pag...
The square brackets are PHP 5.4+ short array syntax.