-
AuthorPosts
-
May 13, 2014 at 3:15 pm #197722
Hi,
I have a problem with JA Social Feed Plugin, only with Instagram. I can import items from # and POPULAR, but not from @ (specific user). When i click on verify, the rss feed appears correctly, but nothing is imported when i click on Cron.
Can anybody help me please?
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
May 14, 2014 at 3:21 am #535010I have just checked instagram service, it might have just modified rss feed for user feed which causes this issue.
To get this fixed, please try solution below:
– Open the file:
plugins/system/jasocial_feed/jasocial_feed.php– Find and replace code snippet:
[PHP]$item = @$x->item($i);
if(!is_object($item)) {
break;
}$it = new stdClass();
$it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;[/PHP]– And replace it with:
[PHP]$item = @$x->item($i);
if(!is_object($item)) {
continue;
}$it = new stdClass();
if($item->getElementsByTagName(‘image’)->item(0)) {
$it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;
} else {
$images = $this->parseImageFromContent($item->getElementsByTagName(‘description’)->item(0)->childNodes->item(0)->nodeValue);
$it->image = $images[0];
}[/PHP]May 14, 2014 at 11:49 am #535105Hi, now it works, but with another problem. The plugin get the profile image in all posts, not the image of the post 🙂
Can you help me please? Thank you 🙂
May 14, 2014 at 12:51 pm #535114I changed the code:
[PHP]$item = @$x->item($i);
if(!is_object($item)) {
continue;
}$it = new stdClass();
if($item->getElementsByTagName(‘image’)->item(0)) {
$it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;
} else {
$images = $this->parseImageFromContent($item->getElementsByTagName(‘description’)->item(0)->childNodes->item(0)->nodeValue);
$it->image = $images[0];
} [/PHP]to
[PHP]$item = @$x->item($i);
if(!is_object($item)) {
continue;
}$it = new stdClass();
if($item->getElementsByTagName(‘image’)->item(0)) {
$it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;
} else {
$images = $this->parseImageFromContent($item->getElementsByTagName(‘description’)->item(0)->childNodes->item(0)->nodeValue);
$it->image = isset($images[1]) ? $images[1] : $images[0];
} [/PHP]And now the plugin works, but only if i chose Save Image. If i chose no, it doesn’t work
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
May 15, 2014 at 2:39 am #535236I just checked your pinterest profiles, they all disable “Save image” option, but the plugin still gets image from external site properly, is that what you mean?
May 15, 2014 at 3:24 pm #535326Sorry, my mistake, the plugin work perfectly now, thank you.
May 22, 2014 at 1:32 pm #536233Hey Dead Code, can you help me again please.
Now i have a problem with Twitter.
The plugin imports correctly the tweets, but always with the same image (profile image of the user), not the image of the post. Can you help me please?
Thank you.
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
May 23, 2014 at 4:59 am #536346Hi Pedro,
To resolve this issue, you need to edit Twitter profiles to update Minimum Image width and Minimum Image Height settings to a lager image size of twitter avatar (73×73),
I see your site currently sets this with 1×1. Since JA Social Feed plugin gets first image from page that has larger size than image size that is configured in profile, so all items will get user avatar image now (because avatar is the first image in page).
E.g: https://twitter.com/NereidaOficial/status/469584268721934336/photo/1
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by Thanh Nguyen Viet 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum