Support » Plugin: Skype Legacy Buttons » [Plugin: Skype Online Status] Return status indicator in text/XML

  • Resolved Dominor Novus


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

    The links:

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

    $url = "".$someskypeid.".xml";
    //getting contents
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $data = curl_exec($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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Plugin Author RavanH


    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.

    Thanks RavanH. I didn’t notice it.

    As instructed, I took the following template…

    <!-- 'My status' plain text link - template by RavanH --><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, -->
    <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.