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.
5311
Features / Re: Post moderation
« on November 27th, 2011, 09:49 PM »Anything but SMorgs system please!
The above appeals to me "user made less than x posts"
5312
Features / Re: Post moderation
« on November 27th, 2011, 09:30 PM »
OK, tl:dr version.
SMF's setup is royally broken, it's beyond a nightmare to configure and it's so unintuitive, even meriting the description 'nuclear clusterfuck' though not from me.
My suggestion is that instead of basing on permissions, to base it on rules instead. So that the admin can configure that posts will be moderated if:
* user has made less than x posts
* user is posting in x board(s)
* user has been registered less than a given period of time
* post will be moderated if it contains x words
* post will be moderated if it contains x links
Any or all of the above should be usable, and should be able to be configured with conditions or exceptions, e.g. post will be moderated if the user has < 10 posts OR contains a link, EXCEPT in board x. For example.
The idea is to provide some method for admins to set the rules they want to use and do so without faffing about with different post count groups or permissions or stuff.
(Also, you'll have to excuse me. Me and some people went to an all-you-can-eat Chinese restaurant, and not only did I eat a lot, I had some beer for the first time in a lot of months. I'm a bit squiffy right now.)
SMF's setup is royally broken, it's beyond a nightmare to configure and it's so unintuitive, even meriting the description 'nuclear clusterfuck' though not from me.
My suggestion is that instead of basing on permissions, to base it on rules instead. So that the admin can configure that posts will be moderated if:
* user has made less than x posts
* user is posting in x board(s)
* user has been registered less than a given period of time
* post will be moderated if it contains x words
* post will be moderated if it contains x links
Any or all of the above should be usable, and should be able to be configured with conditions or exceptions, e.g. post will be moderated if the user has < 10 posts OR contains a link, EXCEPT in board x. For example.
The idea is to provide some method for admins to set the rules they want to use and do so without faffing about with different post count groups or permissions or stuff.
(Also, you'll have to excuse me. Me and some people went to an all-you-can-eat Chinese restaurant, and not only did I eat a lot, I had some beer for the first time in a lot of months. I'm a bit squiffy right now.)
5313
Features / Re: Post moderation
« on November 27th, 2011, 06:24 PM »
Bump. Anyone see any problems with this approach, or things I hadn't thought of? Or, even, ideas about how it might look?
5314
Features / Re: Register by invitation only
« on November 27th, 2011, 11:59 AM »
Sounds like perfect material for a plugin, and probably not a hard one to do either.
5316
Plugins / Re: Crazy idea
« on November 26th, 2011, 10:52 AM »
It was just a crazy idea, and I figured it might encourage a bit less going off-site.
5317
Features / Re: Template skeleton!
« on November 26th, 2011, 10:51 AM »Hmm, the only way it could work for me in terms in file naming would be to have a Class or Classes folder with files named 'wedit.php' and such in it.
5318
Features / Re: Template skeleton!
« on November 26th, 2011, 10:32 AM »
For example, if we were to rename Class-Editor.php to Class-wedit, we wouldn't ever need to put a loadSource call in for it again. We could just refer to wedit, and if the class hasn't been already loaded, PHP can load it for us.
Stops you worrying so much about cross-dependencies by encouraging you to split things up and have them loaded on demand.
Mind you, I find it interesting that the general policy of Zend is to break things down to an atomic level; Zend stuff and stuff written to Zend standards generates a *lot* of small files. (xenForo has many 1-2KB source files for example)
Stops you worrying so much about cross-dependencies by encouraging you to split things up and have them loaded on demand.
Mind you, I find it interesting that the general policy of Zend is to break things down to an atomic level; Zend stuff and stuff written to Zend standards generates a *lot* of small files. (xenForo has many 1-2KB source files for example)
5319
Plugins / Crazy idea
« on November 26th, 2011, 02:06 AM »
Was discussing the benefits of using YT embed earlier on another forum and a wacky idea hit me.
Would it be viable/useful/beneficial/interesting to have something that did the equivalent of auto-embed but based on Wikipedia links? So that, for example, if you insert a Wikipedia link, it fetches the - say - first paragraph or so and parses that into a quote with link back to Wikipedia?
Definitely plugin material, of course.
Would it be viable/useful/beneficial/interesting to have something that did the equivalent of auto-embed but based on Wikipedia links? So that, for example, if you insert a Wikipedia link, it fetches the - say - first paragraph or so and parses that into a quote with link back to Wikipedia?
Definitely plugin material, of course.
5320
Features / Re: Extending the postbit/poster info
« on November 26th, 2011, 01:42 AM »
Post and PM are similar, search is pretty unique, recent/unread/unreplies are all similar but they're not similar to search or posts/PMs, and I don't think they should be.
I'm not sure that putting in the user info would make a lot of positive difference in the search or any of the other areas (other than PM)
I'm not sure that putting in the user info would make a lot of positive difference in the search or any of the other areas (other than PM)
5321
Features / Re: Template skeleton!
« on November 26th, 2011, 01:00 AM »
An autoloader is a routine that automatically loads classes that currently don't exist and does so automatically. You give it a routine by which it can load a given class based on the class you call for and it'll automatically load it for you if it doesn't currently exist.
Having something like that can help encourage code to be broken up based on whether it's needed or not.
Having something like that can help encourage code to be broken up based on whether it's needed or not.
5322
Features / Re: Template skeleton!
« on November 25th, 2011, 10:34 PM »Well, we didn't need to 'demonstrate' that things were not ideal. But people don't generally expect free software to live up to commercial software. It takes crazy people like us, or Unknown back in the day, to do just that
I turned down so many things because of that, I understand perfectly... Well, actually I wouldn't be working on Wedge today if I hadn't suddenly started turning down *everything* back in September 2006. It felt like a dull life always working for other people to make money off my stuff... Even if I did make a decent share, too. Anyway...
And again, I'm positive that showing a sidebar block inside the default layer can work if done properly.
But that's top level categories only and they might be expecting a ~220px wide column and do complicated things with floats and wrapping and so on that won't work on a bigger scale.
In that case, the compromise is to allow for both; if the developer knows in advance that it's going to work OK falling back to default, let them specify it, but if not, have the return value to accommodate it (which means they can dynamically do their own thing if they choose)
It's only invoked when Wedge actually needs to cache a CSS file. Otherwise it's not run at all, that is, 99% of the time...
5323
Features / Re: Extending the postbit/poster info
« on November 25th, 2011, 10:22 PM »
Here's the thing. There isn't a common layout at present, and I'm not sure that's necessarily a bad thing.
Right now the post and PM layout is similar, but not identical (even in terms of the icons shown etc., e.g. the send PM icon and IP address aren't shown), but all the other places where posts are shown (notably search, recent, unread, unreadreplies) do not have much common ground at all...
Right now the post and PM layout is similar, but not identical (even in terms of the icons shown etc., e.g. the send PM icon and IP address aren't shown), but all the other places where posts are shown (notably search, recent, unread, unreadreplies) do not have much common ground at all...
5324
Features / Re: Extending the postbit/poster info
« on November 25th, 2011, 09:07 PM »
Depends what you're trying to do, really, I was more interested in allowing plugins to cleanly extend or alter the list of items, rather than customising it, but appropriate CSS would make a lot of difference.
5325
Features / Re: Extending the postbit/poster info
« on November 25th, 2011, 07:42 PM »
And I'd rather not screw performance up...
No, I don't think the skeleton approach is the right one for this. The problem isn't that building the array of the skeleton is intensive, because it isn't - it's at worst a different array and function call per post, but I don't feel it's the way to go.
What is closest to how we do things is to build the list of items in $context, which will be a list of items in memberContext for each user (provided it's populated by lMD and lMC, it's in memberContext) then the template can just iterate through it.
It's still ugly but it's not the performance killer it could be.
No, I don't think the skeleton approach is the right one for this. The problem isn't that building the array of the skeleton is intensive, because it isn't - it's at worst a different array and function call per post, but I don't feel it's the way to go.
What is closest to how we do things is to build the list of items in $context, which will be a list of items in memberContext for each user (provided it's populated by lMD and lMC, it's in memberContext) then the template can just iterate through it.
It's still ugly but it's not the performance killer it could be.