YouTube Parameters
 
                              
                                
                                 mishima   145
From: -
                                 
                              
                            From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: YouTube Parameters
 
                        
                                                
                         mishima
                
                OP
   145
From: -
                         
                      
                  From: -
                    Excellent - worked a treat. Love the new forum btw  
                  
                  
                  
                 
                  1 Re: YouTube Parameters
 
                        
                                                
                         Philipp Esselbach 
                        
                        
From: -
                         
                      
                   Editor
  0From: -
                    You could do this with a regex in the PHP part of the following templates:
news_story (news frontpage)
news_story_extended (news details page)
articles_pages (articles page)
Change that ?rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1&fs=1 part to whatever you like
                  
                  
                news_story (news frontpage)
$insert['newsstory_story'] = preg_replace( "/http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)/i", " http://www.youtube.com/v/"> http://www.youtube.com/v/"> http://www.youtube.com/v/\\1?rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1&fs=1", $insert['newsstory_story'] );
news_story_extended (news details page)
$insert['newsstory_story'] = preg_replace( "/http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)/i", " http://www.youtube.com/v/"> http://www.youtube.com/v/"> http://www.youtube.com/v/\\1?rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1&fs=1", $insert['newsstory_story'] );
$insert['newsstory_extendedstory'] = preg_replace( "/http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)/i", " http://www.youtube.com/v/"> http://www.youtube.com/v/"> http://www.youtube.com/v/\\1?rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1&fs=1", $insert['newsstory_extendedstory'] );
articles_pages (articles page)
$insert['articlepage_text'] = preg_replace( "/http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)/i", " http://www.youtube.com/v/"> http://www.youtube.com/v/"> http://www.youtube.com/v/\\1?rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1&fs=1", $insert['articlepage_text']);
Change that ?rel=1&color1=0x2b405b&color2=0x6b8ab6&border=1&fs=1 part to whatever you like
 
               
          
Hey,
I was having a read of this: YouTube Embedded Player Parameters - YouTube APIs and Tools - Google Code and the bottom section details how you can tweak things to include different colour on the player.
How can we do this to the embedded videos on the site?
Thanks