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.
8026
Features / Re: New revs
« on February 13th, 2011, 07:36 PM »
Revision: 588
Author: arantor
Date: 18:35:49, 13 February 2011
Message:
! Preliminary IPv6 support (lots of files)
! Minor tweaks to installer to prevent throwing of errors over SMF constant. This needs cleanup though. (install.php)
@todo:
Profile IP tracking stuff is still broken
Bans also broken (which likely means non admin users are also broken for now)
match_cidr() needs updating
host_from_ip() needs testing for IPv6
Proxy code needs rewriting, it's just commented out for now but it was actually broken before
When I say it's preliminary support, I mean just that - it doesn't immediately fall over, but it's going to be fragile for now. There's also likely stuff I've forgotten for now, but I think I got the major stuff either resolved or at least 'known'. (And some would love to add IPv6 support as a mod...? Sigh.)
----
Modified : /trunk/Sources/Display.php
Modified : /trunk/Sources/Errors.php
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/ManageBans.php
Modified : /trunk/Sources/ManageErrors.php
Modified : /trunk/Sources/ManageMembers.php
Modified : /trunk/Sources/ModerationCenter.php
Modified : /trunk/Sources/Modlog.php
Modified : /trunk/Sources/Profile-Modify.php
Modified : /trunk/Sources/Profile-View.php
Modified : /trunk/Sources/Profile.php
Modified : /trunk/Sources/QueryString.php
Modified : /trunk/Sources/Reporttm.php
Modified : /trunk/Sources/Security.php
Modified : /trunk/Sources/Subs-Membergroups.php
Modified : /trunk/Sources/Subs-Members.php
Modified : /trunk/Sources/Subs-Post.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/Sources/Who.php
Modified : /trunk/Themes/default/Errors.template.php
Modified : /trunk/other/install.php
Modified : /trunk/other/install.sql
Author: arantor
Date: 18:35:49, 13 February 2011
Message:
! Preliminary IPv6 support (lots of files)
! Minor tweaks to installer to prevent throwing of errors over SMF constant. This needs cleanup though. (install.php)
@todo:
Profile IP tracking stuff is still broken
Bans also broken (which likely means non admin users are also broken for now)
match_cidr() needs updating
host_from_ip() needs testing for IPv6
Proxy code needs rewriting, it's just commented out for now but it was actually broken before
When I say it's preliminary support, I mean just that - it doesn't immediately fall over, but it's going to be fragile for now. There's also likely stuff I've forgotten for now, but I think I got the major stuff either resolved or at least 'known'. (And some would love to add IPv6 support as a mod...? Sigh.)
----
Modified : /trunk/Sources/Display.php
Modified : /trunk/Sources/Errors.php
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/ManageBans.php
Modified : /trunk/Sources/ManageErrors.php
Modified : /trunk/Sources/ManageMembers.php
Modified : /trunk/Sources/ModerationCenter.php
Modified : /trunk/Sources/Modlog.php
Modified : /trunk/Sources/Profile-Modify.php
Modified : /trunk/Sources/Profile-View.php
Modified : /trunk/Sources/Profile.php
Modified : /trunk/Sources/QueryString.php
Modified : /trunk/Sources/Reporttm.php
Modified : /trunk/Sources/Security.php
Modified : /trunk/Sources/Subs-Membergroups.php
Modified : /trunk/Sources/Subs-Members.php
Modified : /trunk/Sources/Subs-Post.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/Sources/Who.php
Modified : /trunk/Themes/default/Errors.template.php
Modified : /trunk/other/install.php
Modified : /trunk/other/install.sql
8027
Off-topic / Re: Restoring my love with iDevices
« on February 10th, 2011, 12:26 PM »
It is, but I've come to really love it in the last couple of days.
8028
Off-topic / Re: Restoring my love with iDevices
« on February 10th, 2011, 12:23 PM »
I honestly have no idea :/
Scrabble is good, Bookworm is good too (as is Bookworm Adventures)
Just checked, the iPad version does not seem compatible with the iPhone version for multiplayer.
Scrabble is good, Bookworm is good too (as is Bookworm Adventures)
Posted: February 10th, 2011, 12:08 PM
Just checked, the iPad version does not seem compatible with the iPhone version for multiplayer.
8029
Off-topic / Re: Restoring my love with iDevices
« on February 10th, 2011, 11:58 AM »
Thanks, but I'll grab it myself shortly as part of a bunch of apps I want to get off iTunes. (Just that due to a screw-up at my bank, I'm not able to use my card that's on the account and when it's reactivated I have several things already to purchase)
8030
Off-topic / Re: Restoring my love with iDevices
« on February 10th, 2011, 11:54 AM »
I might have to get that, it looks fun.
8031
Features / Re: New revs
« on February 8th, 2011, 04:57 PM »
Revision: 574
Author: arantor
Date: 15:56:48, 08 February 2011
Message:
! Tweak to licence wording for our protection (license.txt)
! Sync to SMF 10446 aka "Clusterfuck"
! (10404) Minor improvements to integration hooks. (Admin.php, Load.php, ManagePermissions.php, ManageSettings.php)
! (10405) [2.1] Added detection for Litespeed as part of the server config. (Load.php)
! (10408) Tabs within code tags were not parsed correctly for some browsers. (Subs.php) [Bug 4578]
! (10414) Validate odd URLs (QueryString, Subs.php) *See notes
! (10415) Oops. Remove completely incorrect protection against $cachedir removal. (upgrade.php)
! (10419) Update the change in 10414, so that password flood is validated regardless of the number of times before it. (Load.php)
! (10439) Save a query on posting (topic=161621) (Post2.php)
! (10441) [2.1] Don't log robot views on topics or attachments. (Display.php, Dlattach.php)
! (10442) sprintf call for support resources language string was overridden. (Admin.php)
Not implemented
* r10406 [2.1] Moves the admin helper functions out of ManageServer and into Admin. I'll be doing this in the rewrite (I'm not so bothered about syncing 2.1 changes back to us and there are potential licence issues anyway with just using 2.1 branch code). There is also a tweak to allow for $context['body_id'] to be defined and if defined, attach that id to the body tag. I left it off because I'm not really sure where this would actually be useful. There is also a lot of changes for the language editor from/to display sanitising but I have absolutely no idea why it's changed (since it's not referred to at all anywhere I can find)
* r10407 [2.1] parsesmileys() created a regex too complex - I'm sure this has consequences I don't like, while it has performance, it's also more naive in how it approaches things I think (it's discussed in the beta board, and Unknown was trying to talk groundup out of it more than once) and it's more == to === conversions to safely ignore.
* r10409-10413 Minor fixes (1.0 SSI, 1.0 patch file, 1.1 spacinazi, 1.1 SSI, 1.1 patch file)
* r10416 Changelog update
* r10417 The change in 10414 to sanitise $_REQUEST['start'], I already added the check that this rev adds (that $_REQUEST['start'] is defined before trying to (int) it)
* r10418 Changing the SSI security thing AGAIN (in line with what 10409-10413 did, basically to ensure that the kickguest only got called when appropriate, but we don't kick the guest to login anyway, we do what makes more sense in the first place: restrict the user's access in SSI so they can't see anything they're not supposed to and let the folks who use SSI figure out what they want to do with the user thereafter)
* r10420-10437, 10443-446 Updating 2.0 patch file, spacinazi and patch file, 10414's fix backported to 1.0, and for 1.1, file versions for both, 1.0 patch file, 1.1 patch file, 1.0 cleanup, 1.0 patch file, 1.1 file version typo, 1.1 spacinazi, CRLF issues, more CRLF issues, 1.1 patch file, 1.0 language file version, 1.1 SSI examples, 2.0 patch file, update to manual to match the trademark slogan of SMF, 1.1 language file version, 1.0 patch file, 1.1 patch file, 2.0 patch file
* r10438 [2.1] Caching members online stats is fine but I don't like the way it's done (should really be done differently all round), and also more == to === changes
* r10440 [2.1] Moving a function from Subs-Auth to Subs-Compat is great but it's not relevant to us since it's in 4.3.2 and up!
Notes
* r10404 Sinan also added a hook to ManageSettings.php for general mod settings but that was already added by Nao under a slightly different name. In SVN log: [SiNaN] knows that he'll be shot for doing this but he still has the heart of a modder.
* r10405 [2.1] also covers making queryless URLs work on Litespeed but that doesn't apply to us. There's also a removal of a @ error suppressor in the install file and a few == to === conversions. Really though, this is pure pedantry.
* r10408 implements it with browser conditions in the definition of $tag['content'] in the original array. Since that's not an option for us, I handled it inside the validate function. I did also fix the rather frustrating issue of IE not putting treating br tags as line breaks for copying, this is something they haven't.
* r10414 is a strange one. I'll buy validation of the URLs to prevent oddities (QueryString, Subs) but it also has two other changes: it removes the char 38 replacement in un_preparsecode, which seems to be OK because & is still escaped to its entity form (though I don't see what prompted it to be changed) and there is more robust checking of password flooding, specifically that a user isn't logged out when there's a password attack.
* r10439 The idea is to move the 'logging boards read', so that if goback is set, we fold that into the 'logging unread' process. Their method involves having an if and two queries' code, mine just manipulates the query variables, heh.
----
Modified : /trunk/Sources/Admin.php
Modified : /trunk/Sources/Class-Editor.php
Modified : /trunk/Sources/Display.php
Modified : /trunk/Sources/Dlattach.php
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/ManagePermissions.php
Modified : /trunk/Sources/ManageSettings.php
Modified : /trunk/Sources/Post2.php
Modified : /trunk/Sources/QueryString.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/license.txt
Modified : /trunk/other/install.sql
Modified : /trunk/other/upgrade.php
Author: arantor
Date: 15:56:48, 08 February 2011
Message:
! Tweak to licence wording for our protection (license.txt)
! Sync to SMF 10446 aka "Clusterfuck"
! (10404) Minor improvements to integration hooks. (Admin.php, Load.php, ManagePermissions.php, ManageSettings.php)
! (10405) [2.1] Added detection for Litespeed as part of the server config. (Load.php)
! (10408) Tabs within code tags were not parsed correctly for some browsers. (Subs.php) [Bug 4578]
! (10414) Validate odd URLs (QueryString, Subs.php) *See notes
! (10415) Oops. Remove completely incorrect protection against $cachedir removal. (upgrade.php)
! (10419) Update the change in 10414, so that password flood is validated regardless of the number of times before it. (Load.php)
! (10439) Save a query on posting (topic=161621) (Post2.php)
! (10441) [2.1] Don't log robot views on topics or attachments. (Display.php, Dlattach.php)
! (10442) sprintf call for support resources language string was overridden. (Admin.php)
Not implemented
* r10406 [2.1] Moves the admin helper functions out of ManageServer and into Admin. I'll be doing this in the rewrite (I'm not so bothered about syncing 2.1 changes back to us and there are potential licence issues anyway with just using 2.1 branch code). There is also a tweak to allow for $context['body_id'] to be defined and if defined, attach that id to the body tag. I left it off because I'm not really sure where this would actually be useful. There is also a lot of changes for the language editor from/to display sanitising but I have absolutely no idea why it's changed (since it's not referred to at all anywhere I can find)
* r10407 [2.1] parsesmileys() created a regex too complex - I'm sure this has consequences I don't like, while it has performance, it's also more naive in how it approaches things I think (it's discussed in the beta board, and Unknown was trying to talk groundup out of it more than once) and it's more == to === conversions to safely ignore.
* r10409-10413 Minor fixes (1.0 SSI, 1.0 patch file, 1.1 spacinazi, 1.1 SSI, 1.1 patch file)
* r10416 Changelog update
* r10417 The change in 10414 to sanitise $_REQUEST['start'], I already added the check that this rev adds (that $_REQUEST['start'] is defined before trying to (int) it)
* r10418 Changing the SSI security thing AGAIN (in line with what 10409-10413 did, basically to ensure that the kickguest only got called when appropriate, but we don't kick the guest to login anyway, we do what makes more sense in the first place: restrict the user's access in SSI so they can't see anything they're not supposed to and let the folks who use SSI figure out what they want to do with the user thereafter)
* r10420-10437, 10443-446 Updating 2.0 patch file, spacinazi and patch file, 10414's fix backported to 1.0, and for 1.1, file versions for both, 1.0 patch file, 1.1 patch file, 1.0 cleanup, 1.0 patch file, 1.1 file version typo, 1.1 spacinazi, CRLF issues, more CRLF issues, 1.1 patch file, 1.0 language file version, 1.1 SSI examples, 2.0 patch file, update to manual to match the trademark slogan of SMF, 1.1 language file version, 1.0 patch file, 1.1 patch file, 2.0 patch file
* r10438 [2.1] Caching members online stats is fine but I don't like the way it's done (should really be done differently all round), and also more == to === changes
* r10440 [2.1] Moving a function from Subs-Auth to Subs-Compat is great but it's not relevant to us since it's in 4.3.2 and up!
Notes
* r10404 Sinan also added a hook to ManageSettings.php for general mod settings but that was already added by Nao under a slightly different name. In SVN log: [SiNaN] knows that he'll be shot for doing this but he still has the heart of a modder.
* r10405 [2.1] also covers making queryless URLs work on Litespeed but that doesn't apply to us. There's also a removal of a @ error suppressor in the install file and a few == to === conversions. Really though, this is pure pedantry.
* r10408 implements it with browser conditions in the definition of $tag['content'] in the original array. Since that's not an option for us, I handled it inside the validate function. I did also fix the rather frustrating issue of IE not putting treating br tags as line breaks for copying, this is something they haven't.
* r10414 is a strange one. I'll buy validation of the URLs to prevent oddities (QueryString, Subs) but it also has two other changes: it removes the char 38 replacement in un_preparsecode, which seems to be OK because & is still escaped to its entity form (though I don't see what prompted it to be changed) and there is more robust checking of password flooding, specifically that a user isn't logged out when there's a password attack.
* r10439 The idea is to move the 'logging boards read', so that if goback is set, we fold that into the 'logging unread' process. Their method involves having an if and two queries' code, mine just manipulates the query variables, heh.
----
Modified : /trunk/Sources/Admin.php
Modified : /trunk/Sources/Class-Editor.php
Modified : /trunk/Sources/Display.php
Modified : /trunk/Sources/Dlattach.php
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/ManagePermissions.php
Modified : /trunk/Sources/ManageSettings.php
Modified : /trunk/Sources/Post2.php
Modified : /trunk/Sources/QueryString.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/license.txt
Modified : /trunk/other/install.sql
Modified : /trunk/other/upgrade.php
8032
Off-topic / Re: Odd little suggestion, not something I'd really encourage for us
« on February 8th, 2011, 10:42 AM »
The snippet was for code, not for general divs, which has a max-height, and often you get very large code blocks posted. So if you resize the code block it's possible to see more of it.
8033
Off-topic / Re: Odd little suggestion, not something I'd really encourage for us
« on February 7th, 2011, 01:13 PM »
Sadly not, but it is in Chrome which is how I wrote that script ;)
8034
Off-topic / Re: Erm say what?
« on February 7th, 2011, 01:13 PM »
What I will say about what happened is that it was intended as an exercise in clearing the deadwood and retaining only the loyal/eager folks. The fact it was implemented insanely badly didn't help but the spirit of intention was good.
It also fragmented things enough that we became open-minded to the realms of possibility - and it's likely that it was a factor in going to BSD.
It also fragmented things enough that we became open-minded to the realms of possibility - and it's likely that it was a factor in going to BSD.
8035
Off-topic / Odd little suggestion, not something I'd really encourage for us
« on February 7th, 2011, 02:59 AM »
Antechinus said something interesting - and useful.Quote All it needs is the CSS3 resize property set to 'vertical'.Quote I took a few minutes out and stretched my brain, was quite nice.Quote I don't write GM nearly enough.
Just had an idea and messed around with it a little bit. Since anyone using a decent browser these days is already used to having the nifty textarea click and drag resize by default (ie: without relying on 2.0's legacy code) it occurred to me that having the same resize ability on code blocks could be handy at times.
Not quite sure how to handle this at the moment. I'm certainly not planning on committing it to svn, but it's a nice touch in FF4 or Webkit as you can set the default height to whatever and then just drag when necessary. Might make a handy Greasemonkey addition for peeps on FF4 or Webkit. Just a thought.
ETA: Actually jQuery could probably handle this for all browsers, including auto shrink for height with one or two line snippets. < 2.1 feature
Eh, what the hell.Code: [Select] // ==UserScript==
// @name Code Block Resizer
// @namespace http://www.simplemachines.org/
// @description Adds the fancy resize element
// @include http://www.simplemachines.org/community/index.php?topic=*
// ==/UserScript==
var divX = document.evaluate("//code[@class='bbc_code']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
if (divX.snapshotLength > 0)
for (i = 0, n = divX.snapshotLength; i < n; i++)
divX.snapshotItem(i).style.resize = 'vertical';
Didn't really want to make it work on lots of forums since the @include could easily hit way too many sites and slow them all down.
EDIT: I don't think jQuery can actually handle this for browsers that don't have the feature or something relating to it. But it IS a one-liner in jQuery if you go down that road:Code: [Select] $('code.bbc_code').css('resize', 'vertical');
Anything else is getting overly technical, I suspect, and unreliable when you consider how themers will want to play.
8036
Features / Re: New revs
« on February 7th, 2011, 12:05 AM »
Revision: 571
Author: arantor
Date: 23:00:29, 06 February 2011
Message:
! Sync to SMF 10403
! Non-existent permission profiles could cause undefined index errors. (ManagePermissions.php) [Bug 4612]
! Incorrect dots during upgrade with multiple script files. (upgrade.php) [Bug 4617]
! Who's Online integration hook was too restrictive. (Who.php) [Bug 4615] (+credits update, Credits.php)
* Auto suggest could not handle display names with html special characters. (suggest.js) [Bug 4604]
Not included
! r10397 (changelog formatting)
! r10400 (possible to add the same function to a hook twice; not necessary due to the already-rewritten code)
! r10402 (typo in version check in fulltext API - but we require 4.1.2 which is over their version check automatically)
----
Modified : /trunk/Sources/Credits.php
Modified : /trunk/Sources/ManagePermissions.php
Modified : /trunk/Sources/Who.php
Modified : /trunk/Themes/default/scripts/suggest.js
Modified : /trunk/other/upgrade.php
Author: arantor
Date: 23:00:29, 06 February 2011
Message:
! Sync to SMF 10403
! Non-existent permission profiles could cause undefined index errors. (ManagePermissions.php) [Bug 4612]
! Incorrect dots during upgrade with multiple script files. (upgrade.php) [Bug 4617]
! Who's Online integration hook was too restrictive. (Who.php) [Bug 4615] (+credits update, Credits.php)
* Auto suggest could not handle display names with html special characters. (suggest.js) [Bug 4604]
Not included
! r10397 (changelog formatting)
! r10400 (possible to add the same function to a hook twice; not necessary due to the already-rewritten code)
! r10402 (typo in version check in fulltext API - but we require 4.1.2 which is over their version check automatically)
----
Modified : /trunk/Sources/Credits.php
Modified : /trunk/Sources/ManagePermissions.php
Modified : /trunk/Sources/Who.php
Modified : /trunk/Themes/default/scripts/suggest.js
Modified : /trunk/other/upgrade.php
8037
Other software / Re: Moving on
« on February 6th, 2011, 10:28 PM »If I'm following you, when I'm doing that it's a nice thought, and when they're doing it, it's useless
It doesn't help that only stuff in trunk appears in TortoiseSVN so if I want to see what's going on I have to look at it via their SVN viewer with its godawful 'view changes since previous' code.
8038
Other software / Re: Moving on
« on February 6th, 2011, 06:53 PM »
Even XF looks cleaner than vB. Can't vouch for the support, code quality etc since I've not dived that deeply into any of them.
8039
Other software / Re: Moving on
« on February 6th, 2011, 06:07 PM »
Let's be completely fair for a moment: any environment where there are people who are paid a wage to provide you support should be able - all other things being equal - to provide you better support than a volunteer environment. It's a given, and one that too many on sm.org don't want to accept.
For a long time I've lamented about those who want the power of vB without the price-tag, though not quite for the same reason as you've mentioned.
Most of the mods on sm.org are not written by professional/semi-professional grade programmers, and when you apply changes at code level, it's simply going to become more and more fragile. This isn't me bashing SMF, this is a simple fact of life.
The ecosystem is crumbling because the essential requirements - enough people with the skills, the time, the energy - just aren't there any more. Even though I know for a fact there is now a branch in their SVN for 2.1, with half a dozen commits or so, they're all micro-optimisations rather than anything actually useful.
I will not get on a soapbox and preach and pretend that Wedge will be any better in the long term, because I don't know that. But I *do* know that we're distinctly moving towards a more mature codebase that makes it easier to write portable mods that don't edit the core code, that have no real reason to interfere with each other and so on.
I half expect we'll end up with the same shit attitude as on sm.org of people wanting it done for them, but I KNOW that a large proportion of the requests - namely "can we get this upgraded for x version" will really not be that much of an issue because mods that can cope with being portable just won't have that issue.
For a long time I've lamented about those who want the power of vB without the price-tag, though not quite for the same reason as you've mentioned.
Most of the mods on sm.org are not written by professional/semi-professional grade programmers, and when you apply changes at code level, it's simply going to become more and more fragile. This isn't me bashing SMF, this is a simple fact of life.
The ecosystem is crumbling because the essential requirements - enough people with the skills, the time, the energy - just aren't there any more. Even though I know for a fact there is now a branch in their SVN for 2.1, with half a dozen commits or so, they're all micro-optimisations rather than anything actually useful.
I will not get on a soapbox and preach and pretend that Wedge will be any better in the long term, because I don't know that. But I *do* know that we're distinctly moving towards a more mature codebase that makes it easier to write portable mods that don't edit the core code, that have no real reason to interfere with each other and so on.
I half expect we'll end up with the same shit attitude as on sm.org of people wanting it done for them, but I KNOW that a large proportion of the requests - namely "can we get this upgraded for x version" will really not be that much of an issue because mods that can cope with being portable just won't have that issue.
8040
Features / Re: New revs
« on February 6th, 2011, 01:09 PM »
Revision: 568
Author: arantor
Date: 12:08:42, 06 February 2011
Message:
! If calling a function in a static way, it needs to be declared as static. (Class-CSS.php)
----
Modified : /trunk/Sources/Class-CSS.php
Author: arantor
Date: 12:08:42, 06 February 2011
Message:
! If calling a function in a static way, it needs to be declared as static. (Class-CSS.php)
----
Modified : /trunk/Sources/Class-CSS.php