WordPress.org

Ready to get started?Download WordPress

Forums

Flare
Suggestion: shortcode available (3 posts)

  1. javierojuel
    Member
    Posted 1 year ago #

    Hello,

    It would be great if a shortcode were available. So we can use the shortcode with the share buttons or the "follow me" buttons and use them everywhere.

    Thank you for your great plugin.

    http://wordpress.org/extend/plugins/flare/

  2. Newfound
    Member
    Posted 1 year ago #

    I second that emotion.

  3. iriarte300
    Member
    Posted 8 months ago #

    Make 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.