WordPress.org

Forums

Disqus Comment System
SSO Login (1 post)

  1. Taehan Lee
    Member
    Posted 3 years ago #

    Hello,
    I love this plugin and thanks for the SSO button option added.
    But I hope the filter will be added in next update.

    I modified the dsq_sso_login function like below...

    function dsq_sso_login() {
    	$opts = apply_filters('dsq_sso_login', array(
    		'name' => get_bloginfo('name'),
    		'button' => get_option('disqus_sso_button'),
    		'icon' => get_option('disqus_sso_icon'),
    		'url' => site_url('/wp-login.php'),
    		'logout' => site_url('/wp-login.php?action=logout'),
    		'width' => 800,
    		'height' => 700,
    	));
    	return 'this.sso = {
    		name: "'.$opts['name'].'",
    		button: "'.$opts['button'].'",
    		icon: "'.$opts['icon'].'",
    		url: "'.$opts['url'].'",
    		logout: "'.$opts['logout'].'",
    		width: "'.$opts['width'].'",
    		height: "'.$opts['height'].'"
    	}';
    }

    Thanks.

    http://wordpress.org/extend/plugins/disqus-comment-system/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.