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.
5356
Archived fixes / Re: Time offset (auto detect)
« on April 26th, 2012, 04:51 PM »If 'getting it approximately right' is acceptable, why bother with timezones anywhere and simply just use time offset?
(I could just ignore the server time, force it set to UTC, not have a server time offset and just simply have everyone set their own time offset from that, but that would be unpleasant)
Oh, I didn't look at the actual options in a phpBB website registration, but the presentation is still very much the same thing. (And DST is why time offset is fundamentally broken.)
5357
Archived fixes / Re: Buffer hook never called
« on April 26th, 2012, 04:47 PM »
Yeah, basically, if you happened to quit Wedge, I'd be completely screwed because then I'd have to take over your plugin code which I have little knowledge of, restore the calendar code myself, and end up removing Bad Behavior because I'd be totally lost when it comes to updating its rules... And on and on and on... :^^;:
5358
Features: Miscellaneous / Re: Gravatar support
« on April 26th, 2012, 04:46 PM »
+1 Pete.Quote from nend on April 25th, 2012, 06:20 PM You never use RSS feeds..?
I do tend to visit them time to time, but that is usually when a search takes me to one. I just really can't get into visiting a blog over and over again.
5360
Features / Re: Multiple default skins?
« on April 26th, 2012, 04:41 PM »A session variable is probably the best way to store such short lived objects that have no business in the database. Cookie would probably work equally well, but with all the madness about cookies, it's probably best to avoid them when possible :)
Of course it also means that if we disable sessions, a guest will have to re-run the test on every page... Which isn't cool. So maybe we could have 'emulated' sessions in the database (i.e. per IP.)
But I know Pete is gonna kill me... :P
P.S. Just noticed. I can like my own posts. Intentional behavior?
5361
Archived fixes / Error when posting a large image...
« on April 26th, 2012, 04:39 PM »
Was testing the attachment handler after rewriting post.js to save another 60+ bytes off it...[1]
Fatal error: Call to undefined function checkGD() in Sources\Subs-Graphics.php on line 203
Call Stack
# Time Memory Function Location
1 0.0006 827208 {main}( ) ..\index.php:0
2 0.0440 7867680 Post2( ) ..\index.php:198
3 0.0827 14061376 createAttachment( ) ..\Post2.php:683
4 0.0881 14258216 reencodeImage( ) ..\Subs-Post.php:1699
There's a checkGD2() function defined in install.php but that's all. Is this is GD-only function...? If yes, we should use function_exists() on it first...
Fatal error: Call to undefined function checkGD() in Sources\Subs-Graphics.php on line 203
Call Stack
# Time Memory Function Location
1 0.0006 827208 {main}( ) ..\index.php:0
2 0.0440 7867680 Post2( ) ..\index.php:198
3 0.0827 14061376 createAttachment( ) ..\Post2.php:683
4 0.0881 14258216 reencodeImage( ) ..\Subs-Post.php:1699
There's a checkGD2() function defined in install.php but that's all. Is this is GD-only function...? If yes, we should use function_exists() on it first...
| 1. | I should say that I simply turned its methods into private ones, so basically you can't call them from outside (except for checkActive because it's actually used outside), I know it's not something I should do without thinking because one might want to add a prototype for a Wedge object later and they won't be able to access its private variables -- but still, I don't want to put the extra load on everyone when we have no idea whether people will actually want to extend an object... If they do want to, I'll just consider turning the object back into a list of prototypes. Is that okay with you? |
5362
Archived fixes / Re: Drafts being saved is not shown in QR
« on April 26th, 2012, 04:32 PM »
Crap. Does that mean it's broken again...?
I have 15 pages of drafts myself, and it looks like drafts aren't deleted when they should. I have plenty of versions of my last 'Welcoming new Wedgers' post being written in various stages...
I have 15 pages of drafts myself, and it looks like drafts aren't deleted when they should. I have plenty of versions of my last 'Welcoming new Wedgers' post being written in various stages...
5363
Test board / Re: Characters in CP-1252 that don't work, apparently
« on April 26th, 2012, 04:24 PM »
I think it's always been the case - and I occasionally used it to enter entities that I didn't know the Alt code for.. :P
5364
Features / Re: Moving topics, you can now send a PM
« on April 26th, 2012, 04:16 PM »
You should post this kind of topic to the blog, Pete :)
5365
Features / Re: New revs
« on April 26th, 2012, 04:09 PM »
rev 1564
(5 files, 7kb)
! Fixed a last-minute warning message that showed up when not providing a custom.js file. I'd tested for this, but incorrectly it would seem... (Subs-Cache.php)
* Rewrote the topic title changer (in message index) to be entirely contained in topic.js (this saves us the extra JavaScript at the end of the HTML, as well as the onmouseout/onmouseover events.) Somehow, even adding more code resulted in saving 31 more bytes off the gzipped size... Yeah, I'm like that. (MessageIndex.template.php)
* Fixed the dollar fix. SMF bug, somehow: the comment says it's for IE compatibility, when it really happens on all browsers, because $ is a meta-character when used in the replacement string in a .replace() call. The solution is to simply convert it (once) to $$$$ (or just $$$, but it's close to a hack and doesn't save any gzipped space), and not bother with converting it back. Basically: a bug fix is good when it makes sense. This one didn't and I got stumped for months because I kept researching IE bug lists instead of JS regex flavors. (topic.js)
* Translation. (Errors.french.php, ManageTopics.french.php)
(5 files, 7kb)
! Fixed a last-minute warning message that showed up when not providing a custom.js file. I'd tested for this, but incorrectly it would seem... (Subs-Cache.php)
* Rewrote the topic title changer (in message index) to be entirely contained in topic.js (this saves us the extra JavaScript at the end of the HTML, as well as the onmouseout/onmouseover events.) Somehow, even adding more code resulted in saving 31 more bytes off the gzipped size... Yeah, I'm like that. (MessageIndex.template.php)
* Fixed the dollar fix. SMF bug, somehow: the comment says it's for IE compatibility, when it really happens on all browsers, because $ is a meta-character when used in the replacement string in a .replace() call. The solution is to simply convert it (once) to $$$$ (or just $$$, but it's close to a hack and doesn't save any gzipped space), and not bother with converting it back. Basically: a bug fix is good when it makes sense. This one didn't and I got stumped for months because I kept researching IE bug lists instead of JS regex flavors. (topic.js)
* Translation. (Errors.french.php, ManageTopics.french.php)
5366
Archived fixes / Re: custom.js detection throws errors
« on April 26th, 2012, 08:16 AM »
That's odd. Add_js_file or something has a file_exists before it tries to include a file...?
At least I tried yesterday here and it worked.
At least I tried yesterday here and it worked.
5368
Test board / Re: Characters in CP-1252 that don't work, apparently
« on April 25th, 2012, 08:32 PM »
Works for me...?
5369
Features / Re: Board Icons
« on April 25th, 2012, 07:53 PM »
Scary attachment pic :P
Board icons -- you mean, replacing the "new posts" icon in the board index, is it...?
I don't know about that. I personally prefer to consider that if a board should have its own icon, it should be offered as an addition to what is already in SMF/Wedge, i.e. new material next to the board title or something.
Noisen has support for board icons but I won't elaborate, as it's quite fucked up... :lol:
[OFF TOPIC STARTS HERE :P] (I don't really have time to start new topics etc...)
Pete, glad to see you back... Although I suddenly got like 50 extra posts to read and I was too busy working on my local install to notice you were back... :^^;:
Speaking of icons -- what do you think of today's rewrites for the action bar? I renamed .moderatorbar to .actionbar (because really, what was the semantic point of showing .modified inside that? I got so much confused by it, I'd actually declared .moderatorbar in index.member.css...!), and moved the action menu there. I changed the global opacity to make it less striking, and I think the result is quite good. More importantly, this (finally) fixes the header bar which was always a bit too crowded with icon + title + reply number + date + actions + action menu + moderation checkbox...
Remaining issues:
- Eats a little more vertical space for guests, or any post that hasn't been modified and that the user has no control over -- i.e. post has no 'last modified' date or Quick Edit button. It's no big deal, and I think FluxBB already has a bar at the bottom and nobody complained about that. IIRC Nightwish also brought a bottom bar to his Eos theme redesign...
- Mobile mode -- should I reset it or leave it as is? I think I'll reset it so that it uses the action bar... The main point is that in order to save space, I moved the Quote and Modify buttons to the action menu in mobile mode, even though these menus are a (tiny bit) harder to navigate in mobile mode than desktop mode.
- The post can feel a bit 'trapped' between the header and action bars... I added some generous extra vertical padding to help. Should be fine.
- I'll have to integrate the Quick Edit button into the action bar -- dunno how best to handle this in terms of usability.
Ah, and before I go... Remember the ugly dollarfix thing in SMF/Wedge? That's in topic.js... Well, I understood what it was all about. It's actually NOT AN IE BUG, contrary to what the comment says. I was misled by this. In fact, when applying a regex replacement in JS, "$" is a meta-character and any proper "$" needs to be escaped to "$$" before it can be used as a replacement string... Which is the reason why every single browser would 'eat' extra dollar signs in posts and subjects. So there was no need to replace to 'dollarfix' and back to '$', just replacing to '$$$$' was enough to fix it. Tested in IE6, Opera and Chrome...
Now, the funny thing is that this is the only place where SMF dealt with that, when in reality there are plenty more places where it potentially tries to inject dollar signs.... Any volunteers to deal with these? :P
Board icons -- you mean, replacing the "new posts" icon in the board index, is it...?
I don't know about that. I personally prefer to consider that if a board should have its own icon, it should be offered as an addition to what is already in SMF/Wedge, i.e. new material next to the board title or something.
Noisen has support for board icons but I won't elaborate, as it's quite fucked up... :lol:
[OFF TOPIC STARTS HERE :P] (I don't really have time to start new topics etc...)
Pete, glad to see you back... Although I suddenly got like 50 extra posts to read and I was too busy working on my local install to notice you were back... :^^;:
Speaking of icons -- what do you think of today's rewrites for the action bar? I renamed .moderatorbar to .actionbar (because really, what was the semantic point of showing .modified inside that? I got so much confused by it, I'd actually declared .moderatorbar in index.member.css...!), and moved the action menu there. I changed the global opacity to make it less striking, and I think the result is quite good. More importantly, this (finally) fixes the header bar which was always a bit too crowded with icon + title + reply number + date + actions + action menu + moderation checkbox...
Remaining issues:
- Eats a little more vertical space for guests, or any post that hasn't been modified and that the user has no control over -- i.e. post has no 'last modified' date or Quick Edit button. It's no big deal, and I think FluxBB already has a bar at the bottom and nobody complained about that. IIRC Nightwish also brought a bottom bar to his Eos theme redesign...
- Mobile mode -- should I reset it or leave it as is? I think I'll reset it so that it uses the action bar... The main point is that in order to save space, I moved the Quote and Modify buttons to the action menu in mobile mode, even though these menus are a (tiny bit) harder to navigate in mobile mode than desktop mode.
- The post can feel a bit 'trapped' between the header and action bars... I added some generous extra vertical padding to help. Should be fine.
- I'll have to integrate the Quick Edit button into the action bar -- dunno how best to handle this in terms of usability.
Ah, and before I go... Remember the ugly dollarfix thing in SMF/Wedge? That's in topic.js... Well, I understood what it was all about. It's actually NOT AN IE BUG, contrary to what the comment says. I was misled by this. In fact, when applying a regex replacement in JS, "$" is a meta-character and any proper "$" needs to be escaped to "$$" before it can be used as a replacement string... Which is the reason why every single browser would 'eat' extra dollar signs in posts and subjects. So there was no need to replace to 'dollarfix' and back to '$', just replacing to '$$$$' was enough to fix it. Tested in IE6, Opera and Chrome...
Now, the funny thing is that this is the only place where SMF dealt with that, when in reality there are plenty more places where it potentially tries to inject dollar signs.... Any volunteers to deal with these? :P
5370
Features / Re: New revs
« on April 25th, 2012, 06:08 PM »
rev 1562
(3 files, 2kb)
+ Added support for user-defined JavaScript files. I thought very hard for an original name, and came up with 'custom.js'. What do you think? Anyway, it's easier to create that file manually than adding a plugin to add a custom JS file to the main one... If you know what I mean. (Load.php, Subs-Cache.php)
- Removing 'sbox', 'custom' and 'theme' from the main JS file's cached filename. How 'bout saving a few bytes off every page, eh..? (Subs-Cache.php)
* Saved another 42 bytes off the gzipped topic script by getting rid of its prototypes. It may be controversial because the benefits aren't huge and the drawbacks are potentially bigger, so I may have to revert this in the future, but if no issues arise, why not save the space..? (topic.js)
! Fixed a bug in QuickReply where it was considering bUsingWysiwyg as part of the object, rather than its options. (topic.js)
! Fixed right positioning of mini-menus. (topic.js)
(3 files, 2kb)
+ Added support for user-defined JavaScript files. I thought very hard for an original name, and came up with 'custom.js'. What do you think? Anyway, it's easier to create that file manually than adding a plugin to add a custom JS file to the main one... If you know what I mean. (Load.php, Subs-Cache.php)
- Removing 'sbox', 'custom' and 'theme' from the main JS file's cached filename. How 'bout saving a few bytes off every page, eh..? (Subs-Cache.php)
* Saved another 42 bytes off the gzipped topic script by getting rid of its prototypes. It may be controversial because the benefits aren't huge and the drawbacks are potentially bigger, so I may have to revert this in the future, but if no issues arise, why not save the space..? (topic.js)
! Fixed a bug in QuickReply where it was considering bUsingWysiwyg as part of the object, rather than its options. (topic.js)
! Fixed right positioning of mini-menus. (topic.js)