vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - GameTrailers BBCode (https://vborg.vbsupport.ru/showthread.php?t=269784)

Gemma 09-05-2011 10:00 PM

GameTrailers BBCode
 
1 Attachment(s)
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:
Code:

<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: [gametrailers]33772[/gametrailers]
User Option: No
Button Image (Optional): path-to-your-styles/editor/gametrailers.png (change accordingly (button attached))

Example usage - http://www.gametrailers.com/video/la...ver-san/720144

[gametrailers]720144[/gametrailers]

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

Quote:

Originally Posted by MonkYZ (Post 2429025)
Anybody got the updated code for Gametrailers?

Same here... really looking for this.

OUTL4W 10-28-2013 05:01 AM

Quote:

Originally Posted by MaLTRaiN (Post 2434339)
Same here... really looking for this.

old thread but updated
Replacement:
Code:

<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....


All times are GMT. The time now is 11:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01145 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete