How can I embed YouTube videos on JReviews listings

From JReviews Documentation
Jump to: navigation, search
While this example is still valid, JReviews 2.4 and above already includes video embed and upload capabilities that are better integrated into the whole user experience so we recommend using the built-in media features of JReviews 2.4 and later. Please refer to the article on setting up JReviews to use the YouTube embed feature.

Create a new custom field (type Text field) that will be used to enter YouTube video IDs.

At the bottom off the Field page find Advanced Options and replace the Output Format with this:

<iframe class="youtube-player" type="text/html" width="420" height="265" src="{FIELDTEXT}?wmode=opaque" frameborder="0"></iframe>

In the description box you can enter instructions as tooltip to explain users they need to paste YouTube video IDs, not complete video URL, for example:

The bold part of the URL needs to be entered as the field value when the listing is submitted.

Click2Search needs to be disabled for this field.