The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change one word to another
I'm looking for a mod that would work like this:
User makes post, in post there is a word "ROTFL" I want forum to change it to "Rolling on floor laughing" automatically. It would be nice to have some simple method of making this rules like file with smt like this: rotfl = Rolling on floor laughing cat = dog idiot = i'm an idiot etc |
#3
|
|||
|
|||
You can using hook postbit_display_complete
PHP Code:
If you want replace from database, you can use SQL [SQL]UPDATE post SET pagetext = replace(pagetext, "cat", "dog");[/SQL] If you want, i can write product and attachment to my post Please click like button |
Благодарность от: | ||
Tibiaspy |
#4
|
|||
|
|||
Quote:
Quote:
I did add a new plugin, selected location - postbit_display_complete I did add this code: Code:
$1=array( 'test1','test2','test3' ); $2=array( 'new test1','new test2','new test3' ); $this->post['message'] = str_replace($1, $2, $this->post['message']); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|