Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m experiencing the same issue…

    I went looking in the plugin’s code.

    In simple-share-buttons-adder\inc\ssba_admin_bits.php

    Where the code is ‘preparing’ the array that gets saved back to the database for SSBA’s options/settings:

    function ssba_settings() {
      ...
      // prepare array
      $arrOptions = array(
        'ssba_image_set' => $ssbaPost['ssba_image_set'],
        ...

    The current code is not ‘preparing’ the array for all of the custom image URLs…
    Something similar to the following code needs to be added that will take the data in the post object for each of the custom images and also add them to the $arrOptions array.
    It is this $arrOptions array that eventually gets saved back into the database…

    'ssba_custom_email' => $ssbaPost['ssba_custom_email'],
    'ssba_custom_google' => $ssbaPost['ssba_custom_google'],
    'ssba_custom_facebook' => $ssbaPost['ssba_custom_facebook'],
    'ssba_custom_twitter' => $ssbaPost['ssba_custom_twitter'],
    'ssba_custom_diggit' => $ssbaPost['ssba_custom_diggit'],
    'ssba_custom_linkedin' => $ssbaPost['ssba_custom_linkedin'],
    'ssba_custom_reddit' => $ssbaPost['ssba_custom_reddit'],
    'ssba_custom_stumbleupon' => $ssbaPost['ssba_custom_stumbleupon'],
    'ssba_custom_pinterest' => $ssbaPost['ssba_custom_pinterest'],
    'ssba_custom_buffer' => $ssbaPost['ssba_custom_buffer'],
    'ssba_custom_flattr' => $ssbaPost['ssba_custom_flattr'],
    'ssba_custom_tumblr' => $ssbaPost['ssba_custom_tumblr'],
    'ssba_custom_print' => $ssbaPost['ssba_custom_print'],
    'ssba_custom_vk' => $ssbaPost['ssba_custom_vk'],
    'ssba_custom_yummly' => $ssbaPost['ssba_custom_yummly'],

    Regards
    mpdeegan

    Thanks mpdeegan!! You are the best!

    Thread Starter emilyharestad

    (@emilyharestad)

    Mpdeegan – I love your guts!

    Thank you so much for delving into that. Worked like a charm!!

    Thanks, glad I could help.

    Now… how do we request a change to the code?

    I was going to setup a pull request on GitHub
    https://github.com/davidsneal/simplesharebuttons

    but GitHub hasn’t been updated since v4.5 on 26 Jun 2014 and the plugin is now at v6.1.0

    Can anyone point me to the process of requesting a code change?

    Regards,
    mpdeegan

    Plugin Author Simple Share

    (@davidoffneal)

    Hi all,

    My apologies for the trouble caused by this issue. I’ve implemented a fix and shall release an update momentarily.

    // prepare array of buttons
     $arrButtons = json_decode(get_option('ssba_buttons'), true);
    
    // loop through each button
    foreach ($arrButtons as $button => $arrButton) {
        // add custom button to array of options
        $arrOptions['ssba_custom_'.$button] = $ssbaPost['ssba_custom_'.$button];
    }

    Thanks,

    David

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Buttons Not Appearing’ is closed to new replies.