> Forums > Active Forums > Community Support > YouTube in Forum Posts
Last Post 09 Jun 2011 11:49 AM by NFXBeats. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Berney
Registered Users
Berney
Post Count:5

--
01 Jun 2011 04:08 PM
    • Active Forums Version: 4.3.5
    • DotNetNuke Version: 5.6.2
    Hello,

    I have seen quite a few posts dating back a few years with users requesting YouTube functionality. I found a response from Will saying that it was possible with filters but there was no further explanation.

    I would like it, if when my users post a YouTube link, that is shows a player instead of a plain link. It seems that most om my competitors sites (that are based on PHP) can do this out of the box.

    I need to find a solution for this because my users expect it, plus it enahances the community and makes the post more attractive.

    I've seen this done several ways elsewhere:

    1.) YouTUbe links are automaticallt converted
    2.) YouTube links must be wrapped in [VIDEO][/VIDEO] tags and a button exists on the editor toolbar to make this simpler for users.

    Please tell me how can I accomplish this with ActiveForums or if it simply isn't possible. I am not a guru of RegEx and I don't see how I can do this with a standard filter. Am I overlooking something?

    Please advise.
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    01 Jun 2011 04:40 PM
    Please see the similar topic here:

    http://www.activemodules.com/active...rum-posts/
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    01 Jun 2011 07:02 PM
    Berney,

    If you have the Telerik RadEditor or the dnnWerk Radeditor, you can embed videos into your posts.

    For the Telerik RadEditor that comes with DNN 5.x you have to update your tools.xml file with: < tool name="PasteAsHtml"/ > . Then your editor will have the option for users to paste html into their posts.

    For the dnnWerk Radeditor (on codeplex), pretty much the same thing. By default, it comes with a "paste html" dropdown tool for multiple options.

    The hard part is coaching your users to utilize the functionality. I've thought of changing out the icon that would stand out more, but I haven't had the time to do it.

    See attached photo:




    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Berney
    Registered Users
    Berney
    Post Count:5

    --
    03 Jun 2011 06:40 PM
    Thanks for the reply. I'm about to start digging through your suggestion, but before I waste any time on it, I'm wondering if this requires my users to be intelligent enough to paste complete html <object> taga. If so, I'm afraid this solution would never fly. I need them to be able to past a simple YouTube utl and have it automatically converted to an object tag.

    People keep saying that this can be done with a filter and that others have done it, but I am yet to see an example site url that I could research or a sample filter. I also got a suggestion that it would work the same as the URL replacement filter. This sounded promising, right up to the point when I relaized that there is no URL filter in my filters list. Maybe this is assumed in the latest version and hardcoded?

    I can't believe that the last 50 posts aren't requesting this same functionality. It almost indicates that no really large community sites are using this software and that frightens me! Nearly every community site I participate in has a simple YouTube button that inserts the tags.
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    09 Jun 2011 11:38 AM
    I've implmented a feature using embed.ly and a custom regex replace httpmodule.

    The reason why I had to write my own regex replace module (PageBlaster may work for you as well, but it didn't work on AF AJAX page loads for me), is because I wanted to allow people to embed media but I did not want them to have the ability to post script. If you use the ActiveForums filters to accomplish this, you users will need to have the right to insert script because filters only work on posting the topics - it changes the message and saves it. My solution works when displaying the topics - it saves the {embed} code as text and replaces it with script when sending to the client.

    What my users do is put in something like this:

    {embed=http://www.youtube.com/watch?v=KQbySwxU8L4}

    and it calls embed.ly to get the script needed. All the need to do is post the URL that appears in their browser after the embed=

    See this post on my site for example and see what it looks like: http://warbeats.com/Community/Forums/aft/2823

    The great thing about using embed.ly is that it supports 218 media sites. see: http://api.embed.ly/

    Status: I'm no longer moderated.
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    09 Jun 2011 11:49 AM
    Posted By Berney on 03 Jun 2011 07:40 PM

    I can't believe that the last 50 posts aren't requesting this same functionality. It almost indicates that no really large community sites are using this software and that frightens me! Nearly every community site I participate in has a simple YouTube button that inserts the tags.

    FWIW, I agree with you on this. I suggested to Will that he look into incorporating embed.ly over a year ago (April 2010). I mean how many forums support over 200 embeddable media sites that easily?

    Even if will had supported filters running on display (rather than on post), it would be a tremendous advantage because then filters would fit this model perfectly and be easily update able. This I first suggested almost 2 years ago (July 2009)

    I have been told was that my needs for this were in the minority and therefore not a priority. I hope your voice is heard.
    Status: I'm no longer moderated.
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > YouTube in Forum Posts
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy