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.
1741
Archived fixes / Re: Input boxes not working in Chrome
« on January 29th, 2013, 03:28 PM »
Something like that, yes ;)
1742
Archived fixes / Re: Input boxes not working in Chrome
« on January 29th, 2013, 01:51 PM »
Keep it for now, and if Chrome fixes it, let's remove it. I guess we'll just have to retest it thoroughly in about 6 weeks.
1743
Features / Re: New revs - Public comments
« on January 29th, 2013, 01:50 PM »So, I'm looking at the latest commit, plenty of good stuff, and a couple of things that required my attention:
- error.lock (cool thing BTW) is never created. Why doesn't it go through the same logic as the other lock file..? :geek:
- It's amusing that I never understood the logic in that Subs-Login block, and with your rewrite it's even fuzzier in my mind... :lol:
- The ob_end_clean() function is often called in SMF/Wedge, but never the same way. Sometimes it's just it, other times it's done with a while() on ob_get_level(), and finally my method: a single-line while (@ob_end_clean()); that will delete all buffers and stop at the last (because when none are left, PHP returns false.)
I modified all of the calls that seemed to require deleting all buffers, to do that single-line while() instead. Hopefully everything'll be okay.
It always seemed to me to be clearer to indicate what you're doing and the one-liner, while efficient and compact, is not exactly conducive to its meaning. I'm cool with it, until I forget what it does and have to mentally shift to make sense of it ;)
- ob_end_clean() is called multiple times in the anti-prefetch code. I'm bothered with that one. First of all, having the same code repeated all over Wedge is a bit ugly, so I moved it to Subs.php in a preventPrefetch() function.
I need opinions on two things here:
- I added a $always parameter to it specifically for the call in MessageIndex, because it also sends a 403 when trying to load a board while the action is attempting to load an attachment. So this becomes basically preventPrefetch($and_also_if_loading_attachment), where $always will bypass the prefetcher test. That seems ugly to me... Isn't it?
- If MessageIndex prevents loading topics to ensure they're not 'read', why not do the same on topic pages..? Prefetching the next page means that if you're on a topic with 10 unread pages, next time you click on the topic from the MessageIndex list, you'll have skipped an entire page because it was marked as read... Instead of preventing prefetching, we could also just check whether the prefetcher is loading the current page, and if yes, skip updating the topic read/page read tables... But that means when we get to reading the actual page, it's loaded from the cache, and thus the tables aren't updated either. It would make more sense if prefetchers also sent an asynchronous extra request to that page to tell it that it's actually been read... But it's unrealistic to expect them to do it.
- At this point, do we want prefetchers at all on Wedge?! If not, then... robots.txt... Disallow Fasterfox. There may be other prefetchers to prevent, too. Or just add a rule to the htaccess file, I dunno.
Woohoo, Opera has just changed my textarea's font to a serif font... WHILE TYPING.?
Good job! And then it crashed on me. At least that serif problem was a good warning. Then I launched Chrome, and it crashed on me before I had time to send this.
It's interesting that back in my Windows XP + 2GB RAM days, I was able to run Opera with up to 900 tabs, albeit very slowly...
Now with Windows 7 + 8GB RAM, I've never been able to get above 200 tabs in Opera without it making my life hell, and Chrome is actually behaving better but after 400 tabs it's also much harder to work with...
Anyway!
1744
Features / Re: New revs
« on January 29th, 2013, 12:31 AM »
(10 files, 4KB)
Revision: 1879
Author: arantor
Date: 28 January 2013 23:30:45
Message:
! SMF bug: DB could under some circumstances get into a very nasty infinite loop. (Class-DB.php)
! SMF issue: If we are doing a fatal error, clear any output buffers. I'm not any more convinced now than I was two years ago that it's strictly necessary but it can't *hurt* to have it. (Errors.php)
! SMF bug: There are some places where we do an MD5 comparison in an unsafe fashion. Not all of these *needed* to be patched, I'm just being over-thorough, and I think I did all the places it really matters. (upgrade.php, ManageServer.php, Security.php, Subs-Plugins.php)
! SMF bug: The number of password change tries was not always enforced properly. (Subs-Login.php)
! Missed changeover to cache lock file. (Subs-Cache.php)
! Don't use the Settings.php file for recording an error. On good systems this should be readonly anyway and not chmoddable from PHP without FTP help, so it won't even be writable. Instead use an error.lock file's mtime in the cache folder (which should be writable). This will also prevent any chance of the infamous race condition that causes Settings.php to be eaten. (Errors.php, Subs-Admin.php)
----
Modified : /trunk/Sources/Class-DB.php
Modified : /trunk/Sources/Errors.php
Modified : /trunk/Sources/ManageServer.php
Modified : /trunk/Sources/Reminder.php
Modified : /trunk/Sources/Security.php
Modified : /trunk/Sources/Subs-Admin.php
Modified : /trunk/Sources/Subs-Cache.php
Modified : /trunk/Sources/Subs-Login.php
Modified : /trunk/Sources/Subs-Plugins.php
Modified : /trunk/other/upgrade.php
Revision: 1879
Author: arantor
Date: 28 January 2013 23:30:45
Message:
! SMF bug: DB could under some circumstances get into a very nasty infinite loop. (Class-DB.php)
! SMF issue: If we are doing a fatal error, clear any output buffers. I'm not any more convinced now than I was two years ago that it's strictly necessary but it can't *hurt* to have it. (Errors.php)
! SMF bug: There are some places where we do an MD5 comparison in an unsafe fashion. Not all of these *needed* to be patched, I'm just being over-thorough, and I think I did all the places it really matters. (upgrade.php, ManageServer.php, Security.php, Subs-Plugins.php)
! SMF bug: The number of password change tries was not always enforced properly. (Subs-Login.php)
! Missed changeover to cache lock file. (Subs-Cache.php)
! Don't use the Settings.php file for recording an error. On good systems this should be readonly anyway and not chmoddable from PHP without FTP help, so it won't even be writable. Instead use an error.lock file's mtime in the cache folder (which should be writable). This will also prevent any chance of the infamous race condition that causes Settings.php to be eaten. (Errors.php, Subs-Admin.php)
----
Modified : /trunk/Sources/Class-DB.php
Modified : /trunk/Sources/Errors.php
Modified : /trunk/Sources/ManageServer.php
Modified : /trunk/Sources/Reminder.php
Modified : /trunk/Sources/Security.php
Modified : /trunk/Sources/Subs-Admin.php
Modified : /trunk/Sources/Subs-Cache.php
Modified : /trunk/Sources/Subs-Login.php
Modified : /trunk/Sources/Subs-Plugins.php
Modified : /trunk/other/upgrade.php
1745
Archived fixes / Re: Plugin execution
« on January 28th, 2013, 10:58 PM »You mean, per-post titles?
Not storing them makes a lot of sense though.
We might as well want to check all topic queries, and ensure they all comply to {query_see_topic}, at least when needed...
Suggestion: replace all Re: internally with <r> or something else that's unlikely to be used in a HTML page. Then do a global replace from <r> to the response prefix..
1746
Archived fixes / Re: Plugin execution
« on January 28th, 2013, 10:18 PM »Oh... Another setting I thought we'd added.
The main drawback is that when you're on mobile (or even on Chrome Desktop!), there's no other way to know the topic title than going to the beginning of the page. Only Firefox Mobile shows the title in the URL bar, but I'm not a big fan of that either (especially since Wedge shows the topic title in the URL in the first place...)
Sure we could. But do we have the willingness to rewrite every single post link to indicate whether they're a reply or a new topic..?
I'm thinking we could have an icon to indicate reply vs new topic. Or even if we wanted to be fussy, use whatever $txt['response_prefix'] in the *current* language is. None of this farting about collecting whatever language response prefix or shoving it in to the subject data, just store it without, and display it with it.
Just a thought. It seems like an awful lot of effort for 4 characters.
1747
Archived fixes / Re: Plugin execution
« on January 28th, 2013, 07:35 PM »Also... Why don't we have a UI for $settings['disable_language_fallback']...?
That's the code that gets 'index' to be loaded another time.
It's really strange, because the code seems to indicate that it won't be called more than once every 600 seconds...?!
Do we really actually need the Re: part everywhere? The number of people who ask about removing it on sm.org is quite significant, and this is a lot of fluff just for a minor operation that isn't actually needed.
It would also allow us to safely rewrite queries to use the first post's subject rather than the last post's and then replies could all leave the subject empty - saving space.
It's not like we can't rejig the template to use 'Reply #x' as the link to the post either.
1748
Archived fixes / Re: Plugin execution
« on January 28th, 2013, 06:53 PM »
O RLY
OK, so yeah, I suggested there might be issues with language juggling ;)
I know we fixed it to load English first all the time, but I don't know why it's loading them twice. What I'd be inclined to do is try and dump the backtrace upon hitting loadLanguage where it's called to load 'index' to see why it's loading them twice.
OK, so yeah, I suggested there might be issues with language juggling ;)
I know we fixed it to load English first all the time, but I don't know why it's loading them twice. What I'd be inclined to do is try and dump the backtrace upon hitting loadLanguage where it's called to load 'index' to see why it's loading them twice.
* Arantor is still fighting with security issues right now.
1749
Archived fixes / Re: Plugin execution
« on January 28th, 2013, 06:47 PM »
It's not Display.php, loadTheme is called long before Display.php even loads.
It means loadTheme is ending earlier than expected - and if so that would imply it is originally an SMF bug ;)
It means loadTheme is ending earlier than expected - and if so that would imply it is originally an SMF bug ;)
1750
The Pub / Re: Looking for volunteers to test the Wedge private alpha!
« on January 28th, 2013, 03:11 AM »
You know what I think happened?
I think he saw http://wedge.org/blog/7632/it-only-took-two-guys-two-years/msg285454/#new and saw the post from November at the top and thought it was a new build coming out.
I think he saw http://wedge.org/blog/7632/it-only-took-two-guys-two-years/msg285454/#new and saw the post from November at the top and thought it was a new build coming out.
1751
The Pub / Re: Looking for volunteers to test the Wedge private alpha!
« on January 28th, 2013, 12:22 AM »
What latest alpha?
1753
Archived fixes / Re: Plugin execution
« on January 27th, 2013, 09:15 PM »
After switching languages and browsing around, it happened to me the grand total of once where it didn't show up.
That would imply that under some set of circumstances, the hook isn't being called for some reason, but it's not clear why or why not that might be the case.
That would imply that under some set of circumstances, the hook isn't being called for some reason, but it's not clear why or why not that might be the case.
1754
Plugins / Re: Plugin CSS in regular files?
« on January 27th, 2013, 06:09 PM »
There's saving on HTTP requests as the expense of dramatically increasing server space usage. No need to introduce CSS files to the master files if they're only occasionally used.
What we could always do is introduce a parameter to add_plugin_css_file to indicate whether to force it into main running order or not, default to not.
What we could always do is introduce a parameter to add_plugin_css_file to indicate whether to force it into main running order or not, default to not.
1755
Bug reports / Re: SMF bug: replying to topic with mismatch of replies
« on January 27th, 2013, 04:51 PM »
Perhaps we need to track both items through the quick reply/full reply (ugh) and check both on posting.
Just for fun, reply count will also be affected if you delete posts, approve posts and so on. That's likely why it uses last msg id.
Posted: January 27th, 2013, 04:50 PM
Just for fun, reply count will also be affected if you delete posts, approve posts and so on. That's likely why it uses last msg id.