Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • giusti2 Friend
    #187546

    Hello.

    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 Developer
    #493059

    Hi 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.php

    and 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 Friend
    #493152

    Hi 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 Developer
    #493279

    Hi 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 Friend
    #493343

    Thanks for your message, but I do not find the code to replace (return @$this->table->store();). Do you know where it is?

    Wall Crasher Developer
    #493447

    Hi giusti2,

    It is at the bottom of file pluginssystemjasocial_feedtablesjoomla.php

    It is the fourth line from the bottom.

    Regards

    giusti2 Friend
    #493517

    Great … 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 Friend
    #493780

    Sorry …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 Developer
    #493786

    Hi giusti2,

    Please try to change

    $db = $this->getDbo();

    to

    $db = JFactory::getDbo();

    🙂

    Regards

    giusti2 Friend
    #526739

    Hi 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 Moderator
    #526994

    Hi Guisti,

    Please pm me URL, admin and ftp credentials of your site. I will help to check further.

    giusti2 Friend
    #539656

    Hi 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

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

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