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.
6691
Features / Re: Selectbox
« on January 8th, 2012, 11:35 PM »In which case their SVN server does some magic in the post_commit hook. One of the perks of hosting your own SVN at least.
http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
Re the board listing, I wouldn't have a problem making the quick moderation adhere to that. In fact, I've been wondering about whether that needs changing; the fact that so many people ask where it went makes me think we should make it on by default - or even making it the *only* option, so if you can't moderate, you don't see it at all but if you can, that's the only view you get.
Wanna do it?
And for the jumpto on this field? You or me? Can add to my to-do (although it's a bit crowded...), as you like.
6692
Off-topic / Re: Doctor Who
« on January 8th, 2012, 11:30 PM »
I'm not surprised. Well, the episode is not available online yet, so I'm waiting, but I'm not surprised that it's not as good as the first one. I watched the Moffat episode 3 times last year. Watched the other two only once...
Although Gatiss had definitely a good episode last time. So I'm still looking forward to watching it... I just regret Moffat doesn't write the LAST episode, too. It feels like a bit of a let down to know you're starting with the best ;)
Although Gatiss had definitely a good episode last time. So I'm still looking forward to watching it... I just regret Moffat doesn't write the LAST episode, too. It feels like a bit of a let down to know you're starting with the best ;)
6693
Off-topic / Re: Doctor Who
« on January 8th, 2012, 07:47 PM »
DS, I think you need to read a Song timeline because it's easy to get it wrong ;)
http://tardis.wikia.com/wiki/River_Song
(Oh, and to anyone who hasn't seen "Night and the Doctor" yet -- there's a spoiler in this article, so don't read it!!)
http://tardis.wikia.com/wiki/River_Song
(Oh, and to anyone who hasn't seen "Night and the Doctor" yet -- there's a spoiler in this article, so don't read it!!)
6694
Features / Re: Selectbox
« on January 8th, 2012, 07:38 PM »Updated manually by the team. The amount of times they forgot to update it...Quote changelog.txt's first line, SMF?
(Ahh... Good times.)
Demo updated to rev 1243!
Regarding the Quick Access, yes, I for one wouldn't fill it directly with the board data. I actually think that we should even use that for the quick mod select box, where the board list is filled in at page generation time --- grrrrr.
Just have a look at Noisen... It has dozens of boards, if not hundreds (I don't think it shows boards that are created but not filled.)
Now imagine loading that list on every single board page... :-/
It's 'doable', especially with today's bandwidth availabilities, but it's still a waste.
6695
Features / Re: New revs
« on January 8th, 2012, 07:33 PM »
rev 1243
(3 files, 2kb)
* Simplified the HTML markup for the scrollbar. Gone is the track div (the scrollbar div itself does the job perfectly), the thumb div loses its class, and viewport/scrollbar are now floated instead of absolutely-positioned (note to self: .viewport doesn't need to be floated, it just makes the file shorter), which makes for simpler code in the end, and this actually... (index.css)
! ...Fixed the scrollbar in IE6. Phew, at last. Tested final code on IE 6/7/8/9, Safari 5.1, Chrome 17, Firefox 9 and Opera 12. Works flawlessly everywhere (except for the odd margins on IE 6/7, probably due to an issue in styling unordered lists.) (sbox.js, index.css)
* The credits page needed a small update. (Credits.php)
@ 2669 bytes. Need I say more, ladies and gentlemen...? (sbox.js)
(3 files, 2kb)
* Simplified the HTML markup for the scrollbar. Gone is the track div (the scrollbar div itself does the job perfectly), the thumb div loses its class, and viewport/scrollbar are now floated instead of absolutely-positioned (note to self: .viewport doesn't need to be floated, it just makes the file shorter), which makes for simpler code in the end, and this actually... (index.css)
! ...Fixed the scrollbar in IE6. Phew, at last. Tested final code on IE 6/7/8/9, Safari 5.1, Chrome 17, Firefox 9 and Opera 12. Works flawlessly everywhere (except for the odd margins on IE 6/7, probably due to an issue in styling unordered lists.) (sbox.js, index.css)
* The credits page needed a small update. (Credits.php)
@ 2669 bytes. Need I say more, ladies and gentlemen...? (sbox.js)
6696
Features / Re: Selectbox
« on January 8th, 2012, 05:27 PM »Whatever script pulls the files can just edit the version string... I don't think there's any more elegant way of doing that without reinstalling.
Oh, and Deluxe Paint on the Amiga :D
DEMO UPDATED TO 1242!
Posted: January 8th, 2012, 05:15 PM
BTW -- quickest way to see the awesomeness of the select box in action: menu > PM > Send message.
Just play with the three select boxes in the post/pm editor. They're HTML, two of them have a scrollbar (with the small hover effect), and it just works flawlessly. :)
6697
Features / Re: Selectbox
« on January 8th, 2012, 04:15 PM »
Hmm yeah I guess it's technically possible but it'd have to be done manually or we'd have to learn about svn a bit more. I remember looking into it...
Pete: Neochrome? deluxe Paint? Degas Elite? :P
Pete: Neochrome? deluxe Paint? Degas Elite? :P
6698
Features / Re: Selectbox
« on January 8th, 2012, 04:06 PM »
Yeah eheh.
Lorenzo, you haven't even seen the completed select box on the demo site ;)
I shall update it soon though... But I'm currently hooked on Steins;Gate. Great show for 'realistic time travel' fans. :)
Lorenzo, you haven't even seen the completed select box on the demo site ;)
I shall update it soon though... But I'm currently hooked on Steins;Gate. Great show for 'realistic time travel' fans. :)
6699
Features / Re: New revs
« on January 8th, 2012, 12:47 PM »
rev 1242
(2 files, 2kb)
* $(document).click() is now $(document).mousedown(), thus $display.click() no longer needs to return false. (sbox.js)
* Select box entries are now clickable through .mousedown() instead of .click(), which fixes a problem with IE 6/7 when dragging the scrollbar and releasing the mouse button outside of the select box (guess what, it would close it.) (sbox.js)
! ...And the fix above caused IE 6/7/8 to select the item text in some cases, so I added an onselectstart event that adds 12 bytes to the gzipped file, which I compensated in other areas to retain the exact same final size. I am absolutely mental. Please help me. (sbox.js)
- Got rid of setting maxHeight in dropdown CSS, to add support for scrollbars in IE6. It's ongoing though, so it still actually doesn't work in IE6 but it'll be done soon enough. (sbox.js)
- Select box 'text' class doesn't need to be an inline block, really. Also, 'items' class (unordered list) behaves better as inline. (index.css)
+ Added a hover effect on select box scrollbar thumbs. (index.css)
(2 files, 2kb)
* $(document).click() is now $(document).mousedown(), thus $display.click() no longer needs to return false. (sbox.js)
* Select box entries are now clickable through .mousedown() instead of .click(), which fixes a problem with IE 6/7 when dragging the scrollbar and releasing the mouse button outside of the select box (guess what, it would close it.) (sbox.js)
! ...And the fix above caused IE 6/7/8 to select the item text in some cases, so I added an onselectstart event that adds 12 bytes to the gzipped file, which I compensated in other areas to retain the exact same final size. I am absolutely mental. Please help me. (sbox.js)
- Got rid of setting maxHeight in dropdown CSS, to add support for scrollbars in IE6. It's ongoing though, so it still actually doesn't work in IE6 but it'll be done soon enough. (sbox.js)
- Select box 'text' class doesn't need to be an inline block, really. Also, 'items' class (unordered list) behaves better as inline. (index.css)
+ Added a hover effect on select box scrollbar thumbs. (index.css)
6700
Features / Re: Selectbox
« on January 8th, 2012, 12:32 PM »
(BTW, IE problem fixed half an hour ago. I'm telling you just in case you'd want to look into it. Should have posted earlier...)
6701
Features / Re: Selectbox
« on January 8th, 2012, 11:27 AM »
As I said, the issue only happens with IE (6/7/8, not 9), so even the -ms prefix would be useless because only IE10 supports it. I could use the unselectable property, but even then I don't want to complicate things.
There are two dynamic select boxes that I know of: the JumpTo, and the PM global label selector -- it takes a list of available labels, determines which selected PMs already have it, and recreates the "Add label" and "Remove label" entries accordingly. I rewrote the code to simplify it -- now it generates two optgroups, so it helps with readability, but obviously it still repopulates the box. I could have the box contain every single entry and then simply 'hide' them which would make it easier to re-create, but there's no point in doing that. And yes, if I implemented some kinds of tricks, I could get away with removing at least 200 bytes of code (possibly a bit more) from the select box, but I don't want to impair any plugins by forcing them to do tricks when it's so elegantly handled by my code.
Anyway, that's irrelevant to the issue at hand...
When I say 'dynamically', I really mind the simple fact of doing manipulations on select boxes without referring to them as select boxes.
Code: [Select]
Consider this:
Code: [Select]
And this:
Code: [Select]
They will both do the same thing... However, the second one forces me to go through every single select box in the code, take note of their IDs and their option IDs, and then go through the entire code again to search for possible manipulations. The point is, because SMF didn't use jQuery, and I didn't convert every single JS statement inside templates themselves, it's easier to do getElementById() on an option than going through getElementByTagName or something...
The problem is unlikely to happen in any non-admin pages, but the admin area... Some of its code is so convoluted... :-/
There are two dynamic select boxes that I know of: the JumpTo, and the PM global label selector -- it takes a list of available labels, determines which selected PMs already have it, and recreates the "Add label" and "Remove label" entries accordingly. I rewrote the code to simplify it -- now it generates two optgroups, so it helps with readability, but obviously it still repopulates the box. I could have the box contain every single entry and then simply 'hide' them which would make it easier to re-create, but there's no point in doing that. And yes, if I implemented some kinds of tricks, I could get away with removing at least 200 bytes of code (possibly a bit more) from the select box, but I don't want to impair any plugins by forcing them to do tricks when it's so elegantly handled by my code.
Anyway, that's irrelevant to the issue at hand...
When I say 'dynamically', I really mind the simple fact of doing manipulations on select boxes without referring to them as select boxes.
<select id="hello">
<option id="world" value="">Test</option>
</select>Consider this:
$('select option[val=""]').val('Nyan nyan');And this:
$('#world]').val('Nyan nyan');They will both do the same thing... However, the second one forces me to go through every single select box in the code, take note of their IDs and their option IDs, and then go through the entire code again to search for possible manipulations. The point is, because SMF didn't use jQuery, and I didn't convert every single JS statement inside templates themselves, it's easier to do getElementById() on an option than going through getElementByTagName or something...
The problem is unlikely to happen in any non-admin pages, but the admin area... Some of its code is so convoluted... :-/
6702
Off-topic / Re: Strange problem with RewriteCond
« on January 8th, 2012, 08:47 AM »
Are you a smoker, Pete?
6703
Features / Re: Selectbox
« on January 8th, 2012, 12:39 AM »
I should specify that the selection bug only happens when trying to 'drag' the text (copy it) at the moment you click it (which is unlikely to happen..?), while the 'select box closing itself' bug happens everytime your cursor ends up outside of the box.
Also, the selection bug can be 'reproduced' by simply trying to drag smileys in the smiley list (basically, LOTS of areas can reproduce the bug..), and it only happens in IE.
iframes? Over my dead body...!
(My only fear is that Wedge somehow has an obscure area where select boxes are manipulated dynamically in a way that they can't be found by doing a regex search on your project files. Then again -- if nobody uses said feature, it won't matter, and if someone does, they're bound to tell us what we should fix...)
Also, the selection bug can be 'reproduced' by simply trying to drag smileys in the smiley list (basically, LOTS of areas can reproduce the bug..), and it only happens in IE.
iframes? Over my dead body...!
(My only fear is that Wedge somehow has an obscure area where select boxes are manipulated dynamically in a way that they can't be found by doing a regex search on your project files. Then again -- if nobody uses said feature, it won't matter, and if someone does, they're bound to tell us what we should fix...)
6704
Features / Re: Selectbox
« on January 7th, 2012, 11:45 PM »
Hmm, I shouldn't have tested my select box on IE... :P
Fixed a few bugs in IE6 today, but some remain.
- If select box has a scrollbar, in IE7 there's extra padding added to the left of the box items... A gap of exactly 16 pixels. I set margin and padding to 0 and list-style to none, it does remove the discs but doesn't change the margin... I don't think I SHOULD use negative margins, should I...?
- As mentioned in the latest changelog, if you move the thumb and release your mouse button when outside the select box, it will close in IE 6-9, as opposed to other browsers. For this one, it's even more complicated... I believe it's due to IE not firing the events correctly, or not taking into account a click's stopPropagation in a parent's mouseup event or something. Anyway, others browsers run it... So, I changed the click event to a mousedown event -- and it suddenly started working! Yay... However, now when I click a box item to select it, the HTML elements around the select box will be selected, even though I do return false at the end of the mousedown event, which SHOULD normally cancel anything that comes after that (mouseup, click...), as well as prevent the default (this is where it seems not to be working.)
Obviously, Opera doesn't show this behavior. Haven't tested in other browsers.
I suppose no one has any idea how to come to terms with this..? And if it can't be fixed -- which is best? HTML selection after an item click, or select box getting closed after dragging the scrollbar thumb?
Fixed a few bugs in IE6 today, but some remain.
- If select box has a scrollbar, in IE7 there's extra padding added to the left of the box items... A gap of exactly 16 pixels. I set margin and padding to 0 and list-style to none, it does remove the discs but doesn't change the margin... I don't think I SHOULD use negative margins, should I...?
- As mentioned in the latest changelog, if you move the thumb and release your mouse button when outside the select box, it will close in IE 6-9, as opposed to other browsers. For this one, it's even more complicated... I believe it's due to IE not firing the events correctly, or not taking into account a click's stopPropagation in a parent's mouseup event or something. Anyway, others browsers run it... So, I changed the click event to a mousedown event -- and it suddenly started working! Yay... However, now when I click a box item to select it, the HTML elements around the select box will be selected, even though I do return false at the end of the mousedown event, which SHOULD normally cancel anything that comes after that (mouseup, click...), as well as prevent the default (this is where it seems not to be working.)
Obviously, Opera doesn't show this behavior. Haven't tested in other browsers.
I suppose no one has any idea how to come to terms with this..? And if it can't be fixed -- which is best? HTML selection after an item click, or select box getting closed after dragging the scrollbar thumb?
6705
Features / Re: New revs
« on January 7th, 2012, 08:25 PM »
rev 1241
(6 files +2, 9kb)
* Improved thumb styling in select box scrollbars. (index.css)
* More space optimizations... Reached 2707 bytes, another 27 bytes less. As you can imagine though -- it's going to be pretty much impossible to go below 2700 bytes at this point. But it's okay, the code looks great. (sbox.js)
! Fixed select box closing itself when clicking on the scrollbar outside the thumb (instead of actually moving the thumb to that position.) Note to self: that 'return false' in drag() was important, it just needed to be moved to another event type... (sbox.js)
! Fixed IE6's tendency to enlarge select boxes to full width. (index.ie6.css)
! Fixed broken button layout in IE6 and IE7. Copied the .inline-block method to the editor CSS files, since they can't inherit from index.css (not the same final cache file), and said method is solid enough. (editor.css, editor.ie6.css, editor.ie7.css, index.ie7.css)
@ Note: scrollbars are broken in IE6, most likely because of a bug when calculating the required height. Should I care about that...? I'm thinking not... Also, releasing the mouse button outside of a select box after dragging its thumb will close the select box in IE 6/7/8/9. Dunno why, but it seems to doesn't take the 'return false' into account (yeah, the one mentioned above), as it bubbles up the DOM tree.
(6 files +2, 9kb)
* Improved thumb styling in select box scrollbars. (index.css)
* More space optimizations... Reached 2707 bytes, another 27 bytes less. As you can imagine though -- it's going to be pretty much impossible to go below 2700 bytes at this point. But it's okay, the code looks great. (sbox.js)
! Fixed select box closing itself when clicking on the scrollbar outside the thumb (instead of actually moving the thumb to that position.) Note to self: that 'return false' in drag() was important, it just needed to be moved to another event type... (sbox.js)
! Fixed IE6's tendency to enlarge select boxes to full width. (index.ie6.css)
! Fixed broken button layout in IE6 and IE7. Copied the .inline-block method to the editor CSS files, since they can't inherit from index.css (not the same final cache file), and said method is solid enough. (editor.css, editor.ie6.css, editor.ie7.css, index.ie7.css)
@ Note: scrollbars are broken in IE6, most likely because of a bug when calculating the required height. Should I care about that...? I'm thinking not... Also, releasing the mouse button outside of a select box after dragging its thumb will close the select box in IE 6/7/8/9. Dunno why, but it seems to doesn't take the 'return false' into account (yeah, the one mentioned above), as it bubbles up the DOM tree.