test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • bollanga Friend
    #178912

    Hello,
    I would like to find out how I can increase the import limit for youtube items on my wall. I have more than 200 videos on my youtube channel, however, using the social plugin, I can only import 20 some items in my k2 category. Is ther a place where I can change that limit ? I chnaged it on the plugin UI, to 50 items or 100 items, it still import 20

    Sherlock Friend
    #460403

    Hi bollanga,

    In the plugin back-end, under each profile setting you would see a field of Import Limit, the default value there is 20 you could enter a greater value there that I think would help.

    bollanga Friend
    #460642

    I did that and for a reason youtube profile, even if I enter 100 import limit its only fetching 25 items

    Sherlock Friend
    #460649

    <em>@bollanga 329688 wrote:</em><blockquote>I did that and for a reason youtube profile, even if I enter 100 import limit its only fetching 25 items</blockquote>

    Maybr your youtube Feed has less than 25 items, Can you pm me your url as well as the admin account for a checking ?

    vidcom Friend
    #460766

    Is it possible that the Menu Layout settings or the Global settings are restricting the number of articles, overriding the social feed settings?

    Sherlock Friend
    #460980

    Hi bollanga,

    I have asked the developer who built this social feed plugin and he informed me that for the case of youtube, youtube rss feed would always only returned the 25 newest items so the field of Import Limit in the plugin back-end would only works with the value less than 25 (for the case of youtube).
    So there are no solutions for this issue at the moment, I hope you understand 🙂

    ron shafii Friend
    #494456

    Has this been fixed yet? I have a couple of hundred testimonial videos in my account I’d like to import into J2.5, but 25 is the restriction. I think I found a hardcoded solution, but it’s half-a55 for normal joomla users.

    I’m looking at the plugin code and it appears to be restricted here:

    /public_html/plugins/system/jasocial_feed/jasocial_feed.php


    Line 480
    //IMPORT PROCESS

    Line 485
    $fetchUrl = "http://gdata.youtube.com/feeds/base/users/".$ytName."/uploads?orderby=updated&alt=json";
    $content = $this->getContent($fetchUrl);

    Change line 485 to this:


    $fetchUrl = "http://gdata.youtube.com/feeds/base/users/".$ytName."/uploads?alt=json&start-index=26&max-results=50&orderby=updated";

    Change MAX-RESULTS to a total number you want imported. Don’t forget to modify the total number in your social feed plugin in the admin panel. If you haven’t imported 25 videos already I suppose you could just get rid of the START-INDEX=26 and keep it at its original quantity of START-INDEX=1 instead.

    This is where I located the code to update it. It appears to be part of the youtube API feed code:
    http://gdata.youtube.com/feeds/base/users/joomlart/uploads?orderby=updated&alt=json


    {"rel":"self","type":"application/atom+xml","href":"http://gdata.youtube.com/feeds/base/users/joomlart/uploads?alt=json&start-index=1&max-results=25&orderby=updated"}

    I used this line instead:


    {"rel":"next","type":"application/atom+xml","href":"http://gdata.youtube.com/feeds/base/users/joomlart/uploads?alt=json&start-index=26&max-results=25&orderby=updated"}

    ron shafii Friend
    #494457

    just a quick update since I can’t edit my previous post anymore.

    Change MAX-RESULTS to a total number you want imported no greater than 50. that’s youtube’s limit. You’ll just have to keep increasing the start-index manually until you reach the max you want imported.

    Ninja Lead Moderator
    #494838

    @joomlagraphic: Cool, that’s right. Thanks for helping

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 5 voices, and was last updated by  Ninja Lead 11 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum