1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest URLs Not Parsed in Feeds Importer

Discussion in 'Closed Suggestions' started by Kevin, Feb 22, 2012.

  1. Kevin

    Kevin Well-Known Member

    To clarify that title a bit.... :LOL:

    I have a few Registered Feeds to pull in some RSS feeds. That part is working fine. To give proper credit with some of the feeds the content is being wrapped inside of quote tags.

    [quote]{content}[/quote]​

    The problem I'm having is that if the content includes a URL then that URL is not being parsed into a clickable link. Links that are in the content that are in anchor tags are being properly converted to URL BB Code tags but not plain URLs. If I edit the new post that was created, change nothing, save it, then the URL is getting parsed as expected.

    Any work around to save me from having to edit each post that is imported from a feed? :coffee:
     
  2. Mike

    Mike XenForo Developer Staff Member

    The RSS feed importer doesn't try to turn any URLs into links - it simply accepts the HTML as is and converts it to BB code, so the quote tag wouldn't really change anything here.

    I'll move this to suggestions though.
     
    Kevin likes this.
  3. Kevin

    Kevin Well-Known Member

    Mike, thanks for clarifying. :)

    Your explanation also explains then why trying to import some feeds with media links (eg: links to YouTube videos) that they don't get converted to embed tags. One more thing I can scratch off my "HHHHmm..... I wonder why...." list. :D
     
  4. fronix

    fronix Member

    I just noticed that It is fairly easy to "fix" this.

    Go to library/XenForo/Model/Feed.php
    Find $postWriter = $writer->getFirstMessageDw();
    Make some room and then put this line there
    PHP:
            $entryData['message'] = XenForo_Helper_String::autoLinkBbCode($entryData['message']);
    It fixes the links, media links and some other stuff.

    However I do not know what you can break with this but it works for me.
     
    Last edited by a moderator: Jul 7, 2013
    Jake Bunce likes this.
  5. RobinHood

    RobinHood Well-Known Member

    ^ So, just to confirm fronix, does your edit allow YouTube video be posted in threads created by a registered feed?

    If so you do you have this working on a site I can take a peek at per chance?
     
  6. fronix

    fronix Member

    Yes it works with all the media tags.

    Check http://www.maera.se/forum/forums/valpskott.48/ for a live preview =)
     
  7. RobinHood

    RobinHood Well-Known Member

    I've made the modification, but I'm not sure if it's working or not.

    The type of feed I'm importing is a YouTube channel feed, currently when it imports it looks like:

    Thumbnail image of the video

    The video title

    Video description

    From

    Views

    Picture of star ratings

    Time

    Because YouTube doesn't make it easy to find a link to a feed I take the url for the channel page, enter it into Google Reader, select the subscription. Then go to Feed Settings -> View Details & Statistics to get the link, which I then paste into the feeder as a registered feed.

    I'm trying to get it so that the image of the video is actually the video itself embedded into the post. Any ideas of that's possible?
     
  8. fronix

    fronix Member

    Try using this link instead:

    http://gdata.youtube.com/feeds/api/users/NAMEOFYOUTUBER/uploads
     
  9. RobinHood

    RobinHood Well-Known Member

    Hmm.. unfortunately not.

    Using the same default feed settings it displays even less info, just a single sentence from the video description.

    Feed settings:

    {content}

    Continue reading...
     
  10. Ferdinand

    Ferdinand Active Member

    Has this been resolved, some of my feeds do not keep the videos either.
     

Share This Page