The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using replacement variables to adapt old BBcode?
On my forum, until recently I was using YouTube bbcode with the following formatting:
Code:
[youtube=XXXXXX]XXXXXX[/youtube] My new formatting is: Code:
[youtube]http://www.youtube.com/watch?v=XXXXXX[/youtube] The way I see it, I need to globally replace [youtube=XXXXXX] with Code:
[youtube]http://www.youtube.com/watch?v= What would the formatting be for a replacement variable that would replace all instances of [youtube=Anything goes here] with [youtube]http://www.youtube.com/watch?v= ? If this is impossible, are there any plugins/products that would facilitate such a change? Or, is it possible to do a similarly specifically-targeted find/replace in my database? |
#2
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=202476" target="_blank">AME 2.5</a> has some tools that will let your rebuild old BBCode and convert them to AME tags. In this case, your users don't even have to use a button to embed the video, or even know how to. A link to a YouTube page will auto embed when posted, and the conversion tool should make all the old embeds remain. It's lighter than BBCode and you can add additional sites pretty easily if you want them. I think it might be easier than what your trying to do, and make it even easier on your users.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|