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.
1381
Features / Re: Purging users pending approval, and some other stuff
« on March 4th, 2013, 04:21 PM »Does the reagreement appear always when the admin change the terms of use or it's a choice in the admin panel to have this reagreement when there's a change?
1. Change it, don't force users to reagree (thus only new users need to, e.g. a non-consequential edit, e.g. spelling, formatting fixes)
2. Change it, force users to reagree but only if they want to post
3. Change it, force users to reagree and don't let them do anything else
1382
Features / Re: Purging users pending approval, and some other stuff
« on March 4th, 2013, 06:27 AM »
I've been working on the re-agreement part and it's shaping up to be all shiny and awesome.
So far I have it so that it is handling all the registration stuff and jumping around of states properly as far as I can tell, and if the agreement has been updated, it will notify the user.
There's two levels of this, either full or post-only. In the full case, just about everything is locked out until reagreement, in the post only case, only posting is locked out (as screenshot), and a warning is put in the post form and in place of quick reply. Post drafts are also saved in this situation and even should continue to be if there is a full lockout.
PMs are not affected by the post-only mode (in any fashion, there is absolutely no code for it) and should not be affected by the full lock out either - this is to allow users to contact the admin if they need to discuss anything.
I just need to make the admin UI which should be a smallish job tomorrow then I can commit this stuff, yay!
I do also have a few other things I found along the way to commit too ^_^
So far I have it so that it is handling all the registration stuff and jumping around of states properly as far as I can tell, and if the agreement has been updated, it will notify the user.
There's two levels of this, either full or post-only. In the full case, just about everything is locked out until reagreement, in the post only case, only posting is locked out (as screenshot), and a warning is put in the post form and in place of quick reply. Post drafts are also saved in this situation and even should continue to be if there is a full lockout.
PMs are not affected by the post-only mode (in any fashion, there is absolutely no code for it) and should not be affected by the full lock out either - this is to allow users to contact the admin if they need to discuss anything.
I just need to make the admin UI which should be a smallish job tomorrow then I can commit this stuff, yay!
I do also have a few other things I found along the way to commit too ^_^
1383
Features / Maybe it's the rum talking... (language editing for plugins)
« on March 4th, 2013, 02:43 AM »
...but I just had a wicked idea. And this is like da bomb because it solves an awful lot of headaches very quickly.
For most plugins, they'll have their language files and keep them to themselves like good little plugins. But some plugins are not so well behaved because they'll need to load language files in other contexts. Probably the biggest example is menu items.
Now, I want to have a menu editor function in the core - some day - but the biggest problem is handling language items and doubly so for plugins. How can we have them around and loaded, and still do it efficiently?
And it occurred to me... no, I don't mean reinstating that shitfest Modifications.language.php, that shit can remain dead and buried. No, what I had in mind was far more elegant.
Menu items are needed every page, right? That means, essentially, wherever loadLanguage('index') is called, the menu items are needed. So why not have some facility whereby a plugin's language strings can be injected into the database? Obviously I wouldn't be expecting language files to do their own DB inserts, but I'd probably have a facility in the plugin-info.xml that says to load a given language and append it to an existing set of entries. That way if a plugin wants to add a new menu item, it just has to add its language file correctly, the plugin manager kicks it into the DB, recaches etc. and then it's available without having to load an extra file.
Then the menu editor just becomes some juggling of arrays and cache items, plus any other plugin that wants language strings 'everywhere' can just append them where it needs them if that makes sense.
If it doesn't, just prod me in the morning and I'll see if it still makes sense :D
For most plugins, they'll have their language files and keep them to themselves like good little plugins. But some plugins are not so well behaved because they'll need to load language files in other contexts. Probably the biggest example is menu items.
Now, I want to have a menu editor function in the core - some day - but the biggest problem is handling language items and doubly so for plugins. How can we have them around and loaded, and still do it efficiently?
And it occurred to me... no, I don't mean reinstating that shitfest Modifications.language.php, that shit can remain dead and buried. No, what I had in mind was far more elegant.
Menu items are needed every page, right? That means, essentially, wherever loadLanguage('index') is called, the menu items are needed. So why not have some facility whereby a plugin's language strings can be injected into the database? Obviously I wouldn't be expecting language files to do their own DB inserts, but I'd probably have a facility in the plugin-info.xml that says to load a given language and append it to an existing set of entries. That way if a plugin wants to add a new menu item, it just has to add its language file correctly, the plugin manager kicks it into the DB, recaches etc. and then it's available without having to load an extra file.
Then the menu editor just becomes some juggling of arrays and cache items, plus any other plugin that wants language strings 'everywhere' can just append them where it needs them if that makes sense.
If it doesn't, just prod me in the morning and I'll see if it still makes sense :D
1384
Off-topic / Re: Spirate
« on March 3rd, 2013, 10:36 PM »
I find it both ironic and hilarious how the footer is so completely incorrect (the copyright statement is consistent with SMF 2.0 RC2, not 2.0 final or later)
It would appear to be a fork, but I'm not registering just to download it and find out. It's probably not legitimate to SMF's licence either.
It would appear to be a fork, but I'm not registering just to download it and find out. It's probably not legitimate to SMF's licence either.
1385
Development blog / Re: The saga of the Add-on Manager
« on March 2nd, 2013, 05:50 PM »
Maybe. Maybe not. There's no signature, there's an avatar and some other things - these are not things usually added by a would-be spammer.
1386
Development blog / Re: The saga of the Add-on Manager
« on March 2nd, 2013, 04:04 PM »
What question are you trying to ask? Ask it here, then I'll break this into a new thread for you (as here is almost certainly not the right place!)
1387
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 2nd, 2013, 01:16 AM »
u mad, bro? :lol:
1388
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 11:24 PM »
It has been removed from the main menu and will not be reinstated there.
It's just that this site has not yet been updated to the latest SVN revision.
It's just that this site has not yet been updated to the latest SVN revision.
1389
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 08:06 PM »
Yup. There's just too many boards to put into the popup. Hence you'd defer that to a full page.
1390
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 07:52 PM »but I feel the one search does all would be best all around, one simple search field like at the top,
On another note, I think I need to tweak it, I think I accidentally changed its behaviour and not entirely in a good way - when coming from the quick search it'll include all boards, not just the ones you haven't ignored. (This is actually subtly different from old behaviour, but only subtly)
Go to sm.org, to their search page and look at how many boards they have. Now you want to search a couple of boards and only those boards. You can't stick that huuuuuuuuuge list of boards into the popup.
now the thing here that's concerns me is the load factor on the server if a bunch are searching the data base at the same time, but you can do as I've seen be for a limit the amount of search per set time, and now search or controlled search for quest.
The link to the extended or advance search could be place also as a tree link
Do a search. The first link (Search) is the search form with the parameters put in, the second link (Search Results) is a permalink to the search results themselves. How many people knew about this?
1391
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 07:32 PM »If the popup shows up on focus, nothing forces anyone to use it..? Dismissing it (i.e. leaving its options as is) would then perform a regular quick search.
My other objection is a usability one: having stuff hidden away on hover is not entirely usable unless there's a hint to it in some form, like we found with the thoughts menu.
The HTML is pretty close to the Search template's, so we might be able to get away with pushing it to a separate template that we call in both situations
Though my initial thoughts were to just leave the normal search as is and have a link or some-such to go to the advanced search page.
Those users can start their search in the search box (which will STILL work without JS on), then on the next page, they can click the linktree to go back to the full search page... Or whatever suits them.
How many users know that the linktree does that?
1392
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 05:01 PM »
I would rather NOT do away with that. I would rather give the user the choice.
Right now it is the ONLY way to search inside a specific topic.
Right now it is the ONLY way to search inside a specific topic.
1393
The Pub / Re: Language editing inside Wedge
« on March 1st, 2013, 05:00 PM »But apparently, here, it converts them...
When I say Wysiwyg editor, I simply mean post box, with all smileys etc. I don't use Wysiwyg either, as you well know, so I'd hardly enable it by default...
I dunno, maybe having the Master/Current captions in italics, the actual strings in regular, and if the current version is different from master, show it in bold...?
Is there a problem in simply updating the link...?
It's a bit strange to be in a situation where missing strings are again generating errors... :^^;: (e.g. EmailTemplates.)
1394
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 04:46 PM »but it requires refactoring the search template, and I don't really have time for this this week (I think.) (Then again maybe I'll do it in ten minutes..)
1395
Features / Re: Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search
« on March 1st, 2013, 04:33 PM »
Just to clarify, the latest SVN has a popup, which looks like the attached.
I haven't tested on mobile but I can imagine this could cause trouble (since tapping the textbox should give the textbox focus).
I have to admit, I'm not sold on the on-hover aspect from a usability point of view, it's not clear that you have to do it to bring up more complex behaviour, but I could see the advantage if more options were available inline, like XenForo does (though they do it based on focus of the textbox IIRC)
I think I will need to experiment with the search dropdown though, even with this addition.
I haven't tested on mobile but I can imagine this could cause trouble (since tapping the textbox should give the textbox focus).
I have to admit, I'm not sold on the on-hover aspect from a usability point of view, it's not clear that you have to do it to bring up more complex behaviour, but I could see the advantage if more options were available inline, like XenForo does (though they do it based on focus of the textbox IIRC)
I think I will need to experiment with the search dropdown though, even with this addition.