WordPress.org

Ready to get started?Download WordPress

Forums

Author Box Reloaded
[resolved] Custom integration and skype (2 posts)

  1. Rene Michaels
    Member
    Posted 2 years ago #

    First of all, LOVE the plugin. I can't tell you how much time I searched for an "Author Box" that would work like I wanted in my particular theme.

    I was able to make some mods to the plugin and added other social networks like flickr and tumblr. I updated the icon sets as well. Here is my sandbox site with the mods in place...

    In a single post: http://mtpsandbox.com/high-school-varsity-baseball-cedar-park-v-westwood/
    In the authors archive: http://mtpsandbox.com/author/mtpsadmin/

    Has anyone tried to integrate Skype into it? I've played with a mod but cannot get it to work. What I envision is a skype icon that when clicked opens skype. Of course there needs to be a skype username field added in the profile in the admin.

  2. Lopo Lencastre de Almeida
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for the delay. I was not getting any warning messages from the system.

    As per version 2.x adding new social/websites is done via Author Box Reloaded Pack. It is rather easy to add new pieces without modding the code.

    For Skype just copy any of the plugin "packs" to a new one called skype.php. Change the portion Section to modify to:

    function skype_authorbox_add_sites( $known_sites ) {
       $known_sites['Skype'] = array(
        'favicon' => plugin_dir_url( __FILE__ ) . 'images/skype.png',
        'url' => 'callto://USERNAME', // USERNAME is your Skype username
        'plugin' => array (
          'author' => 'Lopo Lencastre de Almeida <dev@ipublicis.com>',
          'url' => 'http://ipublicis.com/',
          'donate' => 'http://smsh.me/7kit',
         ),
       );
       return $known_sites;
    }
    add_filter('authorbox_known_sites','skype_authorbox_add_sites',10,1);

    Upload the file to the proper directory and activate it. That's it.

    Can you send me your stuff. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic