WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Links shortcode] Added Facebook Color Scheme Choices.

[Resolved] [Plugin: Links shortcode] Added Facebook Color Scheme Choices.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Maarten Swemmer
    Member

    @maartenjs

    Hi ELsMystERy!
    Sounds like a good addition, could you post the code changes here?
    Best regards,
    Maarten

    ELsMystERy
    Member

    @elsmystery

    This is everything, except the actual [shortcode] to change the link colors, which I didn’t do. You might need to modify my additions some to do that.

    In links-shortcode.php…

    Under $facebook = get_option('linkssc_facebook', 'like'); on line 50 add this on a new line (51): $fbcolors = get_option('linkssc_fbcolors', 'light');

    Under 'fbrecommend' => $fbrecommend, on line 60 add: 'fbcolors' => $fbcolors, on a new line (61).

    Change colorscheme=light to colorscheme='.$fbcolors.' in the link on line 132 ($linkinfo['fb_button']). The link doesn’t show right when I post it.

    Under $facebook = get_option('linkssc_facebook', 'like'); on line 232 add $fbcolors = get_option('linkssc_fbcolors', 'light'); to a new line (233).

    After the </tr> on line 271 (under the row with the options to show the fb button), add this code:

    `<!– Change fb color sceme –>
    <tr valign=”top”>
    <th scope=”row”><?php _e(‘What facebook color scheme?’,’links-shortcode’); ?></th>
    <td><input type=”radio” name=”linkssc_fbcolors” value=”light” <?php if ($fbcolors == ‘light’) echo ‘CHECKED’; ?> /><?php _e(‘Light’,’links-shortcode’); ?><br />
    <input type=”radio” name=”linkssc_fbcolors” value=”dark” <?php if ($fbcolors == ‘dark’) echo ‘CHECKED’; ?> /><?php _e(‘Dark’,’links-shortcode’); ?><br />
    </td>
    </tr>
    <!– End change fb color sceme –>`

    That should be lines 272 – 279.

    Plugin Author Maarten Swemmer
    Member

    @maartenjs

    Hi ELsMystERy,
    Your request has been implemented in version 1.3, which has just been released. For details see the release notes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Links shortcode] Added Facebook Color Scheme Choices.’ is closed to new replies.