PDA

View Full Version : BB Code Enhancements - G4TV BBCode


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.

ProFifaLeagues
06-14-2012, 01:21 PM
Just taken a quick look at G4TV Never seen it before,Could be very handy thank you Gemma

Preech
06-14-2012, 01:47 PM
They have their own television network, one of my mods asked me about it. Thank you Gemma for such a quick response.

Preech
06-14-2012, 03:54 PM
I don't know why, but I only get the video of the one from the Replacement code.

Gemma
06-14-2012, 04:02 PM
I don't know why, but I only get the video of the one from the Replacement code.

Can you try again, sorry I thought I had changed the code but the site kept timing out so possibly the edit didn't save.

Preech
06-14-2012, 04:06 PM
Good to go. Something that I did.