Jump to content

Expanding the LAVA media embed feature


Recommended Posts

As mentioned in this topic. LAVA has a new feature that can be used to embed media into forum posts. We can add more media types but are not sure what you all need. Also, we would like you to help us formulate the replacement script for these new media types.

Media Replacement Match:

You can use {1}, {2}, etc as a variable replacements or any regex statement:

Ex: http://www.test.com/23423/Match: http://www.test.com/{1}/

For YouTube:

http://(|www.)youtube.com/watch?v={2}

Media Replacement HTML

You can use $1, $2, etc as a variable replacements or any regex statement.

Ex: <a href="http://www.testm.com/$1/">$1</a>Result: <a href="http://www.testm.com/23423/">23423</a>

For YouTube:

<object type="application/x-shockwave-flash" height="355" width="425" data="http://www.youtube.com/v/$2"><param name="movie" value="http://www.youtube.com/v/$2"><param name="allowScriptAcess" value="sameDomain"><param name="quality" value="best"><param name="bgcolor" value="#FFFFFF"><param name="scale" value="noScale"><param name="salign" value="TL"><param name="FlashVars" value="playerMode=embedded" /><param name="wmode" value="transparent"/></object>

Let us know what media embed you want and what the replacement match and replacement HTML should be.

Link to comment
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.