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.
8401
Features / Re: New revs
« on September 8th, 2010, 12:02 AM »
Sorry, I meant *captured* in the match. ((?:topic=)\d+) would only match the number in a backref.
8402
Features / Re: New revs
« on September 7th, 2010, 11:41 PM »
Subs: Not entirely... if it's part of a paranthesised expression, it won't be matched.
But yeah, it's irrelevant here :P
But yeah, it's irrelevant here :P
8403
Features / Re: New revs
« on September 7th, 2010, 11:04 PM »
Oh, yeah, nice optimisation there on the URL prompt, I missed that in passing.
As for Subs.php... I figured there had to be a reason it was there as a positive assertion so left it until I had a reason to remove it, really.
As for Subs.php... I figured there had to be a reason it was there as a positive assertion so left it until I had a reason to remove it, really.
8404
Features / Re: New revs
« on September 7th, 2010, 06:35 PM »
Revision: 61
Author: arantor
Date: 17:33:04, 07 September 2010
Message:
! Remove unnecessary board and threadid from quote bbc handler. (Subs.php)
----
Modified : /trunk/Sources/Subs.php
Author: arantor
Date: 17:33:04, 07 September 2010
Message:
! Remove unnecessary board and threadid from quote bbc handler. (Subs.php)
----
Modified : /trunk/Sources/Subs.php
8405
Features / Re: New revs
« on September 7th, 2010, 09:00 AM »
It's no less straightforward than the prompt immediately before it, IMO, but I *am* a geek which means what sounds normal to me probably isn't, heh. I'll get my better half to look at it tonight.
It isn't actually mandatory, by design, so if people hit cancel on that prompt it gives them a url bbcode with the URL itself as the linktext.
It isn't actually mandatory, by design, so if people hit cancel on that prompt it gives them a url bbcode with the URL itself as the linktext.
8406
Features / Re: New revs
« on September 7th, 2010, 12:01 AM »
Well, the installer doesn't appear to be broken...
Revision: 59
Author: arantor
Date: 22:59:27, 06 September 2010
Message:
+ Selecting IMG or URL buttons in non WYSIWYG mode prompts for IMG and URL (and also linktext for url bbc)
----
Modified : /trunk/Sources/Class-Editor.php
Modified : /trunk/Themes/default/languages/index.english.php
Modified : /trunk/Themes/default/scripts/editor.js
This is essentially the same as http://arantormods.com/index.php?action=media;sa=item;in=3 except it also handles it for img too. In other news, I rediscovered that IE has a custom prompt that's used in WYSIWYG mode, I may have to remove that in the interests of cross-browser experience being the same.
Revision: 59
Author: arantor
Date: 22:59:27, 06 September 2010
Message:
+ Selecting IMG or URL buttons in non WYSIWYG mode prompts for IMG and URL (and also linktext for url bbc)
----
Modified : /trunk/Sources/Class-Editor.php
Modified : /trunk/Themes/default/languages/index.english.php
Modified : /trunk/Themes/default/scripts/editor.js
This is essentially the same as http://arantormods.com/index.php?action=media;sa=item;in=3 except it also handles it for img too. In other news, I rediscovered that IE has a custom prompt that's used in WYSIWYG mode, I may have to remove that in the interests of cross-browser experience being the same.
8407
Features / Re: New revs
« on September 6th, 2010, 10:47 PM »Don't remember having ever touched the code you modified to add msg=... Are you sure it was needed?
Pete, I've re-read the install and upgrade scripts, and I really hope I got them done without breaking anything. In terms of logic, it should be okay. Just don't yell at me if you try running one of the scripts and it crashes I just wanted to be done with it...
8408
Features / Re: New revs
« on September 6th, 2010, 07:53 PM »
Revision: 54
Author: arantor
Date: 18:21:42, 06 September 2010
Message:
! Fixed bug in unified editor class where BBC was loaded without the post language file first, in PMs. (Class-Editor.php)
----
Modified : /trunk/Sources/Class-Editor.php
Revision: 55
Author: arantor
Date: 18:27:53, 06 September 2010
Message:
! Quote now references the individual message only. Not 100% sure this is the fastest way to evaluate the regexp though. (Post.php, Subs.php)
----
Modified : /trunk/Sources/Post.php
Modified : /trunk/Sources/Subs.php
Revision: 56
Author: arantor
Date: 18:53:32, 06 September 2010
Message:
! Make the quick search box be hidden if the user doesn't have permission. (index.template.php)
----
Modified : /trunk/Themes/default/index.template.php
Author: arantor
Date: 18:21:42, 06 September 2010
Message:
! Fixed bug in unified editor class where BBC was loaded without the post language file first, in PMs. (Class-Editor.php)
----
Modified : /trunk/Sources/Class-Editor.php
Posted: September 6th, 2010, 07:22 PM
Revision: 55
Author: arantor
Date: 18:27:53, 06 September 2010
Message:
! Quote now references the individual message only. Not 100% sure this is the fastest way to evaluate the regexp though. (Post.php, Subs.php)
----
Modified : /trunk/Sources/Post.php
Modified : /trunk/Sources/Subs.php
Posted: September 6th, 2010, 07:28 PM
Revision: 56
Author: arantor
Date: 18:53:32, 06 September 2010
Message:
! Make the quick search box be hidden if the user doesn't have permission. (index.template.php)
----
Modified : /trunk/Themes/default/index.template.php
8409
Features / Re: New revs
« on September 6th, 2010, 04:42 PM »Are you sure it's inefficient? I remember reading about performance issues and the conclusion was that it was just as fast as an extra table... Couldn't say, myself. Haven't been looking into {query_see_board} and stuff for a long time.
In the case of SMF 1 and $ID_MEMBER and so on, I know why they did that, and in practice it's... interesting. Not only describing the column by name, you're implicitly implying it forms part of a primary and/or foreign key without any other characters. That was ugly.
I'm not on the fence about it being a constant, because really, it's defined once, and used throughout the code, which means so many passes back and forth through scope that it's unreal. In terms of formatting, what about actually making it 'scripturl'? Nothing says a constant has to be upper case, but it makes it easier to see if it is.
I also believe it should be faster too.
In SD's case, it was pure readability I was going for. No way was I going to remember in every case that status 3 was resolved or that 6 was deleted, but I knew I'd follow it better with TICKET_STATUS_CLOSED or TICKET_STATUS_DELETED. I found it was only ugly initially because I wasn't used to seeing it.
8410
Features / Re: New revs
« on September 6th, 2010, 04:30 PM »
Just to clarify: FIND_IN_SET has its place, like everything else. But to use it to hunt through what is really relational data (user belongs-to group, board belongs-to group), which results in a table scan vs using indexes really is ridiculous.
When you're done with that, I'll begin on replacing $scripturl with a constant (along with the other similar globals that shouldn't really be global variables but constants)
Re Oracle: If we make the move to everything being properly relational anyway, it becomes so much easier to build for... but I don't like building for something I can't test, hahah.
When you're done with that, I'll begin on replacing $scripturl with a constant (along with the other similar globals that shouldn't really be global variables but constants)
Re Oracle: If we make the move to everything being properly relational anyway, it becomes so much easier to build for... but I don't like building for something I can't test, hahah.
8411
Features / Re: New revs
« on September 6th, 2010, 03:58 PM »
I think it can. Oracle has jettisoned the areas it's not interested in (OpenSolaris for one), and MySQL is a money maker for it, especially as it can sell very expensive training, then upgrades to Oracle gear later on (with support contracts)
I don't think there's anything to fear for MySQL at the current time, and I suspect it's got life for years yet.[1]
I don't think there's anything to fear for MySQL at the current time, and I suspect it's got life for years yet.[1]
| 1. | * Arantor waits for this to come back to haunt him haha |
8412
Features / Re: New revs
« on September 6th, 2010, 03:30 PM »
*nods*
Point of interest: vBulletin only supports MySQL, IPB supports MySQL with MSSQL as a paid plugin (though knowing how that handles queries, it's not impossible to make it support other DBs without too much work)
Yeah, FIND_IN_SET is ridiculous, and doubly so since in PGSQL's case it doesn't exist at all, and has to be shoe-horned in as a user function (at a performance penalty, too), which returns T or F (or t or f sometimes), so you end up having to rewrite every instance of FIND_IN_SET in queries. I mean, seriously... who does it like that?
* Arantor hands Nao the axe to finish chopping the multi DB code out.
Point of interest: vBulletin only supports MySQL, IPB supports MySQL with MSSQL as a paid plugin (though knowing how that handles queries, it's not impossible to make it support other DBs without too much work)
Yeah, FIND_IN_SET is ridiculous, and doubly so since in PGSQL's case it doesn't exist at all, and has to be shoe-horned in as a user function (at a performance penalty, too), which returns T or F (or t or f sometimes), so you end up having to rewrite every instance of FIND_IN_SET in queries. I mean, seriously... who does it like that?
8413
Features / Re: New revs
« on September 6th, 2010, 03:11 PM »
Part of me would like to keep it, but there's no reason it should stay unless we're seriously planning on providing the ability to deal with it later, which I doubt.
Most of the hacks for PGSQL are because SMF uses this banal system of comma-separated values in a string column. It may have made sense long ago but in the current day and age, it's not viable. Don't even get me started on trying to hack in MSSQL support, I actually gave that up as a lost cause in the current environment. (Seriously, how stupid is it not to support LIMIT x, y as a clause? You can have the TOP x rows, but can't page through like that.)
Most of the hacks for PGSQL are because SMF uses this banal system of comma-separated values in a string column. It may have made sense long ago but in the current day and age, it's not viable. Don't even get me started on trying to hack in MSSQL support, I actually gave that up as a lost cause in the current environment. (Seriously, how stupid is it not to support LIMIT x, y as a clause? You can have the TOP x rows, but can't page through like that.)
8414
Features / Re: New revs
« on September 6th, 2010, 02:34 PM »Community support?
8415
Features / Re: New revs
« on September 6th, 2010, 12:48 AM »I guess all of this should be removed? We're never going to go beyond ONE supported db system are we?
In which case... you know where the delete button is, hehe :D
Hmm, maybe it is the patch executable then? Hmm, I don't know.
Posted: September 5th, 2010, 11:49 PM
Anyway.
I got brave and just did this.
Revision: 48
Author: arantor
Date: 23:47:06, 05 September 2010
Message:
! Added PMs being saved in sent items by default for new accounts (install_2-0_mysql.sql)
----
Modified : /trunk/other/install_2-0_mysql.sql