The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I found a thread over at Vbulletin.com which seems to be something that im looking for basically i want to change all the links in posts on my forum to a new url, replacement variable manager does work mostly but because i grab feeds from our news forums the news forums dont take the replaced variables with it. so on the thread linked above, theres this snippet of code which was used to make a plugin
Code:
if($thread['postuserid'] == '1') { $find = array( '________' ); $replace = array( '' ); $this->post['message'] = str_replace($find, $replace, $this->post['message']); } Is this doable? --------------- Added [DATE]1389025772[/DATE] at [TIME]1389025772[/TIME] --------------- so would this work Code:
if($thread['postuserid'] == '1') { $find = array( 'www.oldurl.com' ); $replace = array( 'www.newurl.com' ); $this->post['message'] = str_replace($find, $replace, $this->post['message']); } |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|