Support » Plugin: Social Count Plus » Twitch update

  • Resolved Pumpk1in

    (@pumpk1in)



    Hi,

    Twitch counter is no more working 😉

    I fixed it by myself so if you want to use it… :
    Inside class-social-count-plus-admin.php line 314 add

    ,
    						'twitch_client_ID' => array(
    							'title'       => __( 'Twitch Client ID', 'social-count-plus' ),
    							'type'        => 'text',
    							'description' => __( 'Insert your Twitch Client ID.', 'social-count-plus' )
    						)

    Inside class-social-count-plus-twitch-counter replace lines 37-39 with

    public function is_available( $settings ) {
    		return isset( $settings['twitch_active'] ) && ! empty( $settings['twitch_username'] ) && ! empty( $settings['twitch_client_ID'] );
    	}

    AND replace lines 51-58 with

    $params = array(
    				'timeout' => 60
    			);
    
    			$this->connection = wp_remote_get( $this->api_url.$settings['twitch_username'].'?client_id='.$settings['twitch_client_ID'], $params );

    Problem was with the missing clientID parameter

    Thanks !

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Twitch update’ is closed to new replies.