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.
4486
Plugins / Re: Mad idea but it might just work
« on March 7th, 2012, 07:26 PM »
In your case, you'd use exactly the same process. The only time for using it yourself is if you run a local test server that doesn't have FTP or SFTP on it.
And while I understand your concern about it being two different processes, it really isn't, the actual install doesn't happen till you hit the enable button, so it really is automating the upload process that we're talking about here.
And while I understand your concern about it being two different processes, it really isn't, the actual install doesn't happen till you hit the enable button, so it really is automating the upload process that we're talking about here.
4487
Plugins / Re: Mad idea but it might just work
« on March 7th, 2012, 06:57 PM »
OK, here's the deal, if the server has it writable already, there is a security issue. No ifs, buts or maybes, you have a security risk. On a local test site, it doesn't matter, because only you have access to the machine.
But on a public server with multiple users (or multiple, but separated sites), that's a risk. Why do so many people complain on sm.org about being hacked? Because their forum is mostly left writable.
By forcing it to go through an FTP tunnel, you don't ever change permissions, you don't ever make the files owned by the webserver (which is almost as insecure) and you don't have to contend with chmod. At all.
The downside is that forthe cases where you don't care about the risk, the convenience can't be given, because users who don't know what they're doing will blindly reconfigure it, on receipt of bad advice, and proceed to repeat that bad advice. So many people at sm.org simply do not understand the consequences of what they're suggesting.
For test sites, sure, you can't magic upload, but you can just unpack the zip directly into Plugins/. There's nothing more the uploader needs to do, other than literally unpack the files, no install process, no testing (that all happens prior to enable)
But on a public server with multiple users (or multiple, but separated sites), that's a risk. Why do so many people complain on sm.org about being hacked? Because their forum is mostly left writable.
By forcing it to go through an FTP tunnel, you don't ever change permissions, you don't ever make the files owned by the webserver (which is almost as insecure) and you don't have to contend with chmod. At all.
The downside is that forthe cases where you don't care about the risk, the convenience can't be given, because users who don't know what they're doing will blindly reconfigure it, on receipt of bad advice, and proceed to repeat that bad advice. So many people at sm.org simply do not understand the consequences of what they're suggesting.
For test sites, sure, you can't magic upload, but you can just unpack the zip directly into Plugins/. There's nothing more the uploader needs to do, other than literally unpack the files, no install process, no testing (that all happens prior to enable)
4488
Plugins / Re: Mad idea but it might just work
« on March 7th, 2012, 06:43 PM »4489
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 05:54 PM »
Don't call him Shirley ;)
4490
Plugins / Mad idea but it might just work
« on March 7th, 2012, 05:54 PM »
OK, so I've been trying to figure out how to cope with this. One of the biggest problems with SMF's environment is that it makes your files writable by everything, essentially. You have to make your site vulnerable on shared hosting in order to upload and install mods - even pure hooks ones.
In our case, there's no file edits at all. But there's still the upload problem: you have to write something to the relevant folder. Which means that folder has to be writable by the webserver.
So, I tried a different tact, what if through some process, we no longer required write access to that folder, but that we could delegate it off to something which did? Or, as I call it, you upload the plugin file, it goes into the system temp folder (where all uploaded files go), where it's unpacked.
Here's the trick: instead of uploading it into a physical folder or something like SMF does, we unpack it serially (going through the archive file by file), push the file to temp, then we send it via FTP from our script to the server. It's seemingly stupid but I see no reason why it won't work, other than the mechanics are a PITA.
Doing that means you don't have to make the folder writable or indeed do anything to it, essentially it's being uploaded to by you (and thus OWNED by you) just as if you uploaded it yourself. No changing permissions, no changing them back.
The caveat is that I would remove direct local filesystem support. This would make for a slight inconvenience on test forums/localhost where FTP isn't configured, because it would mean there would be no facility for uploading as SMF currently does. But the price paid in convenience is security: if you don't ever have direct filesystem support, there's no need to screw around with making things 777 (and hopefully that plague of bad advice will not follow us here), and it's not like you can't just unpack it and upload it yourself.
I have the uncomfortable feeling it would pretty much demand .zip support because the contents of /tmp are intentionally unstable and I'm not sure how comfortable I am with unpacking a .tar.gz in /tmp and expecting it all to be there after (as opposed to .zip which can be handled a file at a time)
So, thoughts? Concerns? Questions? Anything that didn't make sense and people would prefer I explained it in actual English?
In our case, there's no file edits at all. But there's still the upload problem: you have to write something to the relevant folder. Which means that folder has to be writable by the webserver.
So, I tried a different tact, what if through some process, we no longer required write access to that folder, but that we could delegate it off to something which did? Or, as I call it, you upload the plugin file, it goes into the system temp folder (where all uploaded files go), where it's unpacked.
Here's the trick: instead of uploading it into a physical folder or something like SMF does, we unpack it serially (going through the archive file by file), push the file to temp, then we send it via FTP from our script to the server. It's seemingly stupid but I see no reason why it won't work, other than the mechanics are a PITA.
Doing that means you don't have to make the folder writable or indeed do anything to it, essentially it's being uploaded to by you (and thus OWNED by you) just as if you uploaded it yourself. No changing permissions, no changing them back.
The caveat is that I would remove direct local filesystem support. This would make for a slight inconvenience on test forums/localhost where FTP isn't configured, because it would mean there would be no facility for uploading as SMF currently does. But the price paid in convenience is security: if you don't ever have direct filesystem support, there's no need to screw around with making things 777 (and hopefully that plague of bad advice will not follow us here), and it's not like you can't just unpack it and upload it yourself.
I have the uncomfortable feeling it would pretty much demand .zip support because the contents of /tmp are intentionally unstable and I'm not sure how comfortable I am with unpacking a .tar.gz in /tmp and expecting it all to be there after (as opposed to .zip which can be handled a file at a time)
So, thoughts? Concerns? Questions? Anything that didn't make sense and people would prefer I explained it in actual English?
4491
The Pub / Re: Logo Madness
« on March 7th, 2012, 04:23 PM »
It's only in use on smcore.org because the Citiez theme uses it - not because it was smCore's customisation of that theme.
It's a nice enough logo, I guess, but I'm just left with a slightly 'bland' feeling about it :( (Probably not what you wanted to hear.)
I'm actually comfortable enough with the logo currently in use (non hovered) here on wedge.org as it is, don't really feel a need to change it.
It's a nice enough logo, I guess, but I'm just left with a slightly 'bland' feeling about it :( (Probably not what you wanted to hear.)
I'm actually comfortable enough with the logo currently in use (non hovered) here on wedge.org as it is, don't really feel a need to change it.
4492
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 03:23 PM »Sorry, I didnt think too much about what you were saying, did I?
4493
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 03:17 PM »Why would anyone want to scroll through old posts to get to the newest?
In normal thread view, you get oldest to newest by default... and have done for years in SMF. I find that much easier to follow so that you have the conversation top to bottom in chronological order.
4494
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 03:12 PM »
It'll be when it's ready but I'm increasingly getting a nagging feeling that it needs to perhaps be sooner rather than later if only because I'm finding it harder and harder to make more objective choices about things like this.
4495
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 03:00 PM »
Yeah, yeah, I know :P I didn't want to tackle everything at once :P
I have some ideas on improving the others too, as it happens... for example converting 'show most recent at top', why not 'order of posts' being a select box of 'newest first' / 'oldest first'?
I have some ideas on improving the others too, as it happens... for example converting 'show most recent at top', why not 'order of posts' being a select box of 'newest first' / 'oldest first'?
4496
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 02:51 PM »but I don't want you not to not think I don't think semantics are unimportant because I don't not
how about 2 tabs
There is also the concept of chained actions, if you think about it. You might want to set the defaults when starting out, but it's also quite likely that later on you're going to want to reset the default and reset everyone to that default when you do change, much as you might do with themes. In that case, having the two together is sensible.
Posted: March 7th, 2012, 02:44 PM
OK, here's an updated screenshot. Even just having the breaks visibly improves things to me.
Posted: March 7th, 2012, 02:47 PM
I do also get the feeling to a point that this is one of the things that looks horrible but isn't so bad once you actually get using it.
Perhaps we should bench this one for now in UI terms (though not the wording changes, haha) and come back to it when Wedge is publicly accessible in some fashion so that you can actually try it out yourself and let me know how it feels to actually use - right now I'm probably the only person that's used this.
4497
Off-topic / Re: How ported from SMF+Aeva+TP?
« on March 7th, 2012, 02:50 PM »
Yup, I'm also looking forward to seeing it :)
That's the curse of having active development, is that things can and will change, and it can be pretty frustrating to try and keep up with that.
That's the curse of having active development, is that things can and will change, and it can be pretty frustrating to try and keep up with that.
4498
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 02:33 PM »
The semantics explain why it's easier to read the positive assertions ;)
Anyway, the first two of these are now done, and as we go forward hopefully we can keep things positive ;)
Posted: March 7th, 2012, 02:15 PM
Anyway, the first two of these are now done, and as we go forward hopefully we can keep things positive ;)
4499
Features / Re: New revs
« on March 7th, 2012, 02:33 PM »
(7 files, 2KB)
Revision: 1445
Author: arantor
Date: 07 March 2012 13:32:18
Message:
! Convert 'don't show avatars' and 'don't show signatures' to 'show avatars' and 'show signatures'. Incidentally also fixed the fact the hide avatars option didn't actually work due to not having certain things in scope. I even attempted French translation, should be OK, at least Google Translate says it's OK. (install.sql, ManageMemberOptions.php, Display.template.php, PersonalMessage.template.php, Profile.template.php, Profile language file)
----
Modified : /trunk/Sources/ManageMemberOptions.php
Modified : /trunk/Themes/default/Display.template.php
Modified : /trunk/Themes/default/PersonalMessage.template.php
Modified : /trunk/Themes/default/Profile.template.php
Modified : /trunk/Themes/default/languages/Profile.english.php
Modified : /trunk/Themes/default/languages/Profile.french.php
Modified : /trunk/other/install.sql
@ Spent more time chasing down the stupid bug as to why show_avatars didn't work than I spent on the rest of the changes in this commit, oops.
@ Oops also, I thought I'd updated Profile.template.php somewhere for one of these edits, but I didn't. Instead it's actually to fix a bug in the issue-warning screen where the selectbox wouldn't become enabled when selecting the send message checkbox.
Revision: 1445
Author: arantor
Date: 07 March 2012 13:32:18
Message:
! Convert 'don't show avatars' and 'don't show signatures' to 'show avatars' and 'show signatures'. Incidentally also fixed the fact the hide avatars option didn't actually work due to not having certain things in scope. I even attempted French translation, should be OK, at least Google Translate says it's OK. (install.sql, ManageMemberOptions.php, Display.template.php, PersonalMessage.template.php, Profile.template.php, Profile language file)
----
Modified : /trunk/Sources/ManageMemberOptions.php
Modified : /trunk/Themes/default/Display.template.php
Modified : /trunk/Themes/default/PersonalMessage.template.php
Modified : /trunk/Themes/default/Profile.template.php
Modified : /trunk/Themes/default/languages/Profile.english.php
Modified : /trunk/Themes/default/languages/Profile.french.php
Modified : /trunk/other/install.sql
@ Spent more time chasing down the stupid bug as to why show_avatars didn't work than I spent on the rest of the changes in this commit, oops.
@ Oops also, I thought I'd updated Profile.template.php somewhere for one of these edits, but I didn't. Instead it's actually to fix a bug in the issue-warning screen where the selectbox wouldn't become enabled when selecting the send message checkbox.
4500
Features / Re: Unfinished, quite raw, would like some feedback
« on March 7th, 2012, 01:57 PM »Do you really think admins are going to question the semantics of this?
End of the day, it's something that's been brought to my attention through whatever means and I don't like it!
I've already changed show_no_signatures to show_signatures (yes, everywhere in the code, hell I even made what I think is a half way decent attempt to fix the French translation) (This took about 5 minutes, and had I just been bold enough to do it, I would have done it already and the argument would have been moot anyway :P)