The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I only know abit about it, regular expressions aren't my strong point.
@dontpanic: tofind is the search code, like survivor and replacement is the code to replace it with, I just used those as they were shorter. The ^ before the bracket should negate whats in it so if it matches the first part, but not the second then it does the replacement. At least thats how you want it too work. |
#12
|
|||
|
|||
Right. Now down to business. I will see what I can come up with given this great start!
|
#13
|
|||
|
|||
Quote:
Code:
</a> |
#14
|
||||
|
||||
PHP Code:
|
#15
|
|||
|
|||
I figured that.
Anyhow, I have inserted my information into the code as seen: Code:
$post['message'] = preg_replace('/(70-292)^(<a href="\S">70-292<\/a>)/i', '<a href="http://www.mcseworld.com/a/1932266569/" target="_blank">\\1</a>', $post['message']); I'll get back on this shortly. Gotta go do some paying work now. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|