Note: The cleaner.php is located in the impex/tools/ directory. After modifying it as per the instructions below, you run it from your browser like this:

...using your forum URL of course.

ImpEx parses out as much HTML and incorrect BB code as it can find, though there can sometimes be unexpected HTML or codes in the posts.

To remove this you will need to use cleaner.php, the basic principle is that is matches one string and replaces it for another, or a blank to just delete the original string.

Once cleaner has been run successfully you must rebuild the Rebuild Post Cache in the AdminCP > Maintenance > Update Counters

The file itself has many comments and instructions though as an example, if I have the post :

Hi there, I was looking though the web and I found this site and I think it <B>r0x0rs</B> , its about pirates it must be good as they are the best.

<a href="">advert</a>

There are three errors there, the <B> tags should be BB code, we want to remove the HTML completely and pirates should be ninjas, obviously.

In the script there is this code :
$replacer = array(
"<img>"    => "[img]",
""    => "",
""    => "",
""    => "",
""    => ""
This is where cleaner.php is configured on what to replace, in out example we will configure it like this :
$replacer = array(
"<B>"    => "[B]",
"pirates"    => "ninjas",
'<a href="">advert</a>'    => ""

Note, where we have entered the HTML to find, because it contains double quotes, the quotes used in the array have been changed to single quotes, this is done or PHP will have a parse error as it will prematurely end the key variable value.
Copyright © 2024 MH Sub I, LLC dba vBulletin. All rights reserved. vBulletin® is a registered trademark of MH Sub I, LLC dba vBulletin.