The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
well i heard preg_replace is a very hard thing in php but i thought i would give a swing at it, i did with a simple phrase already and it worked great but i cant get this one to work with variables and what nots..
heres my error: Quote:
PHP Code:
|
#2
|
||||
|
||||
![]()
the [ is a special char in regular expressions, so you have to escape it if you want it to be the actual character:
PHP Code:
![]() |
#3
|
||||
|
||||
![]()
more errors, yeah!!!>_<
Quote:
|
#4
|
||||
|
||||
![]()
remove the 'e' from 'esiU'
you'r not executing a callback function are you? ^^ |
#5
|
||||
|
||||
![]()
i just copied that from functions_bbcodeparse.php lol! so what does that exactly do? #siU?
i tried understanding the way php.net explains it but im just confused>_< |
#6
|
||||
|
||||
![]()
i -> ignore cases
e -> execute a callback function (like vb does if there is a handle_bbcode()..) s -> means a dot can be every character not really sure about the U, i never used it right now ^^ |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|