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.
3992
Plugins / Re: Attachment errors
« on December 27th, 2012, 05:20 PM »
I don't know, but IE10 is bound to get a fair market share in the future, so we might as well ensure we do something about it...
So, what about your upload issue..?
So, what about your upload issue..?
3993
Plugins / Re: Attachment errors
« on December 27th, 2012, 04:45 PM »
I noticed that, but don't know what causes it.
I'm disabling the mass upload plugin, please try again.
Also, in IE10 at least, disabling a plugin doesn't update the button. Maybe we should ensure the cache is refreshed...
I'm disabling the mass upload plugin, please try again.
Also, in IE10 at least, disabling a plugin doesn't update the button. Maybe we should ensure the cache is refreshed...
3994
Off-topic / Re: Doctor Who
« on December 27th, 2012, 04:42 PM »and I love Clara.
Well, I guess I could fall in love with Mr Moffat, if all it took was the clever lines :lol:
Anyway, I don't know what else to say... I'm only surprised that I actually thought of her saying 'it's smaller on the outside' just a second before she said it... It just felt so logical to me that she would say the exact opposite of what the Doctor expected ;)
Also an A+ for the Sherlock impersonation (the music is a nice touch!), as well as the 'originals', whom I already liked from A Good Man Goes to War, but who are much more detailed in here, especially the very funny Strax. I'm glad to know he'll be seen in more épisodes!
3995
Features / Re: Plugin revs
« on December 27th, 2012, 04:39 PM »
rev 66
(22 files, 6kb)
* Converted all committed plugins to use the we object. Also fixed some outdated variables like $modSettings. Some functions seem to be missing needed globals (e.g. $settings in CalendarPost), didn't check them all, might be worth a look... (22 files)
(22 files, 6kb)
* Converted all committed plugins to use the we object. Also fixed some outdated variables like $modSettings. Some functions seem to be missing needed globals (e.g. $settings in CalendarPost), didn't check them all, might be worth a look... (22 files)
3997
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 25th, 2012, 08:59 AM »
I'll be gone for the day, so no post != issues. See you tomorrow.
3998
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 24th, 2012, 07:32 PM »
I don't know what you're talking about, Pete... I removed the protected static and moved it to the getInstance function. As a static, again. It's protected since it's only accessible from that function. Anyway... Merry Christmas -_-
3999
Bug reports / Re: in_array() expects parameter 2 to be array
« on December 24th, 2012, 06:31 PM »
Don't we have simply a way to bypass this issue until fixed..?
Or are we screwed because the we object needs to be initialized for us to put a dummy value in it? :P
Or are we screwed because the we object needs to be initialized for us to put a dummy value in it? :P
4000
Features / Re: New revs
« on December 24th, 2012, 06:24 PM »
rev 1810
(12 files +1, 19kb)
+ Added browser version limiter on CSS filenames, to avoid having too many files for just a couple of guests. Opera v10 and earlier are less than 5% of Opera's share, so I set the minimum version to 11. Minimum versions for Chrome: 20, Safari: 4, IE: 6, and Firefox is a special case because v3-4 are still a bit popular, so I'm keeping v3.x, v4.x and v16 and above. (Class-System.php, Class-CSS.php)
* Various changes to the user object. Some functions are now protected. (Class-System.php)
* we::is('mobile') being a bit slower and being often called on pages, I'm changing that to we::$user['is_mobile']. Feel free to use we::is('mobile') in plugins or whatever, of course. (Load.php)
* Translation. Hmm... There's plenty of other files to clean up... I should have done that first, and re-used the original translations... Whatever. Also fixed English version typo. (ManageBans)
- Removed PREG_PATTERN_ORDER optional param from a few loose preg_match_all calls. (Class-Editor.php, Class-Packer.php, ManageMemberOptions.php, PersonalMessage.php, Profile-Modify.php, Search2.php, Subs-BBC.php, Subs-Template.php)
@ Woohoo, yet another commit conflict... I'm telling you Pete, I was far from done with the we object! Oh, and sorry for the install.php/sql bugs. And I fully agree for the editor :P
Merry Christmas everyone :)
(12 files +1, 19kb)
+ Added browser version limiter on CSS filenames, to avoid having too many files for just a couple of guests. Opera v10 and earlier are less than 5% of Opera's share, so I set the minimum version to 11. Minimum versions for Chrome: 20, Safari: 4, IE: 6, and Firefox is a special case because v3-4 are still a bit popular, so I'm keeping v3.x, v4.x and v16 and above. (Class-System.php, Class-CSS.php)
* Various changes to the user object. Some functions are now protected. (Class-System.php)
* we::is('mobile') being a bit slower and being often called on pages, I'm changing that to we::$user['is_mobile']. Feel free to use we::is('mobile') in plugins or whatever, of course. (Load.php)
* Translation. Hmm... There's plenty of other files to clean up... I should have done that first, and re-used the original translations... Whatever. Also fixed English version typo. (ManageBans)
- Removed PREG_PATTERN_ORDER optional param from a few loose preg_match_all calls. (Class-Editor.php, Class-Packer.php, ManageMemberOptions.php, PersonalMessage.php, Profile-Modify.php, Search2.php, Subs-BBC.php, Subs-Template.php)
@ Woohoo, yet another commit conflict... I'm telling you Pete, I was far from done with the we object! Oh, and sorry for the install.php/sql bugs. And I fully agree for the editor :P
Merry Christmas everyone :)
4001
Bug reports / Re: in_array() expects parameter 2 to be array
« on December 24th, 2012, 01:27 PM »
I've been having that error regularly since I made the we object, but never got time to look into it.
I'll take some time in a few minutes.
My quick suggestion: maybe Security is called BEFORE we::getInstance...? Or isn't it?
I'll take some time in a few minutes.
My quick suggestion: maybe Security is called BEFORE we::getInstance...? Or isn't it?
4002
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 24th, 2012, 01:27 PM »
But that's the point... Isn't it? I'm trying to have consistent (i.e. harmonized all throughout) code.
Anyway, I don't know what you want exactly... When you say that you're not touching wetem because you're not sure it's ready, but you touch we immediately after my first couple of commits, I'm not sure whether you actually had something in mind or it's just something you thought of when reading my code and you tried to justify yourself after that by giving a (wrong) example....
Fact is, you don't have to justify yourself, you're human as I am, we have our little idiosyncracies, what matters is to accept them and/or have others accept them. (It feels like watching every other episode of Friends or HIMYM...)
This is where we're wasting our time. As I said earlier, we're unlikely to budge much on this particular issue, so we have to determine, not who's right, but who's the more annoyed by the other's preference. If it kills you not to see a 'public' keyword, I'll gladly change my habit. If it only slightly bothers you, then maybe you'll gladly accept my own preference.
There's really no need to fight over this.
Anyway, I don't know what you want exactly... When you say that you're not touching wetem because you're not sure it's ready, but you touch we immediately after my first couple of commits, I'm not sure whether you actually had something in mind or it's just something you thought of when reading my code and you tried to justify yourself after that by giving a (wrong) example....
Fact is, you don't have to justify yourself, you're human as I am, we have our little idiosyncracies, what matters is to accept them and/or have others accept them. (It feels like watching every other episode of Friends or HIMYM...)
This is where we're wasting our time. As I said earlier, we're unlikely to budge much on this particular issue, so we have to determine, not who's right, but who's the more annoyed by the other's preference. If it kills you not to see a 'public' keyword, I'll gladly change my habit. If it only slightly bothers you, then maybe you'll gladly accept my own preference.
There's really no need to fight over this.
4003
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 24th, 2012, 11:32 AM »
wetem is definitely finished -- I haven't changed it in a while, it's working and I'm certainly not going to change the object's structure at this point... ;)
The code isn't just for me to read, that's true, but what are the odds that someone is gonna read it, and then screw everything up because they're not aware that this or that method has a public visibility...? Can you give me one real life example of 'wetem' or 'we' ruining somebody's life with a missing keyword...?
I just feel that this issue isn't worth 2 pages of discussion... :whistle:
The code isn't just for me to read, that's true, but what are the odds that someone is gonna read it, and then screw everything up because they're not aware that this or that method has a public visibility...? Can you give me one real life example of 'wetem' or 'we' ruining somebody's life with a missing keyword...?
I just feel that this issue isn't worth 2 pages of discussion... :whistle:
4004
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 23rd, 2012, 09:55 PM »How about C++? Java? Pretty much any C-like language with OO is (and requires) explicit-declaration of scope. It's purely laziness in the half-assed approach PHP had to implementing OO originally. The only other C-like language that doesn't have explicit declaration of OO scope is JavaScript and that's even more insane to debug.
See, a web dev is more likely to use JS and PHP exclusively in their daily work. I don't see it as a problem that visibility is no concern to them...
Heck, even the system object has static variables but doesn't explicitly describe them as public... I'm surprised you didn't change them or something :P
Private methods are not about 'preventing others from accessing their methods and properties', at least not as the end in itself. The point of declaring public/private/protected, is that you get to enforce certain behaviours as well as logical separation.
The idea is that you get to contain behaviour inside a given class. A better example might be the wedit component and subclassing it to implement a different editor (not currently possible, but trivial enough to make possible since it's geared up for it). Some of the stuff in there would be public - the functions called from outside the component, e.g. creating, outputting the editor and buttons. Meanwhile, some stuff you wouldn't change or allow to be changed (preparsecode comes to mind), and some stuff you wouldn't want to expose into the subclasses because they don't apply (some of the tag fixing stuff comes to mind)
I'm just... Well I'm just sayin', I like consistency in our code. I'm okay with our 'areas of interest' using two slightly different ways of coding (yours and mine), I'm less okay with the 'no man's land' being less tightly maintained, and even less okay with having my areas of interest adopt different rules (e.g. public vs no keyword) under my own rule ;)
It's not a matter of whether or not it's "my" code, it's just that when it's code I tend to modify a lot, there are things I like to do my way, and having public keywords just isn't something that I usually do.
4005
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on December 23rd, 2012, 04:07 PM »
Dragooon, can you give me examples of languages similar to PHP that use a private or protected visibility by default...?
Pete, do you mean you're actually agreeing that the public keyword tends to mess things up in Wedge? :P Or did you actually mean that we should review all objects and dedicate ourselves and our days and nights in preventing plugins from accessing most of their variables and methods? :niark:
Pete, do you mean you're actually agreeing that the public keyword tends to mess things up in Wedge? :P Or did you actually mean that we should review all objects and dedicate ourselves and our days and nights in preventing plugins from accessing most of their variables and methods? :niark: