Best of joomla gives you news, joomla templates, extensions, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Dear FireBoard users,
In order to further develope the need of Joomla for a robust forum, FireBoard component has been moved to its own new home and new name. You can find more information regarding the Kunena, the successor of FireBoard, at kunena.com. The current forum here will stay for some time more for referencing needs. You can find the FireBoard files under joomlacode.org.
Upgrading to Kunena is highly recommended!

Kunena! - To Speak!

A revolution is coming... Kunena - Swahili for: To Speak! THE Next generation of native Joomla based Forum ultra component. Forget what you know about Joomla based forums...
Amazingly Simple Lean and Clean Easier Customization
Kunena is about to redefine the world of Joomla! with the most simplistic ultra component out there. For ultimate performance based on state of the art development techniques, Kunena! is about to bring you... With an integrated plugin system that will allow you to extend Kunena beyond your wildest imaginations...
Welcome, Guest
Please Login or Register.    Lost Password?
Auto detect youtube urls and embed the video (1 viewing) (1) Guest
TOPIC: Auto detect youtube urls and embed the video
#54747
Auto detect youtube urls and embed the video 11 Months, 1 Week 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.
 
 
#54748
Re:Auto detect youtube urls and embed the video 11 Months, 1 Week 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.
 
 
#54822
Re:Auto detect youtube urls and embed the video 11 Months, 1 Week 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
 
 
#54842
Re:Auto detect youtube urls and embed the video 11 Months, 1 Week 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
 
 
#54843
Re:Auto detect youtube urls and embed the video 11 Months, 1 Week 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
 
 
#54851
Re:Auto detect youtube urls and embed the video 11 Months, 1 Week 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.
 
 
#54923
Re:Auto detect youtube urls and embed the video 11 Months, 1 Week 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
 
 
#54934
Re:Auto detect youtube urls and embed the video 11 Months 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.
 
 
Go to top