The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Replace certain words by vB code "on the fly"?
Does this hack exist?
So if for example I type a post and include certain word in plain text, it will be replaced by vbcode? Say for example: "Hello this is an example of how Microsoft sux" and when hitting SEND, Microsoft is replaced by a link to microsoft.com or similar stuff... |
#2
|
||||
|
||||
easy way: create a new vbcode with that word and its replacement..
|
#3
|
||||
|
||||
sorry pal, but this isn't possible anymore.
this way you mentioned was possible in vb1.x other methods: you can create a replacement-code with that word and it's replacement: advantage: fast way disadvantage: when someone edits the post the replacement is also parsed and becomes html code in edit box or you can edit admin/functions.php find: PHP Code:
PHP Code:
|
#4
|
|||
|
|||
Thank you for your answers!
As for the second method, can I add more than just 1 replacement? |
#5
|
||||
|
||||
you can create as much replacements as you like
|
#6
|
|||
|
|||
Well, I am coming in late to the party. Is there any reason not to add abut 50 replacement lines? As in, will it cause performance issues?
Also, will this work for phrases? -Melanie |
#7
|
||||
|
||||
you'd better ask this general vb question at vbulletin.com
as replacements are using php functions to replace texts in strings, of course every replacement will make the parsing slower, but normally you won't notice this, as it's nothing regarding other things |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|