svasti wrote:as far as I remember — it looked strange, when the template was dark, to have suddenly a fully white screen with a small login form in the middle.
I think that guys from google should think about their search-result page, which is mostly white, too. If they link to pages with a dark background...svasti wrote:I'd propose for the detached login form that either the template remains in the background with a dark overlay and the login form will be in the foreground, or alternatively that the surrounding area of the login form be middle gray.
Ok, kidding aside. I thought we discuss a technical implementation of a feature. A background - colour should not be the problem. Beside this, that detached login must not be the default -- it should only be easy possible.
A workaround could be to add "&print" and inject some css for styling on the fly. So it's fine with me as it is.
Hmm, I can't follow your objections ...cmb wrote:I'm not sure if that really would be helpful. For one thing, it is not necessarily clear, if there should be a common some_new_filename.php for all languages or separate files for each language. The former would simplify things, but it would make it harder wrt. internationalization. For another thing, depending on the storage place of some_new_filename.php, the file(s) could not be uploaded from the backend. If the user has to use FTP anyway, they could (temporarily) replace index.php (or maybe cmsimple/cms.php) with something else.
In short: I only want to propose to have the same as userfuncs.php for cms.php -- but for index.php -- nothing more.
That file gets included by index.php. Since cms.php isn't loaded at that time, there is in fact not yet a multi - language -system available. So we need only on file.cmb wrote: For one thing, it is not necessarily clear, if there should be a common some_new_filename.php for all languages or separate files for each language. The former would simplify things, but it would make it harder wrt. internationalization.
So let's put it into /cmsimple, beside userfuncs.php. Why should it be an issue not to be able to upload that file in the backend? I can't remember a request for that until now.cmb wrote:For another thing, depending on the storage place of some_new_filename.php, the file(s) could not be uploaded from the backend.
Just see this proposal "detached" from the topic-title. It should be a simple feature (or a dirty workaround for missing / userdefined hooks and autoloading) like userfuncs.php is. You have to use userfuncs.php for things not possible by a plugin and this file to do things before cms.php gets loaded.cmb wrote:If the user has to use FTP anyway, they could (temporarily) replace index.php (or maybe cmsimple/cms.php) with something else.
It seems to me having such a default file for index.php (I have no idea for a name of that php file yet) makes a lot of things possible.
And wrt. a maintenance mode: I would put only the few necessary lines of code to that file, the rest (configuration, internationalisation and so on) could be made as a plugin as usual.