WordPress.org

Ready to get started?Download WordPress

Forums

Gigya - Social Infrastructure
Feed Activity Widget not working (3 posts)

  1. rajneeshsingh
    Member
    Posted 1 year ago #

    Hi,
    This is Rajneesh Singh. I'm using wordpre gigya plugin. everything is ok but feed activity widget is not working. when i post a comment o n a post, the comment is not displayed in activity feed plugin. in any tab. how to display users activity in this plugin. kindly help me.

    http://wordpress.org/extend/plugins/gigya-socialize-for-wordpress/

  2. Hpatoio
    Member
    Posted 1 year ago #

    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
    http://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

  3. Hpatoio
    Member
    Posted 1 year ago #

    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     = "";
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic