-
AuthorPosts
-
July 8, 2012 at 4:21 pm #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 20Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 10, 2012 at 2:07 am #460403Hi 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.
July 12, 2012 at 1:55 am #460642I did that and for a reason youtube profile, even if I enter 100 import limit its only fetching 25 items
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 12, 2012 at 3:38 am #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 ?
July 13, 2012 at 2:22 am #460766Is it possible that the Menu Layout settings or the Global settings are restricting the number of articles, overriding the social feed settings?
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 16, 2012 at 4:38 am #460980Hi 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 Friendron shafii
- Join date:
- October 2013
- Posts:
- 28
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 7 times in 1 posts
June 2, 2013 at 12:45 am #494456Has 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 PROCESSLine 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 Friendron shafii
- Join date:
- October 2013
- Posts:
- 28
- Downloads:
- 1
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 7 times in 1 posts
June 2, 2013 at 1:07 am #494457just 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.
1 user says Thank You to ron shafii for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 5, 2013 at 10:47 am #494838@joomlagraphic: Cool, that’s right. Thanks for helping
-
AuthorPosts
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