Results 1 to 10 of 264

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    try this:

    Around line 19 of autoTweet.php (if you have the updated version of AutoTweet) find the line that looks like this:
    PHP Code:
    $my_product_name $_POST['products_name'][1]; 
    and change it to:
    PHP Code:
    $my_product_name implode(" "$_POST['products_name']); 
    Try it again, let me know if that doesnt work.

  2. #2
    Join Date
    May 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Quote Originally Posted by jamielife View Post
    try this:

    Around line 19 of autoTweet.php (if you have the updated version of AutoTweet) find the line that looks like this:
    PHP Code:
    $my_product_name $_POST['products_name'][1]; 
    and change it to:
    PHP Code:
    $my_product_name implode(" "$_POST['products_name']); 
    Try it again, let me know if that doesnt work.
    Thanks! it works for me

  3. #3
    Join Date
    Jun 2008
    Posts
    255
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    "Zen Cart 1.3.9a Users: upload everything inside the admin folder to where ever your admin folder is on your server, and that's it... you're finished!" (v1.01)

    For 1.3.9b:
    This should be corrected to upload only "twitter" folder on admin. The update_product.php has somehow commented out line 198 (don't know if this is intentional) but it resulted in getting a screen of the category without the controls after one inserts a product.

    see pic on this forum post:
    http://www.zen-cart.com/forum/showth...412#post884412

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: AutoTweet [support]

    Quote Originally Posted by sunflowertami View Post
    "Zen Cart 1.3.9a Users: upload everything inside the admin folder to where ever your admin folder is on your server, and that's it... you're finished!" (v1.01)

    For 1.3.9b:
    This should be corrected to upload only "twitter" folder on admin. The update_product.php has somehow commented out line 198 (don't know if this is intentional) but it resulted in getting a screen of the category without the controls after one inserts a product.

    see pic on this forum post:
    http://www.zen-cart.com/forum/showth...412#post884412
    For AutoTweet to work you still need this piece of code in admin/includes/modules/update_product.php after

    $db->Execute("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . "
    (products_id, categories_id)
    values ('" . (int)$products_id . "', '" . (int)$current_category_id . "')");
    (found around lines 82-84):

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

    include_once("twitter/autoTweet.php");

    //// *END OF PRODUCT-TYPE-SPECIFIC INSERTS* ////////
    ///////////////////////////////////////////////////////
    Only uploading the admin/twitter folder may render the mod useless.

  5. #5
    Join Date
    Jun 2008
    Posts
    255
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    That's right!

    I should say just uncomment line 198 before uploading.

  6. #6
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: AutoTweet [support]

    Thanks for the add on but you can do this an easier way without pulling out your hair. To submit to twitter every time you add a product is very simple. Just add this bit of code into your admin/includes/modules/update_product.php, just before the zen_redirect right at the end of the file, add the code below and don't forget to put in your user name and password thats it. No other files necessary.

    // BOF twitter feed
    if ($action == 'insert_product')
    {
    $purl = zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id);
    $tinyPurl = file_get_contents('http://tinyurl.com/api-create.php?url='.$purl);
    function updateStatus($user, $password, $message)
    {
    $url = "http://twitter.com/statuses/update.xml";
    $curl = curl_init($url);
    $data = array('status'=>$message);
    curl_setopt($curl, CURLOPT_USERPWD, $user.':'.$password);
    curl_setopt($curl, CURLOPT_POST, 1);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
    $result = @curl_exec($curl);
    curl_close($curl);
    return $result;
    }
    $message = STORE_NAME . ' has a new product. ' . $tinyPurl;
    $message = $_POST['products_name'][$_SESSION['languages_id']]. ' $' . $products_price . ' ' . $tinyPurl;
    $user = 'YYYYYYYYY';
    $password = 'XXXXXXXXX';
    $result = updateStatus($user, $password, $message);
    $messageStack->add_session($result, 'error');
    }
    // EOF twitter feed
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  7. #7
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Hi there. I take it the username and password are for Twitter do I ned them or an API key for a tinyURL account ?

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 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

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