Show Posts

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.

Messages - Arantor
6211
Plugins / [Naming poll] Re: Packages
« on September 29th, 2011, 10:49 PM »
Where is it used without a hyphen in the language files then? Last I saw, any use without a hyphen was internal...
6212
Plugins / [Naming poll] Re: Packages
« on September 29th, 2011, 10:40 PM »
Easy way to do it is to match addon without the hyphen, since any reference without the hyphen can be substituted wholesale (especially if you're going to make it plugins/ rather than Plugins/)
6213
Features / Re: Template skeleton!
« on September 29th, 2011, 10:07 PM »
The name isn't critically important, the idea behind it is. wetem is fine with me, weske reminds me of Hesk which I'd rather not be reminded of, thanks. Ugly ugly ugly.
6214
Features / Re: Template skeleton!
« on September 29th, 2011, 09:34 PM »
Well, not only is it cleaner and 'safer', it is more semantic because you never have to worry about what a random loadBlock function is doing to global variables and it can't be tampered with accidentally by the same.

I'm fine with doing it either way, but if it is going to become wetem, it should be done sooner rather than later, since the last thing I want to have to do is get a publicly-usable release out, ship some add-ons, and have to rejig everything heavily after.
6215
Features / Re: Template skeleton!
« on September 29th, 2011, 08:06 PM »
Heh, I know what you mean!

Objectifying the template skeleton... hmm.

Well, let's say it's wetpl. What does wetpl need to know or keep control of that nothing else should be controlling or dealing with? Seems to me that it needs to be aware of the context vars attached to the skeleton.

So that means we have a class and it has its own variables that are internal. Since we don't want to allow access to any old routine, it'd be a private variable of the class.

We'd then create a function for querying the skeleton, whose purpose, essentially, is to just return that variable. (This is known as a getter, or accessor, method)

Then you'd create functions under the class that essentially do what loadBlock does now, but there's the difference that instead of having to modify $context, when you're inside the function, you also get $this, allowing you to refer to the internal variable(s).

Really, it'd still be basically the same as loadBlock now, except that it would belong solely to wetpl and it would be able to modify the private variables to prevent anything else touching or breaking them, because you're forcing any changes to go through the methods you've given everything else to use.
6216
Features / Re: Template skeleton!
« on September 29th, 2011, 07:52 PM »
In the case of the sidebar, new elements are either going to be before or after existing elements, I just didn't immediately realise that 'before feeds' meant 'last in queue', since I don't really imagine anything adding itself after the feeds block...

Given that, is it worth the extra hassle?
6217
Features / Re: Template skeleton!
« on September 29th, 2011, 07:38 PM »
Would adding the streams provide something that currently can't be done without a lot of work?[1] If not, don't change it.
 1. To me, the answer seems to be no.
6218
Off-topic / Re: 1,000,000 page views
« on September 29th, 2011, 07:36 PM »
Yup, bot visits are taken into account too, and Baidu has been around a lot lately...
6219
Off-topic / 1,000,000 page views
« on September 29th, 2011, 06:03 PM »
Very occasionally, I peruse the stats, and happened to notice that as of today, wedge.org has accumulated 1,002,000 or so page views for 2011. (Compared to 267,000 or so for 2010)

I'm not sure whether there are unseen factors at work (e.g. draft saving comes to mind) but whatever, I think we can safely argue that it's been a busy old year thus far!
6220
Features / Re: Template skeleton!
« on September 29th, 2011, 05:02 PM »
Yea, I had forgotten that.

That could be good, though I'm a little concerned that we're providing too many variations on a theme - though if we can find valid uses where it would achieve the job better than manual juggling or non-obvious uses (like the above example), then we can run with that too.
6221
Plugins / [Naming poll] Re: Packages
« on September 29th, 2011, 04:02 PM »
Go on, then, yo've convinced me to rebadge things as plugins as far as new functions go :P

As long as we get away from 'mods', though.
Quote
PS: add-on might be more 'approachable', but don't forget that the first target for add-ons is *webmasters*, and they're rarely complete noobs
You are kidding, right? A tour of duty in the SMF support boards teaches you that most people running forums are not web masters how you and I would know the definition and most of them, honestly, don't even seem to know how to read instructions first - or, more infamously, will go round, tick boxes in admin, then wonder why it doesn't work how they expected. The number of people who write in with "it was working fine, then I did something and it changed it to <something> and now I don't know how ti fix it", especially with query less URLs (index.php/topic,1.0.html format), or ordering posts to have newest first.

This is why I assume user stupidity first and wait to be convinced otherwise.
6222
Features / Re: Template skeleton!
« on September 29th, 2011, 03:53 PM »
No, I wasn't thinking of 'after feeds' but I could conceive of wanting things below all other content and thus 'above' feeds, and if late injected, it occurred to me that I couldn't necessarily rely on 'above feeds' for that.
6223
Features / Re: Template skeleton!
« on September 29th, 2011, 10:31 AM »
Bump for the above.


Also, is the feed block totally driven by the skeleton now rather than late-injected into the sidebar as it used to be? It just occurs to me that some of the things I want to do may well rely on the feed block of the sidebar for positioning/ordering.
6224
Features / Re: These two bytes may not matter to you...
« on September 29th, 2011, 12:34 AM »
So, what exactly does the function do? If it's purely a count of files, the iterator count is exactly what you want.

glob, btw, is available on every system I've ever seen, and given that it's implemented internally for Windows support, it can be assumed to be available on any platform we'd actively be supporting.

If it's not used in ManageServer (and it was a long shot that it would be used in the lang editor, I wasn't really expecting it to be), then it really can go.

As far as getID3, v1.8.0 is worth doing (PHP 5.3+ compat fixes) but the number of bug fix entries would suggest it's beneficial to get to the current version. I should note that I'm in the same boat with keeping up with Bad Behaviour, and if phpseclib can be minified enough to be included, we'll have it there as well. That said, these things are not updated regularly enough for us to be a problem IMO - but if we get up to date with versions, it should be easier to keep up to date.
6225
Plugins / [Naming poll] Re: Packages
« on September 29th, 2011, 12:24 AM »
I tend to agree about distribution, that the number of people using Wedge, with English being, or not being, first language. I also agree with the logic about users who don't have English as their first language being able to acclimatise to Wedge having 'plugins', especially as other software has it and that it is, therefore, a consistent term - far more than add-on is ever likely to be.

That covers non-English users, but for English-first-language people, add-on might be more logical but plugin is certainly more consistent with other software and as such more likely to be understood by users of other software.

For first time users, though, I'd argue add-on is probably more approachable than plugin, which is why I went with that originally, but all things considered, I think you're probably right to be championing plugin.