The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi,
I would like to be able to have the forum automatically change a word in a post to something else when posted.. For example, somebody types the post: Hello, everyone go to yahoo. And have it changed to: Hello, everyone go to http://www.Yahoo.com. How can I do this? Thanks a lot! |
#2
|
|||
|
|||
![]() Quote:
|
#3
|
||||
|
||||
![]()
nope, not with smilies, but with the replacement vars
![]() |
#4
|
|||
|
|||
![]() Quote:
Can it be done in the showthread only and not on the forumhome? Thanks |
#5
|
||||
|
||||
![]()
hmm, well, then you have to hack the bbcodeparse function a little bit:
open functions_bbcodeparse.php find: PHP Code:
PHP Code:
![]() |
#6
|
|||
|
|||
![]()
I thought that replacement variables do not act on post content. Maybe that was in the same dream, sorry
![]() |
#7
|
|||
|
|||
![]() Quote:
![]() |
#8
|
|||
|
|||
![]() Quote:
return str_replace('yahoo', '<a href="http://www.yahoo.com">yahoo</a>',return str_replace('google', '<a href="http://www.google.com">google</a>', parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg, $donl2br))); ??? |
#9
|
||||
|
||||
![]()
@Ahmad: nah, it weas jsut in vb2 some of the replacementvars (those which started with an {) were not parsed inside posts, but all others have been all the time
![]() @ryan: you should then use array replacement: PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|