• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Mediasites

xf_phantom

Well-known member
#1
I have custom media tags, where the url is the id.

It's working and being shown.
But when somebody edits the post, the media tag is being "masked" again
e.g.
Code:
[media=foo]http://www.foo.com/whatever[/media]
becomes
Code:
[media=foo][media=foo]http://www.foo.com/whatever[/media][/media]
which doesn't work anymore
 

Jeremy

Well-known member
#2
The id should realistically be whatever versus the full URL. The replacement should add in the necessary URL. So ID = Path.
 

Despair

Active member
#5
That's impossible because i need the full url (or 2 variables ( subdomain + id), but xenforo supports here AFAIK only 1 (the id)
Maybe not as efficient, but not impossible. Did you try using the URL match callback and embed HTML callback under the advanced options tab? This sounds like it might be a situation where it'd come in handy. Maybe you could try creating the media ID/key as the joined subdomain, a unique separator, and the ID in your URL match callback. In your embed HTML callback you could then explode on that unique separator and place both pieces in the correct place of the URL for the string to return.