Closed ximex closed 9 years ago
+1
It's not the Job of Admidio to Tell users to Update their browsers.
We should not implement such a service in our programm. Everyone could implement this on His homepage if he like.
I think every (modern) website should say their users to update their browsers to make the life of each webdeveloper easier and make the web faster and safer.
I read some years ago: The cost to optimize the website for IE makes about 20% of the full costs. (i think this isn't this bad in this days)
If someone wants to implement this, then this should be optional and protected by a preference. The default should be off.
ok than i will look at this
where should i put the setting? Allgemeines at last point after Farbe Javascript-Editor?
Where is the best place to put the javascript code in? htmlpage.php?
BTW in the forum I asked if it is possible to create security menu. Put all the security stuff in it. I add the link tomorow
i only have to add the language files.
But i have one bug. the $gPreferences
didn't get updated if i edit a value.
if i change the caching in "organization.php -> getPreferences()" i could see the change after a second refresh.
Any ideas?
@Bullnados i don't think this is a security stuff. But a security menu is a good idea. Feel free the open an issue for that.
@ximex Put it in Allgemeines at last point after Farbe Javascript-Editor. And yes, the javascript should be set in HtmlPage if the preference is set.
Have you run the update after you have edit the new preference?
@Fasse which update?
The admidio Update, so that your prederence is added to the database and to the session.
@Fasse where can i find this function? but woudn't that mean that the other settings didn't get updated after save?
shouldn't this get done in "adm_program/modules/preferences/preferences_function.php" L 206-248 ?
Sorry I misunderstood your problem. If you have a checkbox than you must add the preference to the checkbox array in line 50 in preferences_function.php
@Fasse i already had done this. maybe another bug in the master branch?
i will make a pull request
hmm, don't know. Do you have a branch, where I can look at the code?
i'm working on this and will push a branch in some minutes
merged
Have you Change the preference description?
Implement this update message with a plugin or to enable it with a setting https://browser-update.org/