The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Filtering a string
Lets say I have the following string:
Quote:
Quote:
|
#2
|
|||
|
|||
Code:
function stripos($haystack, $needle, $offset=0) { return strpos(strtoupper($haystack), strtoupper($needle), $offset); } |
#3
|
|||
|
|||
Quote:
Anyway, that works... However I am currently working on something that will add quote functionality into vBulletin social group discussions (why this wasn't added is a mystery to me). The reason for the question is that I need to strip out quotes within the quoted post. This is something that occurs when a forum post is quoted so I am guessing that this filtering functionality already exists somewhere in the VB framework, but I will be damned if I can find it. Does anybody know where it might be, as using the substr etc complicates things as the code will have to cater for all imaginable scenarios. |
#4
|
|||
|
|||
look for the functions in postreply.php or whatever it's called? I don't know specifically
|
#5
|
||||
|
||||
strip_bbcode()
strip_quotes() I think you're looking for those. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|