Difference between revisions of "How can I embed YouTube videos on JReviews listings"

From JReviews Documentation
Jump to: navigation, search
(Created page with 'Create a new text custom field which will be used to enter YouTube video IDs. Click on <span style="color: red">[Click here for Advanced Options]</span> and replace the Output F…')
 
Line 1: Line 1:
Create a new text custom field which will be used to enter YouTube video IDs.
+
Create a new text custom field that will be used to enter YouTube video IDs.
 +
 
 +
 
 +
Click on <span style="color: red">[Click here for Advanced Options]</span> and replace the '''Output Format''' with this:
  
Click on <span style="color: red">[Click here for Advanced Options]</span> and replace the Output Format with this:
 
  
 
<source lang="php">
 
<source lang="php">
Line 9: Line 11:
  
 
In the description box you can enter instructions as tooltip to explain users they need to paste YouTube video IDs, not whole url, for example:
 
In the description box you can enter instructions as tooltip to explain users they need to paste YouTube video IDs, not whole url, for example:
 +
 +
 
http://www.youtube.com/watch?v='''lKbEI8pDz0A'''
 
http://www.youtube.com/watch?v='''lKbEI8pDz0A'''
 +
 
The bold part needs to be entered as the field value when the listing is submitted.
 
The bold part needs to be entered as the field value when the listing is submitted.
  

Revision as of 11:40, 21 November 2009

Create a new text custom field that will be used to enter YouTube video IDs.


Click on [Click here for Advanced Options] and replace the Output Format with this:


<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{FIELDTEXT}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/{FIELDTEXT}&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object>


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


http://www.youtube.com/watch?v=lKbEI8pDz0A

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