The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Trying to do replacements
I'm trying to use the preg_replace command to do replacements of specific strings with the string as a URL. An example from what I am using:
PHP Code:
I have two issues: 1. I cannot quite figure out how to get ONLY exact matches, no matter where they might appear in the post. I've been reading on this here: http://www.php.net/manual/en/function.preg-replace.php and here: http://www.php.net/manual/en/pcre.pattern.modifiers.php 2. I know that I will need a if/then loop to prevent the substitution from being made if the string is already encased in <a> or [URL] tags, but I am not sure how to go about that either. I am currently using this in the functions_showthread.php file for vB 3.0.0 RC3, so no actual changes are being made to the data as the subs are done on the display end of things. Thanks in advance! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|