- Posts: 3
 
COMMUNITY FORUM
Remove Youtube Title in Allvideos
- lizzieid
 - 
				
Topic Author
 - Offline
 - New Member
 
		Less
		More
		
			
	
		
			
	
						13 years 3 months ago				#49716
		by lizzieid
	
	
		
			
	
			
			 		
													
	
				Remove Youtube Title in Allvideos was created by lizzieid			
			
				How can I change the php code to remove the initial display of the youtube title? I would like to have just a clean video image when it loads on the page.
Thank you!
					Thank you!
Please Log in or Create an account to join the conversation.
- thirdestate
 - 
				
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 3
 
			
	
						13 years 3 weeks ago				#49717
		by thirdestate
	
	
		
			
	
			
			 		
													
	
				Replied by thirdestate on topic Re: Remove Youtube Title in Allvideos			
			
				Did you find an answer on this?  I'd love to do the same thing!			
					Please Log in or Create an account to join the conversation.
- johanna25
 - 
				
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 2
 
			
	
						13 years 3 weeks ago		 -  13 years 2 weeks ago		#49718
		by johanna25
	
	
		
			
	
			
			 		
													
	
				Replied by johanna25 on topic Re: Remove Youtube Title in Allvideos			
			
				Is it actually possible to make the YouTube title disappear when the video loads in your site? I wanted to do just the same. (Johanna @ 
	Mortgage Brokers
 )			
					Please Log in or Create an account to join the conversation.
- Katia
 - 
				
 - Offline
 - Platinum Member
 
		Less
		More
		
			
	
		- Posts: 4696
 
			
	
						13 years 3 weeks ago				#49719
		by Katia
	
	
		
			
	
			
			 		
													
	
				Replied by Katia on topic Re: Remove Youtube Title in Allvideos			
			
				You may not use videos from a video provider if you don't want the video providers name to be shown.			
					Please Log in or Create an account to join the conversation.
- thirdestate
 - 
				
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 3
 
			
	
						13 years 3 weeks ago				#49720
		by thirdestate
	
	
		
			
	
			
			 		
													
	
				Replied by thirdestate on topic Re: Remove Youtube Title in Allvideos			
			
				Actually I found the answer myself just earlier.  it's not an AllVideos function, but it is built into YouTube's parameters.  Check this link for all the modifiiable parameters of an embedded YouTube video:
developers.google.com/youtube/player_parameters#showinfo
					developers.google.com/youtube/player_parameters#showinfo
Please Log in or Create an account to join the conversation.
- JDevise
 - 
				
 - Offline
 - Junior Member
 
			
	
						13 years 2 weeks ago				#49721
		by JDevise
	
	
		
			
	
			
			 		
													
	
				Replied by JDevise on topic Re: Remove Youtube Title in Allvideos			
			
				Thanks thirdestate for your reply , I'm sure it will help others .			
							
					Please Log in or Create an account to join the conversation.
- johanna25
 - 
				
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 2
 
			
	
						13 years 2 weeks ago				#49722
		by johanna25
	
	
		
			
	
			
			 		
													
	
				Replied by johanna25 on topic Re: Remove Youtube Title in Allvideos			
			
				Thanks, thirdestate. I wanna give that a try.  :)			
					Please Log in or Create an account to join the conversation.
- eemeli
 - 
				
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 1
 
			
	
						11 years 9 months ago				#49723
		by eemeli
	
	
		
			
	
			
			 		
													
	
				Replied by eemeli on topic Re: Remove Youtube Title in Allvideos			
			
				You can edit the "sources.php" file in plugin's includes folder.
Find the section of the code related to Youtube, approx row 268. After {SOURCE} add the Youtube parameters you want to use. I used "showinfo" to hide the player title and "controls" to hide the player controls until the video starts.
Like this: {SOURCE}&showinfo=0&controls=2\"
Those can probably be added in the actual tags too in your content, but I added these in the code to make sure all videos on the site are displayed in the same way, even if someone is adding new codes and doesn't what parameters to use. (Customer's site, and they want it easy)
					Find the section of the code related to Youtube, approx row 268. After {SOURCE} add the Youtube parameters you want to use. I used "showinfo" to hide the player title and "controls" to hide the player controls until the video starts.
Like this: {SOURCE}&showinfo=0&controls=2\"
Those can probably be added in the actual tags too in your content, but I added these in the code to make sure all videos on the site are displayed in the same way, even if someone is adding new codes and doesn't what parameters to use. (Customer's site, and they want it easy)
Please Log in or Create an account to join the conversation.
- Enzo Borri
 - 
				
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 1
 
			
	
						8 years 6 months ago		 -  8 years 6 months ago		#161605
		by Enzo Borri
	
	
		
			
	
	
			 		
													
	
				Replied by Enzo Borri on topic Re: Remove Youtube Title in Allvideos			
			
				Just for the newbie like me ;-) a full detailed description:
Access the Joomla site with an FTP client
Navigate to:
Plugins
Content
jv_allvideos
jv_allvideos
includes
Download the file "sources.php"
In the downloaded file, at line 236 (maybe will be different in other plugin's versions) you will find:
/* --- Major 3rd party video providers --- */
There is another commented line after this; ignore it.
The first line of code in this section will begin with: "YouTube" =>
In this line add "&showinfo=0" (without quotes) after "{SOURCE}"
The first part of the line will be changed then from:
"YouTube" => "<iframe src=\"//www.youtube.com/embed/{SOURCE}\" width=
to
"YouTube" => "<iframe src=\"//www.youtube.com/embed/{SOURCE}&showinfo=0\" width=
Save the modified file. Before uploading it, rename the remote file from "sources.php" to something like "ORIGINAL_sources.php" or "OLD_sources.php" or anything else to be able to restore the original version in case of need.
Now, upload the modified "sources.php" file.
Clear the caches (I think this may be needed bot not sure) and enjoy the videos from youtube without title over the preview.
I hope this help!
Ciao and regards
Enzo
					Access the Joomla site with an FTP client
Navigate to:
Plugins
Content
jv_allvideos
jv_allvideos
includes
Download the file "sources.php"
In the downloaded file, at line 236 (maybe will be different in other plugin's versions) you will find:
/* --- Major 3rd party video providers --- */
There is another commented line after this; ignore it.
The first line of code in this section will begin with: "YouTube" =>
In this line add "&showinfo=0" (without quotes) after "{SOURCE}"
The first part of the line will be changed then from:
"YouTube" => "<iframe src=\"//www.youtube.com/embed/{SOURCE}\" width=
to
"YouTube" => "<iframe src=\"//www.youtube.com/embed/{SOURCE}&showinfo=0\" width=
Save the modified file. Before uploading it, rename the remote file from "sources.php" to something like "ORIGINAL_sources.php" or "OLD_sources.php" or anything else to be able to restore the original version in case of need.
Now, upload the modified "sources.php" file.
Clear the caches (I think this may be needed bot not sure) and enjoy the videos from youtube without title over the preview.
I hope this help!
Ciao and regards
Enzo
		Last edit: 8 years 6 months ago  by Enzo Borri.		Reason: A video was appearing in the first version due to a commented code interpreted by the site.	
			Please Log in or Create an account to join the conversation.