• Resolved Dominor Novus

    (@dominor-novus)


    It took quite some time figuring out how to return the status as text rather than the default button.

    The links:
    http://mystatus.skype.com/yourusername.txt
    http://mystatus.skype.com/yourusername.xml

    This doesn’t seem achievable using the plugin. I manually added the following to my page template:

    //http://webcodingeasy.com/PHP-APIs/Get-skype-status
    $someskypeid="john.doe";
    $url = "http://mystatus.skype.com/".$someskypeid.".xml";
    //getting contents
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $data = curl_exec($curl);
    curl_close($curl);
    
    $pattern = '/xml:lang="en">(.*)</';
    preg_match($pattern,$data, $match); 
    
    //return $match[1];
    echo $match[1];

    Can we not just have this as a default template for the plugin?

    I would have thought that the outputting of text rather than images was a common request.

    Apologies in advance if the plugin already facilitates this and I’ve simply overlooked it.

    http://wordpress.org/extend/plugins/skype-online-status/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Dominor Novus

    (@dominor-novus)

    I’ll leave this unresolved until we get an indication on whether or not this feature exists and if not, whether or not it will be added.

    Have you tried the theme 'My Status' plain text link already?

    If that’s not exactly what you are looking for, your next step is to first save your options with that theme selected and then revisit the qdmin page and select Custom... theme. After saving once again, you can start editing the template in the large text field under Advanced > Custom Template so it fits closer to your needs.

    Thread Starter Dominor Novus

    (@dominor-novus)

    Thanks RavanH. I didn’t notice it.

    As instructed, I took the following template…

    <!-- 'My status' plain text link - template by RavanH http://www.skype.com/go/skypebuttons --><a href="skype:{skypeid}?{function}" title="{functiontxt}{sep1}{username}{sep2}{status}"><span class="skype_button text">{functiontxt}{sep1}{username}{sep2}{status}</span></a>

    …and changed it to…

    <!--'My status + Multiple' plain text link - template by RavanH, customized by Dominor Novus http://www.dominornovus.com, http://www.skype.com/go/skypebuttons -->
    <span class="skype_button text">{statustxt}<strong>{status}</strong></span>
    <a href="{skypeid}?call" title="{call}{sep1}{username}{sep2}{status}">{call}</a>
    <a href="{skypeid}?chat" title="{chat}{sep1}{username}{sep2}{status}">{chat}</a>
    <a href="{skypeid}?add" title="{add}{sep1}{username}{sep2}{status}">{add}</a><!-- voicemail_start -->
    <a href="{skypeid}?voicemail" title="{voicemail}{sep1}{username}{sep2}{status}">{voicemail}</a><!-- voicemail_end -->
    <a href="{skypeid}?userinfo" title="{userinfo}{sep1}{username}{sep2}{status}">{userinfo}</a>
    <a href="{skypeid}?sendfile" title="{sendfile}{sep1}{username}{sep2}{status}">{sendfile}</a>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Skype Online Status] Return status indicator in text/XML’ is closed to new replies.