Skip to main content
deleted 9 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

oh, it looks like I wrote that script, so let me try to answer you ;-)

You could for example:

  • add your own action hook in your comments template,
  • use javascript to move the pings below the Disqus comments,
  • hijack the disqus_language_filter filter of the Disqus plugin.

If you go for the last option, you could use this modification of the PingsList class instead:

/**
 * Modified version of PingsList to display the pings below the Disqus comments.
 * @see http://wordpress.stackexchange.com/a/174468/26350
 */

class PingsList
{
    protected $pd   = null;$pd;
    protected $pw   = null;$pw;

    public function __construct( IPingsView $pw, IPingsData $pd )
    {
        $this->pw = $pw;
        $this->pd = $pd;
    }
    public function init()
    {
        $this->pd->init();
        add_filter( 'disqus_language_filter', array( $this, 'disqus_language_filter' ) );
    }

    public function disqus_language_filter( $lang )
    {
        $this->pw->template( $this->pd->get_data() );
        return $lang;
    }

} // end class

This should display the pings below the Disqus comments.

oh, it looks like I wrote that script, so let me try to answer you ;-)

You could for example:

  • add your own action hook in your comments template,
  • use javascript to move the pings below the Disqus comments,
  • hijack the disqus_language_filter filter of the Disqus plugin.

If you go for the last option, you could use this modification of the PingsList class instead:

/**
 * Modified version of PingsList to display the pings below the Disqus comments.
 * @see http://wordpress.stackexchange.com/a/174468/26350
 */

class PingsList
{
    protected $pd   = null;
    protected $pw   = null;

    public function __construct( IPingsView $pw, IPingsData $pd )
    {
        $this->pw = $pw;
        $this->pd = $pd;
    }
    public function init()
    {
        $this->pd->init();
        add_filter( 'disqus_language_filter', array( $this, 'disqus_language_filter' ) );
    }

    public function disqus_language_filter( $lang )
    {
        $this->pw->template( $this->pd->get_data() );
        return $lang;
    }

} // end class

This should display the pings below the Disqus comments.

oh, it looks like I wrote that script, so let me try to answer you ;-)

You could for example:

  • add your own action hook in your template,
  • use javascript to move the pings below the Disqus comments,
  • hijack the disqus_language_filter filter of the Disqus plugin.

If you go for the last option, you could use this modification of the PingsList class instead:

/**
 * Modified version of PingsList to display the pings below the Disqus comments.
 * @see http://wordpress.stackexchange.com/a/174468/26350
 */

class PingsList
{
    protected $pd;
    protected $pw;

    public function __construct( IPingsView $pw, IPingsData $pd )
    {
        $this->pw = $pw;
        $this->pd = $pd;
    }
    public function init()
    {
        $this->pd->init();
        add_filter( 'disqus_language_filter', array( $this, 'disqus_language_filter' ) );
    }

    public function disqus_language_filter( $lang )
    {
        $this->pw->template( $this->pd->get_data() );
        return $lang;
    }

} // end class

This should display the pings below the Disqus comments.

added 727 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

oh, it looks like I wrote that script, so let me try to answer you ;-)

You can try to replacecould for example:

  • add your own action hook in your comments template,
  • use javascript to move the pings below the Disqus comments,
  • hijack the disqus_language_filter filter of the Disqus plugin.

If you go for the last option, you could use this linemodification of the PingsList class instead:

add_filter/**
 * Modified version of PingsList to display the pings below the Disqus comments.
 * @see http://wordpress.stackexchange.com/a/174468/26350
 */

class PingsList
{
    protected $pd   = null;
    protected $pw   = null;

    public function __construct( 'comments_template'IPingsView $pw, IPingsData $pd )
  array(  {
        $this,->pw 'comments_template'= $pw;
        $this->pd = $pd;
    }
    public function init(), 
 9   {
        $this->pd->init();

with this one:

add_filter( 'comments_template',       add_filter( 'disqus_language_filter', array( $this, 'comments_template''disqus_language_filter' ), 11);
    }

    public function disqus_language_filter( $lang )
    {
        $this->pw->template( $this->pd->get_data() );
        return $lang;
    }

} // end class

in the init() method of the PingsList class.

This should work becausedisplay the pings below the Disqus comments are added through this filter:

add_filter('comments_template', 'dsq_comments_template');

where the priority is 10.

oh, it looks like I wrote that script, so let me try to answer you ;-)

You can try to replace this line:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 9 );

with this one:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 11 );

in the init() method of the PingsList class.

This should work because the Disqus comments are added through this filter:

add_filter('comments_template', 'dsq_comments_template');

where the priority is 10.

oh, it looks like I wrote that script, so let me try to answer you ;-)

You could for example:

  • add your own action hook in your comments template,
  • use javascript to move the pings below the Disqus comments,
  • hijack the disqus_language_filter filter of the Disqus plugin.

If you go for the last option, you could use this modification of the PingsList class instead:

/**
 * Modified version of PingsList to display the pings below the Disqus comments.
 * @see http://wordpress.stackexchange.com/a/174468/26350
 */

class PingsList
{
    protected $pd   = null;
    protected $pw   = null;

    public function __construct( IPingsView $pw, IPingsData $pd )
    {
        $this->pw = $pw;
        $this->pd = $pd;
    }
    public function init() 
    {
        $this->pd->init();
        add_filter( 'disqus_language_filter', array( $this, 'disqus_language_filter' ) );
    }

    public function disqus_language_filter( $lang )
    {
        $this->pw->template( $this->pd->get_data() );
        return $lang;
    }

} // end class

This should display the pings below the Disqus comments.

added 154 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

oh, it looks like I wrote that script, so let me try to answer you ;-)

You can try to replace this line:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 9 );

with this one:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 11 );

or some higher priority, in the init() method of the PingsList class.

This should work because the Disqus comments are added through this filter:

add_filter('comments_template', 'dsq_comments_template');

where the priority is 10.

oh, it looks like I wrote that script, so let me try to answer you ;-)

You can try to replace this line:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 9 );

with this one:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 11 );

or some higher priority, in the init() method of the PingsList class.

oh, it looks like I wrote that script, so let me try to answer you ;-)

You can try to replace this line:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 9 );

with this one:

add_filter( 'comments_template',    array( $this, 'comments_template' ), 11 );

in the init() method of the PingsList class.

This should work because the Disqus comments are added through this filter:

add_filter('comments_template', 'dsq_comments_template');

where the priority is 10.

Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251
Loading