-
AuthorPosts
-
giusti2 Friend
giusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 16, 2013 at 12:36 pm #187546Hello.
I would like to import facebook posts by the social feed plugin, but the articles have to be always featured. How can I do this?
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
May 17, 2013 at 3:10 am #493059Hi giusti2,
The feeds are not always look good so it should be modified before being set it to featured.
JA Social Feeds does not provide this function by default. You need to customize a bit
Open
pluginssystemjasocial_feedtablesjoomla.phpand set $item[‘featured’] = ‘1’; on line 66
If you use K2 you can set the same $item[‘featured’] = ‘1’; on line 78 in file pluginssystemjasocial_feedtablesk2.php
Hope it helps,
Regards
giusti2 Friendgiusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 17, 2013 at 1:46 pm #493152Hi Again Wall Crasher :).
Thanks for your help, but does not work.
I made the change in joomla.php an set $item[‘featured’] To 1 … imported with social feed and now I see that all articles are featured.
Problem:
I don’t see the article on the frontpage … I have first to open the article and save it, after that I see the article also on the frontpage.
Do you have also here an idea?
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
May 20, 2013 at 1:49 am #493279Hi giusti2,
Sorry, I miss this code.
Please replace
return @$this->table->store();
to
if(@$this->table->store()){
$db = $this->getDbo();
$query = $db->getQuery(true);
$query->insert($db->quoteName('#__content_frontpage'));
$query->values($this->table->get('id') . ', 0');
$db->setQuery($query);
$db->execute();return true;
}
return false;
Regards
giusti2 Friendgiusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 20, 2013 at 9:00 am #493343Thanks for your message, but I do not find the code to replace (return @$this->table->store();). Do you know where it is?
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
May 21, 2013 at 1:57 am #493447Hi giusti2,
It is at the bottom of file pluginssystemjasocial_feedtablesjoomla.php
It is the fourth line from the bottom.
Regards
giusti2 Friendgiusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 21, 2013 at 11:46 am #493517Great … Tahnk you … it works 🙂 I searched with the “@” and the “$” that’s why I didn’t find it … my fault. Have a nice day 🙂
giusti2 Friendgiusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 23, 2013 at 8:12 pm #493780Sorry …it’s me again.
Now I have this error message:
Fatal error: Call to undefined method jaSocialFeedTableJoomla::getDbo() in /home/…./plugins/system/jasocial_feed/tables/joomla.php on line 108
Can you maybe help me once again?
Thanks in advance 🙂
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
May 24, 2013 at 1:41 am #493786Hi giusti2,
Please try to change
$db = $this->getDbo();
to
$db = JFactory::getDbo();
🙂
Regards
giusti2 Friendgiusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
March 14, 2014 at 12:53 pm #526739Hi Wall Crasher.
I made the same site with Joomla 3 and JA Wall.
I made also your changes like described above, but something does not work.When the articles are imported by social feed, I see the articles already FEAUTERED in the Admin Panel (that is great), but not on the Front Page. I have to feature all the articles manually again.
Do you maybe have an idea?
Thanks
Giusti
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 17, 2014 at 2:28 pm #526994Hi Guisti,
Please pm me URL, admin and ftp credentials of your site. I will help to check further.
giusti2 Friendgiusti2
- Join date:
- August 2012
- Posts:
- 117
- Downloads:
- 8
- Uploads:
- 8
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 20, 2014 at 12:12 pm #539656Hi Wall Crasher. The hack for featured articles works no more with joomla 3. Do you maybe have an alternative idea? Thanks in advance and best regards. Giusti
-
AuthorPosts
This topic contains 11 replies, has 3 voices, and was last updated by giusti2 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum