Show Posts

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.

Messages - MultiformeIngegno
91
The Pub / Re: Logo Madness
« on January 26th, 2014, 10:16 PM »
Uhm, I like the actual one more. :)
92
Quote from MultiformeIngegno on January 26th, 2014, 02:28 AM
What about..

Code: [Select]
$pattern = '~(\[' . $tag . '])((?>[^[]++|\[(?!/?+' . $tag . '])|(?R))*+)(\[/'
         . $tag . '])~i';
$message = preg_replace_callback($pattern,
                                 function ($m) {
                                     return $m[1]
                                          . str_ireplace('[smg', '[smg', $m[2])
                                          . $m[3];
                                 }, $message);
Seems to work (I don't get any error). How can I test it didn't break anything?
93
Will try tomorrow :)
Posted: January 25th, 2014, 08:03 PM

Nao what's the goal of the regex? Is it to replace all [ before smg inside all nested levels inside [$tag] tags with [ ..?
Posted: January 26th, 2014, 02:03 AM

What about..

Code: [Select]
$pattern = '~(\[' . $tag . '])((?>[^[]++|\[(?!/?+' . $tag . '])|(?R))*+)(\[/'
         . $tag . '])~i';
$message = preg_replace_callback($pattern,
                                 function ($m) {
                                     return $m[1]
                                          . str_ireplace('[smg', '[smg', $m[2])
                                          . $m[3];
                                 }, $message);
94
Ehm... this should be the only one left (preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead)
Code: [Select]
$message = preg_replace('~\[' . $tag . ']((?>[^[]|\[(?!/?' . $tag . '])|(?R))+?)\[/' . $tag . ']~ie',
"'[" . $tag . "]' . str_ireplace('[smg', '[smg', '$1') . '[/" . $tag . "]'", $message);
Aeva-Subs.php:2546
95
Quote from MultiformeIngegno on January 24th, 2014, 04:04 PM
Will try tonight! Thanks !! ;)
Works! :cool:
96
Eheh it's a choice
97
I know but I asked pretty pretty please with sugar on top :P :P
Will try tonight! Thanks !! ;)
98
Mine is 2.10
99
Code: [Select]
$input = preg_replace('`(#[^"<]*)`e', 'str_replace("~", "-", "$1")', $input);
(Aeva-Embed.php:387)

What should I replace this line with to avoid being flooded with errors on PHP 5.5.x ? :angel: :eheh:
100
The Pub / Re: What I LIKE in Wedge!
« on January 23rd, 2014, 05:46 PM »
Nao you know at some point it will be needed that someone looks for the directive to make pURLS work on nginx too..? :D

Its market share now is almost 18%
101
Development blog / Re: That'll do.
« on January 22nd, 2014, 01:20 AM »
Nao I'm really excited.. I was there 3 years ago.. it's strange to remember when we was discussing the name of the project, the change of domain names of the forum, the switch from SMF to wedge of this forum, the hard work of you and Pete. I'm really happy this day finally arrived !! :-) congrats (to you and Pete in particular but also to john and Shitiz )!! :)
102
The Pub / Re: Last minute frights
« on January 20th, 2014, 02:32 PM »
yep, core
103
Features / Re: One theme to rule them all?
« on January 6th, 2014, 07:44 PM »
Uhm I prefer the second choice to this last one..
104
Features / Re: One theme to rule them all?
« on January 5th, 2014, 06:20 PM »
I vote for the second, it's organized better.
105
Features / Re: New revs - Public comments
« on January 5th, 2014, 06:18 PM »
Yeah it's only an opcache. But APC isn't maintained anyway :P
If you want to test it I can give you access to my VPS with PHP 5.5.6 installed