XF 2.3 How does the [media] tag work? (Upgrade from vb)

punchbowl

Member
My legacy forum has embedded media links in this format

Code:
[ame]tweet/youtube link[/ame]

I converted the forum fine. (I was very impressed tbh) but then I updated the db so [ame] went to [url] and [/ame] went to [/url]

That left me with links in posts where there used to be embedded media.

Could I have changed [ame] to [media] and [/ame] to [/media]?

Would that work or is it always [media=something] as the opening tag?

When I posted

Code:
[MEDIA]https://youtu.be/UOr7wlJItPo?si=BAVins0Xuy21FfIl[/MEDIA]
in a new post it converted into

Code:
[MEDIA][MEDIA=youtube]UOr7wlJItPo[/MEDIA]

Which looks like
Code:
[media]
the actual
embedded
media

I'd be 100% fine with that for old converted media. Can I just change my ame tags into media tags (and then rebuild the post media embed cache)? Or am I better off just converting to url tags.

Thanks!
 
Last edited:
I was overcomplicating this. Thanks to @AndyB for the help!


Instead of replacing ame tags with url tags I should just have removed ame tags completely. That leaves everything just as links and you need to resave a post for xf to process the post url into an embed. Andy has a mod that automates that on a large forum https://xenforo.com/community/resources/resave-posts-all.8727/

[Posting the solution just in case someone runs into the same issue)
 
Last edited:
Back
Top Bottom