Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Auto detect youtube urls and embed the video (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Auto detect youtube urls and embed the video
#54747
Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Sometimes for a user is easier to just copy the url of a video she wants to share instead of using special tags.

I wanted Fireboard (1.0.4) to be able to detect youtube urls and automatically embed the video so users wont have to cut the id of the video (find the id, cut it and put tags around it is not trivial for a lot of novice users).

Maybe someone will find this useful.

Instructions:

Replace the function named hyperlink in the file components/com_fireboard/sources/interpreter.fireboard.inc.php with the modified function in the attachment

(Updated file: There was a problem with youtube urls that contain additional parameters, fixed now. Attachment is in next message)
Hugo Zapata
hugozap (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/07/30 02:07 By hugozap.
 
The administrator has disabled public write access.  
#54748
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Here is the Corrected function
File Attachment:
File Name: hyperlink_function__Fixed_.txt
File Size: 1645
hugozap (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/07/29 15:01 By hugozap.
 
The administrator has disabled public write access.  
#54822
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Let me try!

Thank you very much.
viet4777 (User)
Senior Boarder
Posts: 291
graphgraph
User Offline Click here to see the profile of this user
Luyenkim.NET
Logged Logged
 
Luyenkim.Net
utf-8 Vietnamese language package will be complete in mid of Oct.
luyenkim.net/home9/index.php?option=com_...5&id=282#282
 
The administrator has disabled public write access.  
#54842
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Hey, this is pretty cool. Thanks for the update.
It seems to work nicely when the text of the hyperlink is the hyperlink, but it doesn't catch videos where the hyperlink is masked behind other text.

For example, if someone were to make a link like , the video does not get imbedded.

Is there anyway to have fireboard imbed the video if you do it that way?

Thanks again.
Cristole (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54843
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Also, I'm assuming there's no way for the hyperlink function you've modified to determine if the youtube URL was included in a forum signature?

Thanks.
Cristole (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54851
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Hi Cristole
You are right, this solution doesnt catch ( url = www.youtube.com )This is my video( / url ) links.

If you need to use tags, i think plugins like allvideos will be the choice if your users are familiar with tags.

Also, about the signature, yes, if you write the url in your signature (without tags) , it will be auto embedded. However if you dont want the video to be embedded, just the link shown you can use the normal -url- tag which is another advantage of not replacing links created with the url tag

Hugo
hugozap (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/07/31 06:33 By hugozap.
 
The administrator has disabled public write access.  
#54923
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Hugo,
Thanks for the response. I saw the other fixes to add [ video ] tags, and one of them was had a lot of functionality, but I like your simple solution of automatically imbedding youtube videos when the url is provided.

I may integrate the other plugin to my site at some point, but since youtube is really all my people post videos from, I think your solution should be sufficient.
Cristole (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54934
Re:Auto detect youtube urls and embed the video 3 Months, 3 Weeks ago  
Cristole wrote:
For example, if someone were to make a link like , the video does not get imbedded.

in FB1.0.5 you can use to show the video or if you can't wait then you can try to use this addon
racoon (User)
FB Core Team
Senior Boarder
Posts: 355
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/08/01 18:03 By racoon.
 
The administrator has disabled public write access.  
Go to top