Gemma
06-13-2012, 10:00 PM
Someone asked for this, I'd never heard of G4TV before but maybe it will be of use to some folks :)
Add a new bbcode (AdminCP > Custom BB Codes > Add New BB Code)
Title: G4TV BBCode
BB Code Tag Name: g4tv
Replacement:
<object classId="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="418" id="VideoPlayer"><param name="movie" value="http://g4tv.com/lv3/{param}" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://g4tv.com/lv3/{param}" type="application/x-shockwave-flash" name="VideoPlayer" width="480" height="418" allowScriptAccess="always" allowFullScreen="true" /></object>Description: Embed videos from G4TV.com into posts
Example: 59269
User Option: No
Button Image (Optional): path-to-your-styles/editor/g4tv.png
Example: http://www.g4tv.com/videos/59269/gravity-rush-gameplay-trailer/
To use the G4TV tag you need the video ID # - in this case it is 59269.
Add a new bbcode (AdminCP > Custom BB Codes > Add New BB Code)
Title: G4TV BBCode
BB Code Tag Name: g4tv
Replacement:
<object classId="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="418" id="VideoPlayer"><param name="movie" value="http://g4tv.com/lv3/{param}" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://g4tv.com/lv3/{param}" type="application/x-shockwave-flash" name="VideoPlayer" width="480" height="418" allowScriptAccess="always" allowFullScreen="true" /></object>Description: Embed videos from G4TV.com into posts
Example: 59269
User Option: No
Button Image (Optional): path-to-your-styles/editor/g4tv.png
Example: http://www.g4tv.com/videos/59269/gravity-rush-gameplay-trailer/
To use the G4TV tag you need the video ID # - in this case it is 59269.