The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Basically you'd need to make a plugin on some hook that you can intercept the preview text and clean it with various php functions.
You can probably remove most of the HTML tags like <p> , </p>, <br />, etc... using the str_ireplace function. Code:
$clean_array = array ('<p>', '</p>', '<br />', '<h1>', '</h1>'); $text = str_ireplace($clean_array, '', $text); However you'd still be stuck with images... For those you'd probably need to make a regex to find patterns and remove them with preg_replace. But since this stuff is all happening in a VBAdvanced product I have no idea what the actual hook you need to use is. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|