Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, I’m experiencing the same problem.

    When you put the “Feed activity widget” in the sidebar if you do not set the “Feed ID” the plugin set, at the javascript level, the value for feedID to a string with value “false”.

    In this way the “Feed activity widget” try to load the feed with the ID “false” (that usually doesn’t exist)

    Read the documentation for more info
    https://developers.gigya.com/020_Client_API/010_Socialize/socialize.showFeedUI

    This is not the only problem that this plugin has. If you try to set the FeedID in the widget form the value is not saved.

    I’m working on a patch


    Simone

    So, here we go.

    In resources/widget.php change

    var params = {
     "containerID": "<?php echo $this->cmpId;?>",
     "initialTab"  : "<?php echo $initial_tab;?>",
     "feedID" : <?php echo (!$feed_id) ? "false" : "'".$feed_id."'";?>,
     "width"  : "100%"
    };

    to

    var params = {
     "containerID": "<?php echo $this->cmpId;?>",
     "initialTab"  : "<?php echo $initial_tab;?>",
         <?php if ( $feed_id ) { ?>
    	"feedID" : <?php echo $feed_id; ?>,
         <?php } ?>
     "width"  : "100%"
    };

    In widget.php change

    $title = esc_attr($instance['title']);
    $feed_id = esc_attr($instance['feed_id']);
    if(empty($initial_tab)) $feed_id = "";
    $initial_tab = esc_attr($instance['initial_tab']);
    if(empty($initial_tab)) $initial_tab = "everyone";

    to

    $title = esc_attr($instance['title']);
    $feed_id = esc_attr($instance['feed_id']);
    $initial_tab = esc_attr($instance['initial_tab']);
    
    if(empty($initial_tab)) {
          $initial_tab = "everyone";
          $feed_id     = "";
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feed Activity Widget not working’ is closed to new replies.