This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
466
Archived fixes / Re: FileModification before $context['enabled_plugins'] is set
« on December 29th, 2014, 08:49 PM »
I don't have much time to do testing, but the latest commit, which is relatively huge compared to most of my recent work, seems to be working.
A few things were renamed, updateSettingsFile no longer works as it used to so you'll have to adapt plugins that make use of it, but other than that, it's better than before. And it accepts most files to cache :)
I'm counting on you to test this in particular, @CerealGuy!
(Now, all that's left to do is do the same for JS scripts and CSS files... LOL! It's doable, yeah, don't worry about that.)
A few things were renamed, updateSettingsFile no longer works as it used to so you'll have to adapt plugins that make use of it, but other than that, it's better than before. And it accepts most files to cache :)
I'm counting on you to test this in particular, @CerealGuy!
Posted: December 29th, 2014, 08:45 PM
(Now, all that's left to do is do the same for JS scripts and CSS files... LOL! It's doable, yeah, don't worry about that.)
467
Features / Re: New revs
« on December 29th, 2014, 08:43 PM »
[Commit revision 76d76c0]
Author: Nao
Date: Mon, 29 Dec 2014 12:54:44 +0100
Stats: 1 file changed; +1 (insertion), -3 (deletions)
[Commit revision 1b5c546]
Author: Nao
Date: Mon, 29 Dec 2014 20:42:50 +0100
Stats: 10 files changed; +150 (insertions), -141 (deletions)
Date: Mon, 29 Dec 2014 12:54:44 +0100
Stats: 1 file changed; +1 (insertion), -3 (deletions)
- Subs-Admin is no longer needed in a function, the call was forgotten by Arantor when he removed some other code 2 years ago. (Errors.php)
[Commit revision 1b5c546]
Date: Mon, 29 Dec 2014 20:42:50 +0100
Stats: 10 files changed; +150 (insertions), -141 (deletions)
- Renamed Subs-MinifyPHP to Subs-CachePHP, because now it does more than just minify a file. It also deals with everything a PHP file needs to go through to end up in the cache folder, including modding. (Subs-CachePHP.php)
- Moved updateSettingsFile() from Subs-Admin to Subs-CachePHP, to prevent any potential crashes if Subs-Admin was modified by a plugin mod and then another mod crashed another file. It's too complicated, just trust me on this one... Also, since it handles writing PHP files, it's similar in spirit to the other functions in that file. (Subs-Admin.php, Subs-CachePHP.php, ...)
- updateSettingsFile() will now determine variable types by itself, so there's no need to escape them before sending them to the function. That was one silly way of doing things..!
- Allowed loading Subs-CachePHP through loadSource, for convenience in calling updateSettingsFile; this doesn't change the fact that it's not moddable! (index.php)
- Renamed $settings['enabled_plugins'] to $my_plugins, to make the array independent from database access, allowing for more source files to be modded.
- Files modified by this commit: Subs-MinifyPHP.php, Load.php, ManagePlugins.php, ManageServer.php, ManageSettings.php, OriginalFiles.php, Subs-Admin.php, Subs-Plugins.php, Upgrade.php and index.php. I'm not listing them individually above because most of the entries would list most of the files anyway.
468
Archived fixes / Re: FileModification before $context['enabled_plugins'] is set
« on December 28th, 2014, 12:01 PM »
Okay, from this on, I have two possibilities for the $enabled_plugins variable...
1- Either I store all enabled plugins into Settings.php,
2- Or I only store enabled plugins with a mods.xml file into Settings.php (under a different name, like $enabled_mods), and I store the rest into $settings['enabled_plugins'].
1 takes more space in Settings.php and requires doing an extra file_exists() per plugin, but 2 requires disabling & re-enabling a plugin if it's currently enabled and you manually add a mods.xml file to it.
What would be best..? Would most plugins provide a mods.xml file anyway, in which case I might as well use the first solution... Currently, obviously most plugins don't use a mods.xml file, but as this technique was added to encourage developers to port their SMF mods to Wedge (and be satisfied that they'll meet less inter-plugin compatibility issues than with SMF), I can envision that eventually, most plugins will have file mods as well... So, solution 1 is what I'll be using if nothing else comes up.
1- Either I store all enabled plugins into Settings.php,
2- Or I only store enabled plugins with a mods.xml file into Settings.php (under a different name, like $enabled_mods), and I store the rest into $settings['enabled_plugins'].
1 takes more space in Settings.php and requires doing an extra file_exists() per plugin, but 2 requires disabling & re-enabling a plugin if it's currently enabled and you manually add a mods.xml file to it.
What would be best..? Would most plugins provide a mods.xml file anyway, in which case I might as well use the first solution... Currently, obviously most plugins don't use a mods.xml file, but as this technique was added to encourage developers to port their SMF mods to Wedge (and be satisfied that they'll meet less inter-plugin compatibility issues than with SMF), I can envision that eventually, most plugins will have file mods as well... So, solution 1 is what I'll be using if nothing else comes up.
469
Archived fixes / Re: FileModification before $context['enabled_plugins'] is set
« on December 28th, 2014, 11:34 AM »
First of all, I'm not going to do some magic trick with Class-DB, if I need data before the database is available, then I'll use Settings.php (updateSettingsFile) to store it, rather than updateSettings...
Now, what should we store in the file...? enabled_plugins is a given... But I could also store a list of files that are to be modified by plugins. That's what I'm considering right now, but it might also be overkill... Remember, caching is to be done on all files when the cache is purged, but (1) once they're cached, files remain cached until you explicitly uncache or change plugin statuses, so it'll only slow down a few page loads and then the rest won't bother, (2) I don't know if it's worth loading a list of those modifiable files on every page load, when as I just said, it'll only be used once in a blue moon...
So, for now, I'll focus on just moving enabled_plugins to the settings file! ;)
Now, what should we store in the file...? enabled_plugins is a given... But I could also store a list of files that are to be modified by plugins. That's what I'm considering right now, but it might also be overkill... Remember, caching is to be done on all files when the cache is purged, but (1) once they're cached, files remain cached until you explicitly uncache or change plugin statuses, so it'll only slow down a few page loads and then the rest won't bother, (2) I don't know if it's worth loading a list of those modifiable files on every page load, when as I just said, it'll only be used once in a blue moon...
So, for now, I'll focus on just moving enabled_plugins to the settings file! ;)
470
Archived fixes / Re: FileModification before $context['enabled_plugins'] is set
« on December 26th, 2014, 11:31 PM »
I tried to find a solution for this earlier but was a bit stumped. The query problem is solved by only initializing it when an uncached file is to be loaded. And testing for isset rather than !empty.
Other than that, I'm all ears...
Sorry, was in my family for Christmas, just got back, gimme some extra time ;)
Other than that, I'm all ears...
Sorry, was in my family for Christmas, just got back, gimme some extra time ;)
471
Features / Re: New revs
« on December 24th, 2014, 12:34 AM »
[Commit revision 5483d62]
Author:
Date: Tue, 23 Dec 2014 23:19:13 +0100
Stats: 1 file changed; +6 (insertions), -3 (deletions)
[Commit revision 9d5de43]
Author: Nao
Date: Wed, 24 Dec 2014 00:34:13 +0100
Stats: 1 file changed; +6 (insertions), -3 (deletions)
Date: Tue, 23 Dec 2014 23:19:13 +0100
Stats: 1 file changed; +6 (insertions), -3 (deletions)
- Wedge didnt clean the html cache, so template modifications didnt get
- applied.
- If the plugin has no mods.xml we dont need to clean the cache at all.
[Commit revision 9d5de43]
Date: Wed, 24 Dec 2014 00:34:13 +0100
Stats: 1 file changed; +6 (insertions), -3 (deletions)
- Merge pull request #24 from C3realGuy/master
- Wedge didnt clean the html cache, so template modifications didnt get
472
Features / Re: New revs
« on December 23rd, 2014, 11:14 PM »
[Commit revision 779c7c0]
Author: Nao
Date: Tue, 23 Dec 2014 23:14:10 +0100
Stats: 2 files changed; +3 (insertions), -3 (deletions)
Date: Tue, 23 Dec 2014 23:14:10 +0100
Stats: 2 files changed; +3 (insertions), -3 (deletions)
- iOS doesn't like <input type="number">, so I'm forcing a numeric keypad in situations where visitors can access one (PM search, and post search, basically.) Silly hack... (PersonalMessage.template.php, Search.template.php)
473
Features / Re: New revs
« on December 22nd, 2014, 01:00 AM »
[Commit revision f73826a]
Author: Nao
Date: Mon, 22 Dec 2014 00:59:22 +0100
Stats: 3 files changed; +3 (insertions), -3 (deletions)
Date: Mon, 22 Dec 2014 00:59:22 +0100
Stats: 3 files changed; +3 (insertions), -3 (deletions)
- Unused globals. (Security.php, Subs-Cache.php)
- HTML tags aren't allowed in error messages... (Subs-MinifyPHP.php)
474
Features / Re: New revs
« on December 21st, 2014, 09:51 PM »
[Commit revision d1657f6]
Author: Nao
Date: Sun, 21 Dec 2014 21:51:00 +0100
Stats: 5 files changed; +45 (insertions), -24 (deletions)
Date: Sun, 21 Dec 2014 21:51:00 +0100
Stats: 5 files changed; +45 (insertions), -24 (deletions)
- Introducing support for template modding, yay! Basically, templates are now cached the same way source files are (except in the new gz/html folder), and then they go through the same patching process. This is untested, but it should work, and if it doesn't, I'll fix it soon. (Load.php, OriginalFiles.php, Subs-MinifyPHP.php, Subs-Template.php, index.php)
- All templates are now evaluated once at cache time, and never again after that. Best of both worlds...? Although I guess if the error is in a main template, it won't do you much good to have it listed in the error log if you can't show it, will it..? (Subs-Template.php)
- If the gz/app folder is removed by mistake, loadSource will re-create it automatically. (index.php)
- Language inclusion needs no basic caching, since it already has caching of its own. (Load.php)
475
Features / Re: New revs
« on December 21st, 2014, 08:57 PM »
[Commit revision 921070e]
Author: Nao
Date: Sun, 21 Dec 2014 20:54:56 +0100
Stats: 4 files changed; +0 (insertion), -5 (deletions)
Date: Sun, 21 Dec 2014 20:54:56 +0100
Stats: 4 files changed; +0 (insertion), -5 (deletions)
- Removing disableTemplateEval setting... Next commits will deal with the feature in a way that allows running evals without losing any time. Permission to look smug, sir? (ManageServer.php, Help.english.php, ManageSettings.english.php, install.sql)
476
Features / Re: Language revs
« on December 21st, 2014, 08:57 PM »
[Commit revision c46b760]
Author: Nao
Date: Sun, 21 Dec 2014 20:56:48 +0100
Stats: 8 files changed; +2 (insertions), -15 (deletions)
Date: Sun, 21 Dec 2014 20:56:48 +0100
Stats: 8 files changed; +2 (insertions), -15 (deletions)
- Shorter French translations of login/logout menu entries. (index.french.php)
- Removing disableTemplateEval setting, as it's not longer a choice in the main repo. (Help, ManageSettings)
477
Support / Re: horizontal screen size
« on December 17th, 2014, 12:02 AM »
Or maybe they fixed the original bug for which I wrote a workaround.
I think it's in topic.js, try to find the is_firefox test and remove it... Dunno. I think that's a possibility.
:edit:
Code: [Select]
I think it's in topic.js, try to find the is_firefox test and remove it... Dunno. I think that's a possibility.
:edit:
Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test478
Support / Re: horizontal screen size
« on December 15th, 2014, 08:14 AM »
Yeah I said it's buggy in the latest.
Report the bug to them I guess... Can't fix ff for them every time they screw it up...
Report the bug to them I guess... Can't fix ff for them every time they screw it up...
479
Support / Re: horizontal screen size
« on December 14th, 2014, 08:57 PM »
So... I read that it was possible to fix this by clicking 'Reset Firefox'... Which I did. It proceeded to create a new profile for me. Okay, right... I've lost everything. Add-ons, tabs, etc. No problem, I'll just re-enable the old profile. And guess what..? That stupid feature removed the old profile as well!! The entire folder, including all of my manual backups!
WAY TO GO AGAIN, FIREFOX!
I'm hereby pledging that I will NEVER again use Firefox as my browser. Just like Internet Explorer, it will now be relegated to "stupid browser that I have to provide REASONABLE support for, meaning I'll try to run it once a year and see if it doesn't break everything Chrome and Opera render correctly..."
Man, I'm pissed! I lost something like 600 tabs in the process!! And because their profiles are stored in the main Windows drive, I couldn't even manually recover my old files with Recuva. I only managed to recover a 2013 session, yay, good for me... -_- One year of new tabs lost -- and one year of old tab cleanup, too. And of course Firefox 35 won't load this session anyway, I'm just stuck with an old JSON file that I'll have to manually cruise through to get my tab list, or I'll have to downgrade Firefox, I don't know... Still, great.
Phew... I guess I'm not done yet; it simply moved the profile to a new folder on my desktop. (I never use the desktop; I only read this on their troubleshooting pages.)
Guess I'll try and downgrade, now...
Phew... Fixed. I had to downgrade to v32, and then I was able to restore my old session. Good.
Now I just need to find a way to have both v32 and the latest version running around, with different profiles for each... :-/
WAY TO GO AGAIN, FIREFOX!
I'm hereby pledging that I will NEVER again use Firefox as my browser. Just like Internet Explorer, it will now be relegated to "stupid browser that I have to provide REASONABLE support for, meaning I'll try to run it once a year and see if it doesn't break everything Chrome and Opera render correctly..."
Man, I'm pissed! I lost something like 600 tabs in the process!! And because their profiles are stored in the main Windows drive, I couldn't even manually recover my old files with Recuva. I only managed to recover a 2013 session, yay, good for me... -_- One year of new tabs lost -- and one year of old tab cleanup, too. And of course Firefox 35 won't load this session anyway, I'm just stuck with an old JSON file that I'll have to manually cruise through to get my tab list, or I'll have to downgrade Firefox, I don't know... Still, great.
Posted: December 14th, 2014, 08:17 PM
Phew... I guess I'm not done yet; it simply moved the profile to a new folder on my desktop. (I never use the desktop; I only read this on their troubleshooting pages.)
Guess I'll try and downgrade, now...
Posted: December 14th, 2014, 08:22 PM
Phew... Fixed. I had to downgrade to v32, and then I was able to restore my old session. Good.
Now I just need to find a way to have both v32 and the latest version running around, with different profiles for each... :-/
480
Support / Re: horizontal screen size
« on December 14th, 2014, 07:38 PM »
I'm not seeing any problems with Firefox 33.
What it does:
- loads page, loads image, while loading it's constrained to the forum viewport but there's an horizontal scrollbar matching the size of the (un-resized) image. Which is a Firefox bug.
- once image is loaded, it shows up in full un-resized glory...
- and then it's immediately constrained to the forum viewport again. Horizontal scrollbar disappears.
Then Firefox "kindly" offered to update to version 35 (I hadn't run it in a while), and it gently screwed up my entire session... Great. All tabs are gone... This kind of fuck-up hasn't happened in so long. Also, the thing is now buggy as you describe... WAY TO GO, FIREFOX!
:edit: Test...
What it does:
- loads page, loads image, while loading it's constrained to the forum viewport but there's an horizontal scrollbar matching the size of the (un-resized) image. Which is a Firefox bug.
- once image is loaded, it shows up in full un-resized glory...
- and then it's immediately constrained to the forum viewport again. Horizontal scrollbar disappears.
Then Firefox "kindly" offered to update to version 35 (I hadn't run it in a while), and it gently screwed up my entire session... Great. All tabs are gone... This kind of fuck-up hasn't happened in so long. Also, the thing is now buggy as you describe... WAY TO GO, FIREFOX!
:edit: Test...