vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to write a BBCode for Game Trailers.? (https://vborg.vbsupport.ru/showthread.php?t=265684)

Gamelobby 06-23-2011 06:55 AM

How to write a BBCode for Game Trailers.?
 
I would really like to be able to just use bbcode to embed GT videos, but the only thing i can find is AME & that is too complex to bother for just GameTrailers.

Here is the embed code for GT..
Code:

<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:716680" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed><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;">Tags: <a href="http://www.gametrailers.com">GameTrailers.com</a>, <a href="http://www.gametrailers.com/video/e3-2011-nhl-12/716680">E3 2011: Gameplay Demo (Cam)</a>, <a href="http://pc.gametrailers.com/">PC Games</a>, <a href="http://ps3.gametrailers.com/">PlayStation 3</a>, <a href="http://xbox360.gametrailers.com/">Xbox 360</a></p></div></div>
I'm guessing a bbcode can be written for almost anything, so im also guessing this should be pretty easy.. And if i am correct can anyone help me.?
Or is it more difficult than i think.?


Thanks for any feedback either way. :D

khaos44 06-30-2011 02:21 AM

Found this trailer on youtube.
http://www.youtube.com/watch?v=ofHiLxDrx4U

If you add the Youtube Link Auto Parser you can copy the link straight too you forum.
If you want a bbcode for youtube then

Title Youtube
BB Tag Youtube
HTML <object width="640" height="480"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Example [youtube]ejOJkcs-a7s[/youtube]
Description Embed YouTube videos in your post.
You just have to put the video ID of the video to be embedded
inside the YouTube BBCode, and it will automatically parse it
into the flash video.
Use {option} NO

Gamelobby 06-30-2011 10:06 PM

I don't want a bbcode for youtube..!?

Gemma 06-30-2011 10:35 PM

Title: Game Trailers
BB Code Tag: gametrailers
Replacement:
Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">  <param name="allowScriptAccess" value="sameDomain" />    <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid={param}"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid={param}" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed> </object>
Example: [gametrailers]716958[/gametrailers]

Just take the number part of the trailer
ie http://www.gametrailers.com/video/behind-2027-deus-ex/716958

Only plays the SD versions on your site though, clicking HD takes you to their site. Don't know if that helps you.

Gamelobby 08-03-2011 01:16 AM

That looks perfect.!!

Any idea how i can write the RSS Feed link to work.?

Quote:


Code:

{feed:title}
{feed:content:encoded}
{feed:enclosure_href}

{feed:description}

[gametrailers]{feed:link}[/gametrailers]



Gamelobby 09-06-2011 04:06 PM

I think Game Trailers changed something, it doesn't work anymore. :(
If you click on it now you get an iframe window that shows the whole GT site in a little video window.

Gemma 09-06-2011 04:37 PM

In the bbcode manager use this as the 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>

https://vborg.vbsupport.ru/showthread.php?p=2242682

Gamelobby 09-09-2011 07:19 AM

Worked like a charm.!!
Thank you very much. :)


All times are GMT. The time now is 06:02 AM.

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.01034 seconds
  • Memory Usage 1,732KB
  • 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
  • (4)bbcode_code_printable
  • (1)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