Plugin Directory

Changeset 140067


Ignore:
Timestamp:
07/28/2009 08:42:15 AM (17 years ago)
Author:
ingus.rukis
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • draugiemsay/trunk/draugiemsay_wp.php

    r140059 r140067  
    5959        $link = get_permalink($postid);
    6060        $leftchars = 137-mb_strlen($link);
    61         if (mb_strlen($text)>137){
    62             $fulltext = mb_substr($text, 0, $leftchars) . ' ';
    63         }else{
    64             $fulltext = $text . ' ';
    65         }
     61        $prefix = get_option('draugiemsay_pretext');
     62       
    6663        if(isset($cligsapi)) {
    6764            $link=dr_shorten_link( $link, $text, $cligsapi );
    6865        }
    69         $fulltext .= $link;
    7066       
    7167        $profile = get_option('draugiemsay_profile');
     
    7470        }
    7571       
    76         $xmllink = 'http://api.draugiem.lv/xml/index.php?app=ea0ca99e9e2f046c32524f1979be0b73&apikey=' . $apikey . '&action=say/post&text=' . urlencode($fulltext) . '&prefix=' . urlencode(get_option('draugiemsay_pretext')) . '&public=1' . (!empty($profile) ? '&uid=' . $uid . '&type=' . $type : '');
     72        $xmllink = 'http://api.draugiem.lv/xml/index.php?app=ea0ca99e9e2f046c32524f1979be0b73&apikey=' . $apikey . '&action=say/post&title=' . urlencode($text) . '&link=' . urlencode($link) . '&prefix=' . urlencode($prefix) . '&public=1' . (!empty($profile) ? '&uid=' . $uid . '&type=' . $type : '');
     73        var_dump($xmllink);
     74        die();
    7775        $xml = file_get_contents($xmllink);
    7876        $xmldata = simplexml_load_string($xml);
Note: See TracChangeset for help on using the changeset viewer.