PDA

View Full Version : BB Code Enhancements - GameTrailers BBCode


Gemma
09-05-2011, 10:00 PM
Someone asked about BBCode for embedding GameTrailer videos in posts, here is how I've got it working on my site.

Add a new bbcode (AdminCP > Custom BB Codes > Add New BB Code)

Title: Game Trailers BB Code
BB Code Tag Name: gametrailers
Replacement:
<embed width="640" height="391" src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:{param}" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autoPlay=false" allowfullscreen="true">
</embed>Description: Embed video trailers from GameTrailers into posts
Example: 33772
User Option: No
Button Image (Optional): path-to-your-styles/editor/gametrailers.png (change accordingly (button attached))

Example usage - http://www.gametrailers.com/video/launch-trailer-driver-san/720144

720144

Other Game trailer bbcodes
GameSpot - https://vborg.vbsupport.ru/showthread.php?t=272918
IGN - https://vborg.vbsupport.ru/showthread.php?t=272919

thecore762
09-06-2011, 10:22 PM
Thanks :)
Will test it out tonight.

GE-Tom
10-20-2011, 02:12 PM
Very nice. Easy stuff. Works fine with 4.1.7.

Gemma
10-23-2011, 07:17 PM
Added demo link to OP.

skido
05-16-2012, 01:14 AM
Thank you, simple and it works great :D

MonkYZ
06-18-2013, 11:48 PM
Anybody got the updated code for Gametrailers?

MaLTRaiN
07-18-2013, 10:03 PM
Anybody got the updated code for Gametrailers?

Same here... really looking for this.

OUTL4W
10-28-2013, 05:01 AM
Same here... really looking for this.

old thread but updated
Replacement:

<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><iframe src="http://media.mtvnservices.com/embed/mgid:arc:video:gametrailers.com:{param}" width="512" height="288" frameborder="0"></iframe><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;"></div></div>


click embed link on gametrailers page and then copy the long hex-decimal string in red...and paste between [gametrailers][/*gametrailers] bb code....

example embed link:
<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><iframe src="http://media.mtvnservices.com/embed/mgid:arc:video:gametrailers.com:367821e3-b3ed-4c97-a38f-5f3e1c91dfe1" width="512" height="288" frameborder="0"></iframe><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;"><b><a href="http://www.gametrailers.com/games/txrh4u/demonicon">Demonicon</a></b></p></div></div>

hope this helps....