Page 18 of 27 FirstFirst ... 81617181920 ... LastLast
Results 171 to 180 of 264
  1. #171
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Jamie...luv you for a such a great addon...

    One little tiny fix if you can?

    1980's is showing up 1980\s.

    Is this possible to fix this?

  2. #172

    Default Re: AutoTweet [support]

    Installed and posted new product, received this error:

    Twitter could not be updated: 401 Unauthorized: Incorrect signature

  3. #173
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Jamie, are you around?

    I need your help...please

  4. #174
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Here's the code for AutoTweet

    $prodUrl = urlencode(zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id));
    //short url function.
    function shortenUrl($user, $key, $shortenUrl){
    $url = 'http://api.bit.ly/v3/shorten?login=' . $user .'&apiKey='. $key . '&longUrl=' . $shortenUrl . '&format=xml';

    $ch = curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch,CURLOPT_CONNECTTIMEOUT, $timeout);
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
    }
    //use oAuth library
    require_once 'twitteroauth/twitteroauth.php';
    //function to shorten url
    $shorten = shortenUrl($bitlyUsername, $bitApiKey, $prodUrl);
    //start message w/ or w/out price
    $message = "New product available: " . $_POST['products_name'][$_SESSION['languages_id']] . '!';
    if ($showprice){ $message .= ' Only $' . $products_price . '.'; }
    //if shorten fails use $storeUrl
    $bitStatus = simplexml_load_string($shorten);
    $http_code = $bitStatus->status_code;
    $status_txt = $bitStatus->status_txt;
    if ($http_code != 200){$shorten = $storeUrl;
    $biterror = "URL was not shortened for Twitter: ";
    $biterror .= $storeUrl . " was used instead.";
    $biterror .= " Reason: " . $status_txt;
    $messageStack->add_session($biterror, 'caution');
    } else { $shorten = $bitStatus->data->url;}
    //finish message.
    $message .= ' Check it out now at ' . $shorten;
    //the connection to twitter API
    $connection = new TwitterOAuth($consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
    $connection->timeout = $timeout;
    $connection->connecttimeout = $timeout;
    //send message
    $tweet = $connection->post('statuses/update', array('status' => $message));
    //error check
    if ($connection->http_code != NULL){
    if ($connection->http_code != 200){
    $error = "Twitter could not be updated: " . $connection->http_header["status"] . ": ";
    $error .= $tweet->error;
    $error .= "<br />To paste the code into twitter yourself use: <br />" . $message;
    $messageStack->add_session($error, 'error');
    } else {
    $messageStack->add_session('Twitter Updated!', 'success');
    }
    } else {
    $error = "Twitter could not be updated: Could not connect or there was nothing to do once connected.<br />
    Twitter may be down or over capacity. To paste the code into twitter yourself use: <br />";
    $messageStack->add_session($error, 'error');
    $messageStack->add_session($message, 'caution');
    }

    I am having a problem with the Title coming out

    1960\s instead of 1960's



    How do I fix this?

    Thanks

  5. #175
    Join Date
    Jan 2005
    Posts
    101
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    i face a problem:

    Twitter could not be updated: 401 Unauthorized: Incorrect signature
    To paste the code into twitter yourself use:
    New product available: 2010 End Offer sms @ 2 paisa! Only $4000. Check it out now at http://bit.ly/dSKuPE

    i use:
    zencard latest version and autotweet latest version.

  6. #176
    Join Date
    Jan 2005
    Posts
    101
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    how to change currency, i use indian rupees in my zencart but this is used USD ($)

    how to change ?

  7. #177
    Join Date
    Jan 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Hi,

    I have a problem with auto tweet. I currently have zen cart 1.3.9h and after installing and configuring auto tweet, when I add a product, it appears a page not found and if I click refresh it tells me that the product seemed empty.

    Thanks in advance for your responses.

  8. #178
    Join Date
    Jan 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Solved it.

    It was a setting from bit.ly. Share Settings and untick "Warn me if I try to share a message without a link or with only links."

  9. #179
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: AutoTweet [support]

    Hi,

    Thanks for this great mod. It works fine on new created products, however, we often use copy to create new products. If we copy a product it isn't send to twitter. is there a solution for this?

  10. #180
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: AutoTweet [support]

    Problem solved

    I copied all the stuff between start autoTweet 3.0 and eof autotweet to some rule below (see part of code)

    PHP Code:
          $sql_data_array array_merge($sql_data_array$update_sql_data);

          
    zen_db_perform(TABLE_PRODUCTS$sql_data_array'update'"products_id = '" . (int)$products_id "'");

          
    // reset products_price_sorter for searches etc.
          
    zen_update_products_price_sorter((int)$products_id);

          
    ///////////////////////////////////////////////////////
          //// INSERT PRODUCT-TYPE-SPECIFIC *UPDATES* HERE //////


    // start autoTweet 3.0
    //User Settings.
    $consumerKey "xxxxxx"//twitter app consumer key.
    $consumerSecret "xxxxxx"//twitter app consumer secret.
    $oauthToken "xxxxxx"//twitter app "my access" token
    $oauthTokenSecret "xxxxxx"//twitter app "my access" token secret.
    $bitlyUsername "xxxxx"//bit.ly username
    $bitApiKey "xxxxx"//bit.ly api key.
    $storeUrl "xxxxx"//url to the homepage of your store.
    $showprice 0// Show the product price? 0 = off, 1 = on. no quotes. 

 

 
Page 18 of 27 FirstFirst ... 81617181920 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. v151 Autotweet Errors/Not Posting
    By Little Red Crane in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2014, 04:56 PM
  3. is there any AutoTweet addon or autofacebook addon work well with EasyPopulate?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Dec 2010, 03:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR