View Full Version : cleaner.php wildcard help
inohaw2speal
Sat 10th Jan '09, 5:25pm
Hello.
I was wondering what would be the method of using wildcards with cleaner.php. I know you have to edit something involving preg_replace (http://www.vbulletin.com/forum/showthread.php?t=294647), but am not quite sure.
For example:
<div class='quotetop'>("cheeseman":rfvahwk9)</div>
inohaw2speal
Sun 11th Jan '09, 8:08pm
Can no one help me?
Steve Machol
Sun 11th Jan '09, 10:51pm
I do not believe you can use wildcards, at least I've never heard of this being available.
inohaw2speal
Tue 13th Jan '09, 9:44am
I know I saw a thread about editing pre_replace that has a sort of wildcard affect. Can you help me with this problem, anyways?
Jerry
Tue 13th Jan '09, 1:54pm
Around line 98 of cleaner.php need replacing to use regex in cleaner.php.
I know I saw a thread about editing pre_replace that has a sort of wildcard affect. Can you help me with this problem, anyways?
This will remove it :
$text = preg_replace("#<div class='quotetop'>(.*)\</div>#siU", '', $text);
This will turn it into a quote tag :
$text = preg_replace('#<div class=\'quotetop\'>\("(.*)":(.*)\)</div>#siU', "[QUOTE=$1]", $text);
inohaw2speal
Tue 13th Jan '09, 6:43pm
Thanks Jerry, but now how would I do something like this:
[quote=USERNAME_WILDCARD_HERE][quote]To:
[quote=USERNAME_WILDCARD_HERE]There was just a problem when I did your suggestion, which added [quote=Username] in front of [quote]; so trying to fix that.
Jerry
Tue 13th Jan '09, 6:52pm
I have given this as an example, if you want more or custom help I suggest asking on vbulletin.org.
inohaw2speal
Wed 14th Jan '09, 8:40am
Why do I need to ask on vBulletin.org; are you refusing to help me?
Steve Machol
Wed 14th Jan '09, 1:54pm
Please note that as support staff our primary function is to help customers with specific problems and questions they have about using the software. While we often will help with questions regarding customizing forums or specialized scripts, that is not our core function. We help with these questions when we can and when we have the time and experience.
For specific help with customizing vB you should try vBulletin.org: http://www.vbulletin.org/
inohaw2speal
Sat 17th Jan '09, 11:15am
Please note that as support staff our primary function is to help customers with specific problems and questions they have about using the software. While we often will help with questions regarding customizing forums or specialized scripts, that is not our core function. We help with these questions when we can and when we have the time and experience.
For specific help with customizing vB you should try vBulletin.org: http://www.vbulletin.org/
But I'm not customizing it...
Steve Machol
Sat 17th Jan '09, 12:07pm
....or specialized scripts.
Please post at vbulletin.org for further help with this.
inohaw2speal
Sat 17th Jan '09, 8:39pm
....or specialized scripts.
Please post at vbulletin.org for further help with this.
So if I need help with anything at all, I have to ask on vbulletin.org?
Steve Machol
Sat 17th Jan '09, 11:28pm
No, of course not. If you took a few minutes to actually read through this board you would see that is not true.
Jerry
Mon 19th Jan '09, 1:45pm
I have answered the origional question and request, there are many examples in this forum to help and we do not custom code for each import.
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights