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 and other files
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...
Auto detect youtube urls and embed the video
TOPIC: Auto detect youtube urls and embed the video
#54747
Auto detect youtube urls and embed the video 9 Years, 2 Months 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 ([b]1.0.4[/b]) 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.

[b]Instructions:[/b]

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

[color=#008000][b](Updated file: There was a problem with youtube urls that contain additional parameters, fixed now. Attachment is in next message)[/b][/color]
Hugo Zapata
#54747
Auto detect youtube urls and embed the video 9 Years, 2 Months 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 ([b]1.0.4[/b]) 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.

[b]Instructions:[/b]

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

[color=#008000][b](Updated file: There was a problem with youtube urls that contain additional parameters, fixed now. Attachment is in next message)[/b][/color]
Hugo Zapata
#54748
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months ago  
Here is the Corrected function [file name=hyperlink_function__Fixed_.txt size=1645]http://fireboard.bestofjoomla.com/images/fbfiles/files/hyperlink_function__Fixed_.txt[/file]
#54822
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months ago  
Let me try!

Thank you very much.
#54842
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months 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 [url=http://www.youtube.com/watch?v=qg1ckCkm8YI]this[/url], the video does not get imbedded.

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

Thanks again.
#54843
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months 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.
#54851
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months ago  
Hi Cristole
You are right, this solution doesnt catch ( url = http://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
#54923
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months 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.
#54934
Re:Auto detect youtube urls and embed the video 9 Years, 2 Months ago  
[b]Cristole wrote:[/b]
[quote]For example, if someone were to make a link like [url=http://www.youtube.com/watch?v=qg1ckCkm8YI]this[/url], the video does not get imbedded.[/quote]

in FB1.0.5 you can use [video]http://www.youtube.com/watch?v=qg1ckCkm8YI[/video] to show the video or if you can\'t wait then you can try to use this [url=http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/id,36464/catid,68/]addon[/url] ;)
Page: 1