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.
6241
Features / Re: New revs - Public comments
« on September 27th, 2011, 07:31 PM »
But you said you hated the hyphen, so remove it :P
At this point I'm beyond worrying about what it's called and concentrating on making it work and work well. Perhaps we should put in a poll for plugin, add-on and Wedget or Wedgelet, and disallow mod because it implies modifying files, which add-ons shouldn't generally be doing.
At this point I'm beyond worrying about what it's called and concentrating on making it work and work well. Perhaps we should put in a poll for plugin, add-on and Wedget or Wedgelet, and disallow mod because it implies modifying files, which add-ons shouldn't generally be doing.
6242
Plugins / Re: Hooking up data loading
« on September 27th, 2011, 06:56 PM »
Exactly, I'm expecting that to be the case most of the time, but for the occasions it isn't, having a getter to see what's been added would be useful. Not sure a setter is needed though.
6243
Features / Re: New revs - Public comments
« on September 27th, 2011, 06:54 PM »
The whole cit-needed was simply to indicate that it was Wikipedia not WordPress ;) I guess I'm thinking of meta things right now (it's all Dr Who's fault with the finale this weekend!)
I'm fine with renaming it to addon (instead of add-on, even though my autocorrect hates it)
I'm fine with renaming it to addon (instead of add-on, even though my autocorrect hates it)
6244
Features / Re: New revs - Public comments
« on September 27th, 2011, 06:26 PM »I liked it because it allowed me to have multilingual welcome messages in the media area without the chance of them being removed with an upgrade
As for $can_use, you're probably right.
And really, if you do want to rename it, just do it! :P As per WP:BOLD, and not even with a [citation needed] in sight :P
6245
Features / Re: New revs - Public comments
« on September 27th, 2011, 06:19 PM »* Arantor says a rude word.
6246
Features / Re: New revs - Public comments
« on September 27th, 2011, 06:09 PM »
The idea was to parse the post then cache it, which seemed more logical to me than force whatever changes there were every time. In the case which prompted that, the hook makes DB queries.
Yes, it should be $s not $d, oops.
Fairly sure I just reused the same language string there, out of laziness. The whole disable/remove part is distinctly less polished.
I changed the mention because it referenced Modifications.english.php which doesn't exist now.
They're addon-item which derives from admin-item which is used in the main menu, and should be defined as inline block. The idea is that they're inline, but the entire container is right aligned, so the container is floated right, but I found the only way to make then work properly was to do it how I did it; if one item has 3 buttons and another only has 2, that item will have a space to the right so enable/disable buttons always line up.[nb]Though in hindsight, it's only ever going to be 1 icon or 2, not 2 or 3, because the combinations are (do-enable + remove, or do-disable + optional settings)
I'm no template designer :P
Re PHP 5.4 stuff, I read it as break x being broken, not break $var but it's easily possible that I misread it.
I must have missed the use of plugin at the time but it was quite late at night :P And $can_use... pass, can't remember, sorry.
Yes, it should be $s not $d, oops.
Fairly sure I just reused the same language string there, out of laziness. The whole disable/remove part is distinctly less polished.
I changed the mention because it referenced Modifications.english.php which doesn't exist now.
They're addon-item which derives from admin-item which is used in the main menu, and should be defined as inline block. The idea is that they're inline, but the entire container is right aligned, so the container is floated right, but I found the only way to make then work properly was to do it how I did it; if one item has 3 buttons and another only has 2, that item will have a space to the right so enable/disable buttons always line up.[nb]Though in hindsight, it's only ever going to be 1 icon or 2, not 2 or 3, because the combinations are (do-enable + remove, or do-disable + optional settings)
I'm no template designer :P
Re PHP 5.4 stuff, I read it as break x being broken, not break $var but it's easily possible that I misread it.
I must have missed the use of plugin at the time but it was quite late at night :P And $can_use... pass, can't remember, sorry.
6247
Features / Re: New revs - Public comments
« on September 27th, 2011, 05:40 PM »
Yeah, I am aware of that code, and as the rest of the add-on system is implemented, that'll be phased out in stages (along with Packages and Subs-Packages)
6248
Plugins / Re: Hooking up data loading
« on September 27th, 2011, 01:54 PM »
I honestly wouldn't sweat too much. Make the information available to add-on devs, from the query object instance, in some fashion. If they want to check, that's up to them, if they don't, again that's up to them.
What I'd imagine is that very often the joins that are already in place will suffice, and that add-on authors will avoid extra joins if necessary. I'm not bothered with trying to hold the authors' hands too much, but provide them the tools to avoid problems, I can't make them use those tools.
What I'd imagine is that very often the joins that are already in place will suffice, and that add-on authors will avoid extra joins if necessary. I'm not bothered with trying to hold the authors' hands too much, but provide them the tools to avoid problems, I can't make them use those tools.
6249
Plugins / Re: Hooking up data loading
« on September 27th, 2011, 01:33 PM »
Multi binding is likely to occur betweeen multiple add-ons that use the same hook - not one on its own vs Wedge, so I doubt the dev would see it until real users had issues.
Is there a way in the hook to examine the things already attached to the query? If so, an add-on dev can examine what's there and add it if not already present, or reuse what is there if they so choose.
Is there a way in the hook to examine the things already attached to the query? If so, an add-on dev can examine what's there and add it if not already present, or reuse what is there if they so choose.
6250
Plugins / Re: Hooking up data loading
« on September 27th, 2011, 12:55 PM »
Looks good to me :) I can conceive of some nasty situations with this, though, most notably about multi binding the same table unnecessarily.
For any given query, if a table is joined, two things could occur. Firstly, it's possible that users join the same table (with the same criteria) multiple times, especially if the list of tables isn't available to the binding method (can't see right now), since I'm not 100% clear how MySQL will optimise that case.
Worse, someone rebinds a table with an existing alias but with different criteria, e.g. INNER JOIN table2 AS t2 ON (t1.id = t2.id) INNER JOIN table2 AS t2 ON (t2.id = t3.id)
Just as a note to readers: this process will not be necessary on every query and unless you want to make queries hook able (or are using hook able queries), you won't need to worry about this and can just use the standard method.
For any given query, if a table is joined, two things could occur. Firstly, it's possible that users join the same table (with the same criteria) multiple times, especially if the list of tables isn't available to the binding method (can't see right now), since I'm not 100% clear how MySQL will optimise that case.
Worse, someone rebinds a table with an existing alias but with different criteria, e.g. INNER JOIN table2 AS t2 ON (t1.id = t2.id) INNER JOIN table2 AS t2 ON (t2.id = t3.id)
Just as a note to readers: this process will not be necessary on every query and unless you want to make queries hook able (or are using hook able queries), you won't need to worry about this and can just use the standard method.
6251
Plugins / Re: Hooking up data loading
« on September 27th, 2011, 12:37 AM »
You did get some coders just porting their mods by just converting db_query calls to $smcFunc calls, which is lazy and avoids making use of the facilities and the purpose for which they were designed.
Still, I'm comfortable with having differences, hopefully it means we can encourage good coding.
Still, I'm comfortable with having differences, hopefully it means we can encourage good coding.
6253
Development blog / Re: The saga of the Add-on Manager
« on September 26th, 2011, 05:53 PM »
I don't know if he left or is simply busy, but whatever, he made a valid argument that I saw the wisdom of, and wanted to account for. I still think the majority of the time, it's not going to be a problem because I think the warning I have yet to place on it will put people off using it :niark:
Dragooon's been looking over how to make queries extensible (which I'm loving, by the way) and my next task is how to make permissions work so that you can handle files and delete them without the usual faff associated with it.
I am hoping, though not sure I'll be able to pull it off yet, that you'll be able to use not only FTP but also SSH to log in and perform changes (that you just give it your details and it'll do the rest, and reinstate the original permissions so that you don't get left open accidentally, even with just uploading add-ons)
Honestly, though, the whole mentality behind what I'm pushing here is keeping it straightforward enough to be usable and that users can feel comfortable about doing it - most users will not care what files are being edited unless they have to do it themselves.
Dragooon's been looking over how to make queries extensible (which I'm loving, by the way) and my next task is how to make permissions work so that you can handle files and delete them without the usual faff associated with it.
I am hoping, though not sure I'll be able to pull it off yet, that you'll be able to use not only FTP but also SSH to log in and perform changes (that you just give it your details and it'll do the rest, and reinstate the original permissions so that you don't get left open accidentally, even with just uploading add-ons)
Honestly, though, the whole mentality behind what I'm pushing here is keeping it straightforward enough to be usable and that users can feel comfortable about doing it - most users will not care what files are being edited unless they have to do it themselves.
6254
Features / Re: Standardization of UI elements
« on September 26th, 2011, 05:30 PM »
The post page is not the most extreme example I had in mind and it should be possible to do fairly easily - I'm just thinking of other examples that are less obvious, like the quick moderation ones that are designed to be subtle and out of the way that I see as being a problem.
But yes, per class would be nicer and more extensible in the long run. It is something I gave thought to but have had greater priorities of recent times :(
But yes, per class would be nicer and more extensible in the long run. It is something I gave thought to but have had greater priorities of recent times :(
6255
Features / Re: Standardization of UI elements
« on September 26th, 2011, 04:25 PM »
Yup.
There's two routes in my head. Firstly, you create each possible form element as a class (wefrm_checkbox for example), and have the default rendering in that, or you create a GenericForm template that has a function for each type of element, for its default rendering.
I don't really see many themes actually changing that but if it's done appropriately with CSS it shouldn't be a problem - and it's not as if a page expressly has to use that (cf Post page, Display's quick reply, quick moderation, these are all forms I might validate with the generic handler but not use it for rendering)
There's two routes in my head. Firstly, you create each possible form element as a class (wefrm_checkbox for example), and have the default rendering in that, or you create a GenericForm template that has a function for each type of element, for its default rendering.
I don't really see many themes actually changing that but if it's done appropriately with CSS it shouldn't be a problem - and it's not as if a page expressly has to use that (cf Post page, Display's quick reply, quick moderation, these are all forms I might validate with the generic handler but not use it for rendering)