iriarte300
Forum Replies Created
-
Forum: Plugins
In reply to: [Flare] Suggestion: shortcode availableMake the following changess:
In models/button.php line 60 and 62:
Add
data-url="{{rawurl}}"
before{{via}} {{tailoring}}and in line 300:
Change the replacements array for the following:$replacements = array( "{{url}}" => urlencode( wp_get_shortlink( $wp_query->post->ID ) ), "{{rawurl}}" => wp_get_shortlink( $wp_query->post->ID ) );Also in line 959 of /flare.php:
Change it to:$count_url = admin_url( 'admin-ajax.php' ) . "?action={$namespace}_get_counts&url=" . urlencode( wp_get_shortlink( $wp_query->post->ID ) ) . "&post_id={$wp_query->post->ID}&_wpnonce=" . wp_create_nonce( "{$this->namespace}-get-counts" );In order to get the real flare stats values of the short url.
Hope it helps
Forum: Plugins
In reply to: [Flare] Shortcode for Flare buttonsMake the following changess:
In models/button.php line 60 and 62:
Add
data-url="{{rawurl}}"
before{{via}} {{tailoring}}and in line 300:
Change the replacements array for the following:$replacements = array( "{{url}}" => urlencode( wp_get_shortlink( $wp_query->post->ID ) ), "{{rawurl}}" => wp_get_shortlink( $wp_query->post->ID ) );Also in line 959 of /flare.php:
Change it to:$count_url = admin_url( 'admin-ajax.php' ) . "?action={$namespace}_get_counts&url=" . urlencode( wp_get_shortlink( $wp_query->post->ID ) ) . "&post_id={$wp_query->post->ID}&_wpnonce=" . wp_create_nonce( "{$this->namespace}-get-counts" );In order to get the real flare stats values of the short url.
Hope it helps
Forum: Plugins
In reply to: [Flare] twitter short linkMake the following changess:
In models/button.php line 60 and 62:
Add
data-url="{{rawurl}}"
before{{via}} {{tailoring}}and in line 300:
Change the replacements array for the following:$replacements = array( "{{url}}" => urlencode( wp_get_shortlink( $wp_query->post->ID ) ), "{{rawurl}}" => wp_get_shortlink( $wp_query->post->ID ) );Also in line 959 of /flare.php:
Change it to:$count_url = admin_url( 'admin-ajax.php' ) . "?action={$namespace}_get_counts&url=" . urlencode( wp_get_shortlink( $wp_query->post->ID ) ) . "&post_id={$wp_query->post->ID}&_wpnonce=" . wp_create_nonce( "{$this->namespace}-get-counts" );In order to get the real flare stats values of the short url.
Hope it helps