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.
2956
Off-topic / Re: RegEx get id from Aeva Embed
« on August 2nd, 2012, 04:37 AM »
Recent posts is ugly, however you do it.
2957
Off-topic / Re: RegEx get id from Aeva Embed
« on August 2nd, 2012, 03:46 AM »
Similar but not quite the same.
The * in the 0-9 part will also happily match [smg id=] in yours, the + is quite important since it matches 1 or more, as opposed to * for 0 or more.
Sounds like fun though :) The OG stuff is something I keep thinking about doing but never seem to get around to it - though I have a feeling it might not be appreciated too well as a core function, perhaps better as a plugin, don't know.
The * in the 0-9 part will also happily match [smg id=] in yours, the + is quite important since it matches 1 or more, as opposed to * for 0 or more.
Sounds like fun though :) The OG stuff is something I keep thinking about doing but never seem to get around to it - though I have a feeling it might not be appreciated too well as a core function, perhaps better as a plugin, don't know.
2958
Off-topic / Re: RegEx get id from Aeva Embed
« on August 2nd, 2012, 03:30 AM »
Try:
Code: [Select]
\d is a shorthand for 0-9, and you want continuous digits, which may or may not be followed by anything after it before the bracket.
There's a really great program called Regex Coach which will let you apply a base text and a regex to it and step through how it will be processed.
if (preg_match('[smg id=(\d+)(.*)]', $row['first_body'], $match)) {
$row['aeva_thumb'] = $scripturl . '?action=media;sa=media;in='.$match[1].';thumb';
}\d is a shorthand for 0-9, and you want continuous digits, which may or may not be followed by anything after it before the bracket.
There's a really great program called Regex Coach which will let you apply a base text and a regex to it and step through how it will be processed.
2959
The Pub / Re: Bloc Madness
« on August 1st, 2012, 09:51 PM »
Well, I'm well aware that creativity isn't an infinite resource and at times you have to step back and recharge your batteries. But his style isn't stepping back and recharging.
@Kindred,
My understanding was that there wasn't going to be a 2.2, that 2.1 was only a stop-gap before 3.0.
@Kindred,
My understanding was that there wasn't going to be a 2.2, that 2.1 was only a stop-gap before 3.0.
2960
Bug reports / Re: WebGet and open_basedir
« on August 1st, 2012, 07:20 PM »
Yup, that's the reason it was changed.
2961
Bug reports / Re: WebGet and open_basedir
« on August 1st, 2012, 04:03 PM »
There are way more rules in mod_security than that. Some of the configurations are downright weird, too.
(Yes, the host can actually configure what shows up in mod_security. I remember one host who used to actually kick back *any* requested URL with ; in it. Guess how that worked out for him.)
(Yes, the host can actually configure what shows up in mod_security. I remember one host who used to actually kick back *any* requested URL with ; in it. Guess how that worked out for him.)
2962
The Pub / Re: Bloc Madness
« on August 1st, 2012, 04:02 PM »
:lol: I'm not nearly stupid enough to take that bet.
2963
Bug reports / Re: WebGet and open_basedir
« on August 1st, 2012, 03:11 PM »
It has been dropped from later PHP releases simply because it doesn't actually add anything useful as far as safety goes.
2964
Bug reports / Re: WebGet and open_basedir
« on August 1st, 2012, 02:51 PM »
There's actually a fix documented on php.net for this, and I'll implement it when I have time, but I have to say while I can understand the restriction in the stupid 'safe mode', I have no idea why it's restricted with open_basedir.
2965
The Pub / Re: Bloc Madness
« on August 1st, 2012, 02:50 PM »
Oh, competition is always good, but the sad part is, this is exactly what I expected to happen - and it wouldn't have made any difference whether we'd commented on it or not here. You only have to go back over time to see what he's done to realise that he's as up/down as ever.
2966
The Pub / Re: Bloc Madness
« on July 31st, 2012, 07:37 PM »
And either he reads here, or someone told him about it as apparently he's made reference to it on the main ViennaBBS site...
2967
Archived fixes / Re: Theme selector broken + more...
« on July 31st, 2012, 02:13 AM »
Wuthering is very old now and is very likely broken compared to what it was originally.
It does sound like it's using the old weUrl code, more accurately not properly handling the changes related to ? being in the URL that Nao recently added, which would not surprise me.
It does sound like it's using the old weUrl code, more accurately not properly handling the changes related to ? being in the URL that Nao recently added, which would not surprise me.
* Arantor gave up worrying about keeping plugins compatible with Wedge's development because things change in backwards incompatible ways so often...
2968
The Pub / Re: Bloc Madness
« on July 30th, 2012, 08:06 PM »
Bloc did up until a while ago but as far as I know he never used it, so most of his bile is based on what he's read, not what he's actually used. Xarcell has never had access and mostly takes umbridge about my attitude. Like the comment that he wants the 'old' Arantor back.
2969
The Pub / Re: Bloc Madness
« on July 30th, 2012, 07:53 PM »
It's not Bloc per se, it's the attitude that goes with him, like a dog farting in the night - it wafts and permeates and you don't know where it came from but it smells awful.
2970
The Pub / Re: Bloc Madness
« on July 30th, 2012, 07:42 PM »
That's the thing, every single time I begin to get my mojo back together, a clusterfuck of BS comes along and reminds me why sometimes it's not worth the effort, you know? Makes it very hard to remain motivated, especially when there are arrogant folks with heads so far up their own arses bitching about things they don't understand.