- Posts: 39
COMMUNITY FORUM
Working GameTrailers Code
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
"gametrailers" => array("<object id=\"gtembed\" width=\".$cwidth.\" height=\".$cheight.\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"http://www.gametrailers.com/remote_wrap.php?mid=***code***\"/> <param name=\"quality\" value=\"high\" /> <embed src=\"http://www.gametrailers.com/remote_wrap.php?mid=***code***\" swLiveConnect=\"true\" name=\"gtembed\" align=\"middle\" allowScriptAccess=\"sameDomain\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\".$cwidth.\" height=\".$cheight.\"></embed> </object>", "#{gametrailers}(.*?){/gametrailers}#s") ,
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
"gamevideos" => array("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\".cwidth.\" height=\".$cheight.\" id=\"gamevideos6\" align=\"middle\">www.gamevideos.com:80/swf/gamevideos11.swf?embedded=1&fullscreen=1&autoplay=0&src=http://www.gamevideos.com:80/video/videoListXML%3Fid%3D***code***%26ordinal%3D1185585231098%26adPlay%3Dfalse\" />
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
GameTrailers.com (replace old code with this code)
"gametrailers" => array("<object style=\"".$width." ".$height."\" id=\"gtembed\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"http://www.gametrailers.com/remote_wrap.php?mid=***code***\"/> <param name=\"quality\" value=\"high\" /> <embed src=\"http://www.gametrailers.com/remote_wrap.php?mid=***code***\" swLiveConnect=\"true\" name=\"gtembed\" align=\"middle\" allowScriptAccess=\"sameDomain\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" style=\"".$width." ".$height."\"></embed> </object>", "#{gametrailers}(.*?){/gametrailers}#s") ,
GameVideos.com (just insert underneath GameTrailers code
"gamevideos" => array("<object style=\"".$width." ".$height."\" id=\"gamevideos6\" align=\"middle\"><param name=\"quality\" value=\"high\"><param name=\"play\" value=\"true\"><param name=\"loop\" value=\"true\"><param name=\"scale\" value=\"showall\"><param name=\"wmode\" value=\"window\"><param name=\"devicefont\" value=\"false\"><param name=\"bgcolor\" value=\"#000000\"><param name=\"menu\" value=\"true\"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"allowFullScreen\" value=\"true\"><param name=\"salign\" value=\"\"><param name=\"movie\" value=\"http://www.gamevideos.com:80/swf/gamevideos11.swf?embedded=1&fullscreen=1&autoplay=0&src=http://www.gamevideos.com:80/video/videoListXML%3Fid%3D***code***%26ordinal%3D1185585231098%26adPlay%3Dfalse\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> <embedsrc=\"http://www.gamevideos.com:80/swf/gamevideos11.swf?embedded=1&fullscreen=1&autoplay=0&src=http://www.gamevideos.com:80/video/videoListXML%3Fid%3D***code***%26ordinal%3D1185585231098%26adPlay%3Dfalse\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" play=\"true\" loop=\"true\" scale=\"showall\" wmode=\"window\" devicefont=\"false\" id=\"gamevideos6\" bgcolor=\"#000000\" name=\"gamevideos6\" menu=\"true\" allowscriptaccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" align=\"middle\" style=\"".$width." ".$height."\"/></object>", "#{gamevideos}(.*?){/gamevideos}#s") ,
Tested in both IE 7, 6, and Firefox 2, if you are using another browser, click the link above and let post here if it does or doesn't work.
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- Pickerd
-
- Offline
- New Member
- Posts: 6
Only thing I need to learn is where I put that code. I'm very new to joomla and the plugin.
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
"gametrailers" => array("<object style=\"".$width." ".$height."\" id=\"gtembed\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"http://www.gametrailers.com/remote_wrap.php?mid=***code***\"/><param name=\"allowFullScreen\" value=\"true\" /><param name=\"quality\" value=\"high\" /> <embed src=\"http://www.gametrailers.com/remote_wrap.php?mid=***code***\" swLiveConnect=\"true\" name=\"gtembed\" align=\"middle\" allowScriptAccess=\"sameDomain\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" style=\"".$width." ".$height."\"></embed> </object>", "#{gametrailers}(.*?){/gametrailers}#s") ,
Here is a bonus for the gaming sites, Xbox GamerTag Integration, use {xbox}{/xbox} with the GamerTag in between them.
"xbox" => array("<iframe src=\"http://gamercard.xbox.com/***code***.card\" scrolling=\"no\" frameBorder=\"0\" height=\"140\" width=\"204\">***code***</iframe>", "#{xbox}(.*?){/xbox}#s") ,
Just post it somewhere around the gametrailers area.
Please Log in or Create an account to join the conversation.
- Tom R Earley
-
- Offline
- New Member
- Posts: 2
www.supersmartgames.com
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- Pickerd
-
- Offline
- New Member
- Posts: 6
TY ia
Please Log in or Create an account to join the conversation.
- Pickerd
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Snoozer
-
- Offline
- New Member
- Posts: 1
I tried uploading the video to my FTP server but it takes forever to buffer when it shouldn't.
Can someone walk me through what I'm doing with the code mentioned in this thread and where to put it / alter it so it works. This is one of the main reasons as to why I upgraded to a site from my blog, because it meant I could embed.
Any help would be much appriciated.
Please Log in or Create an account to join the conversation.
- webace98
-
- Offline
- New Member
- Posts: 1
Then open up this file in notepad and scroll down almost half way to see the gametrailers section.
Replace what is there with:
"gametrailers" => array("<object style=\"".$width." ".$height."\" id=\"gtembed\"><param name=\"allowScriptAccess\"
value=\"sameDomain\" /> <param name=\"movie\" value=\"www.gametrailers.com/remote_wrap.php?mid=***code***\"/>
name=\"allowFullScreen\" value=\"true\" /><param name=\"quality\" value=\"high\" /> <embed
src=\"www.gametrailers.com/remote_wrap.php?mid=***code***\" swLiveConnect=\"true\" name=\"gtembed\" align=\"middle\"
allowScriptAccess=\"sameDomain\" quality=\"high\" pluginspage=\"www.macromedia.com/go/getflashplayer\"
type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" style=\"".$width." ".$height."\"></embed> </object>", "#
{gametrailers}(.*?){/gametrailers}#s") ,
Then save the file in a new folder named something like "allvideos-gtfix.
Next go back to your ftp program and go back to the mambots/content folder and rename the old php file - its good to always save the original - just add -orig to the name before the file extension. Then use the ftp program to upload your fixed php file. That should do it.
This updated Gametrailers code is not mine - it is from Koltz who posted it earlier.
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
"ign" => array("<embed src=\"http://videomedia.ign.com/ev/ev.swf\" flashvars=\"object_ID=***code***\" type=\"application/x-shockwave-flash\" width=\"433\" height=\"360\" ></embed>", "#{ign}(.*?){/ign}#s") ,
Please Log in or Create an account to join the conversation.
- Pickerd
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- 8-Bit Classics
-
Topic Author
- Offline
- Junior Member
- Posts: 39
Please Log in or Create an account to join the conversation.
- Pickerd
-
- Offline
- New Member
- Posts: 6
Another thing, off topic, that isnt documented well, is where do you put flash movies locally for the All Video's plugin to read them? Lets say I download a flash video to upload to my box, where do they go? Ive never figured that out.
Please Log in or Create an account to join the conversation.