Zen Cart Logo
Forums / All Other Contributions/Addons / AutoTweet [support]

AutoTweet [support]

Views: 51,022

Results 61 to 80 of 264
31 Mar 2010, 2:45 AM
#61
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

AutoTweet [support]

ahh ok I get it

$subject1 = 62;       
$subject2 = 38;     
$subject3 = 39;     
$media1 = 69        
$media2 = 67        
$media3 = 6        

does the media lines need the ; on the end like the subjects?

31 Mar 2010, 2:46 AM
#62
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

yes and this part will have to change to:

//Redirect to API and back to store front

$redirectTo = "https://dart.fine-art.com/api/process.asp" . 
"?userID=" . $userID . "&password=" . $password . "&action=" . $action . 
"&artistFirstName=" . $artistFirstName . "&artistLastName=" . $artistLastName . 
"&price=" . $price . "&title=" . $title . "&category=" . $category . "&urlArt=" . 
$urlArt . "&vendorCode=" . $vendorCode . "&subject1=" . $subject1 . "&subject2=" . $subject2 . 
"&media1=" . $media1 . "&urlReturn=" . $urlReturn . "&paypalEmail=" . $paypalEmail . 
"&watermark=" . $watermark ;
31 Mar 2010, 2:49 AM
#63
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

this oughta do,

//Redirect to API and back to store front 

    $redirectTo = "https://dart.fine-art.com/api/process.asp" . 
    "?userID=" . $userID . "&password=" . $password . "&action=" . $action . 
    "&artistFirstName=" . $artistFirstName . "&artistLastName=" . $artistLastName . 
    "&price=" . $price . "&title=" . $title . "&category=" . $category . "&urlArt=" . 
    $urlArt . "&vendorCode=" . $vendorCode . "&subject1=" . $subject1 . "&subject2=" . $subject2 . "&subject3=" . $subject3 .
    "&media1=" . $media1 . "&media2=" . $media2 . "&media3=" . $media3 . "&urlReturn=" . $urlReturn . "&paypalEmail=" . $paypalEmail .  "&watermark=" . $watermark ; 
31 Mar 2010, 3:04 AM
#64
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: AutoTweet [support]

Sorry that last post was supposed to be

ahh ok I get it

$subject1 = 62;       
$subject2 = 38;     
$subject3 = 39;     
$media1 = 69        
$media2 = 67        
$media3 = 6        

does the media lines need the ; like on the end like the subjects?

as for
$urlArt = $store_url . "/images/" . $products_image;

$urlArt = $store_url . "/images/" . $products_image; 

My file structure for the images is /images/painting_images/
My large folder is /images/large/painting_images/

How do i get it to upload my large image? do i just change the folder as above?
& will it recognise the image file with the _lg on the end of it. My image names are lower case like sand_spit_lg.jpg

Thanks again for all your help :clap:

2 Apr 2010, 9:36 AM
#66
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Re: AutoTweet [support]

Hello! This is a great mod. i see its working on many people using twitter.

i like to use it very much.. but its not working. i am already 3 hours on figuring for this to work but still not working. This is how i do it. can you please check it ifs the right procedure.

CURL,json and php5 enabled.php not in safe mode.

downloaded, change all the necessary changes..uiploaded to

public_html / admin / includes / modules /
public_html / admin /

// CHANGE: path to your store (i.e. http://example.com/store
$myStoreUrl = 'http://www.mywebsite.com';
// CHANGE: Your stores Twitter username and password
$twitter = new Twitter("collectorsdeck","1234");
// CHANGE: Your bit.ly Username and API Key
// API Key should be a long number starting with "R_"
// available free @ http://bit.ly/account/your_api_key
$bitly = new Bitly('collectorsdeck', 'my API');

uploaded. but its not working. wew!

i've done this

fixed this.
You have to edit both bitly.php and twitter.php

on line 133 bitly.php and line 158 of twitter.php comment out
PHP Code:
$options[CURLOPT_FOLLOWLOCATION] = true;
so that it looks like:
PHP Code:
//$options[CURLOPT_FOLLOWLOCATION] = true;
then somewhere around line 136 on bitly.php and line 161 on twitter.php add:
PHP Code:
if ( ini_get('open_basedir') == '' ) {
$options[CURLOPT_FOLLOWLOCATION] = true;
}
Everything should work fine. (at least it did on my local machine)


still not working...i deleted the files then reuploaded. from the first to the last step.. still now working..

could i be missing something? Thanks!

2 Apr 2010, 1:29 PM
#67
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Re: AutoTweet [support]

it seems to be working on twitter:clap:

BUT :(

only if i click testfile.php URL

but when i add a product, no tweets.. i did it again, clicked the

http://www.mystore.com/admin/testfile.php

in twitter it says...

New Product Available: "" Check it out at http://bit.ly/ban8Mn

why is the test file is the only one working???? :cry:

4 Apr 2010, 8:56 AM
#68
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Re: AutoTweet [support]

Made it work! :clap::clap:

yahoo very nice mod thank you!!... :yes:

4 Apr 2010, 4:36 PM
#69
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: AutoTweet [support]

Great Mod!

I signed up on Twitter awhile back hoping to get more hits on my site but it was cumbersome having to go and tweet each and every product I upload so I sort of gave up on it until I found this MOD!

Now I am able to autotweet the new products and actually see if there are people clicking on it!

Once again great MOD!! Thank you!

6 Apr 2010, 1:53 AM
#70
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

Sorry I was absent there for a bit. Work's been crazy.

@corditreasures: Glad you got it working sorry I didnt respond sooner.
@sunflowertami: Yeah I was having problems with twitter too, it's a lot of work and combined with facebook and any other site you may need to update becomes very cumbersome.
@michellewardley: were you able to get it to work? As it's not part of the original twitter api, i'm not too familiar with it and i havent had time to look into it, sorry.

Speaking of which I'll have a facebook mod coming soon when I get a little time to finish it. Facebook doesnt make it easy though, I warn you.

6 Apr 2010, 9:56 AM
#71
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: AutoTweet [support]

Facebook Mod!! Can't wait for it! :clap:

You know, Facebook and Twitter supposedly has an app that combines the updates on both. But lately it has not been working. I've been reading on the complains of folks but so far no efforts to repair this has been done.

6 Apr 2010, 11:27 PM
#72
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: AutoTweet [support]

corditreasures:

Made it work! :clap::clap:

yahoo very nice mod thank you!!... :yes:

how did you get it to work? what was the problem??

Mine still not working.

6 Apr 2010, 11:56 PM
#73
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

since it's about a different api pm me your problems michelle i'll take a look at it there so that we don't fill this thread with too much non related stuff

18 Apr 2010, 2:01 PM
#74
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: AutoTweet [support]

Hi,

I usually add my products into a temp category first which is status="not active" then link them to other categories (the product is still not active).

When the day comes when I activate them, I just move the products to it's actual category then activate them status=active.

I noticed that the products was twittered even when it was not activated and in a temp category that was also not active.

I sell downloadable items so rather than add them and go to the attributes one by one I just put them into one temp placeholder and get them ready before activating them.

Is there something I can do to prevent it twittering until the product is activated?

18 Apr 2010, 2:48 PM
#75
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

Hmmm i think the best i could do is make it so that when you update the products status to active from the categories page you can go back to the update product page and simple click update to tweet the info.
to do this edit the included update_product.php as follows:

delete everything from like 128 to line 149 so that you're deleting // bof Auto Tweet. and // eof Auto-Tweet and everything in between (all of the autotweet code). now skip down about 3 lines or so to where you see:

 } elseif ($action == 'update_product') {
        zen_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "' and language_id = '" . (int)$language_id . "'");
      }

and replace just those 3 lines with:

 } elseif ($action == 'update_product') {
        zen_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "' and language_id = '" . (int)$language_id . "'");
 // bof Auto Tweet.
if($_POST['products_status'] = "1"){
include 'twitter/twitter.php';
require_once 'twitter/bitly.php';

// CHANGE: path to your store (i.e. http://example.com/store
$myStoreUrl = 'http://www.example.com';
// CHANGE: Your stores Twitter username and password
$twitter = new Twitter("TwitterUsername","TwitterPassword");
// CHANGE: Your bit.ly Username and API Key
// API Key should be a long number starting with "R_"
// available free @ http://bit.ly/account/your_api_key
$bitly = new Bitly('myBITLYusername', 'R_321321321321321');

// ##### No need to change below this line #####
// URL for bitly.php to shorten
$shirturl = $myStoreUrl . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id ;
// send tweet.
$shirtname = $sql_data_array['products_name'];
$mytweet ='New Product Available: "' . $shirtname . '" Check it out at ' . $bitly->shorten($shirturl);
$twitter->updateStatus($mytweet);
}// eof Auto-Tweet
      }

using your stores/twitter/bit.ly info of course. This new code is just checking the products status and if the status is = to 1 it performs the tweet. So this code will only be executed from the product's update page if the product is active.

18 Apr 2010, 3:29 PM
#76
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: AutoTweet [support]

Thank you so much for your quick reply!

I have installed the changes. Will have to wait until I have some new stuff to upload before being able to test it. So far my store has not disappeared so that means I installed the changes correctly :P

I do have one question though and I'm a bit confused. If I move the product from a temp Not active category into an active category and update it from there then it will send off the twitter.

If I create a new category Not active and add all my products there then ACTIVATE the category and thereby activating all the products on it, will it still send a twitter?

18 Apr 2010, 3:36 PM
#77
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

for your first question; if you move the product from your temp category to an active category, the product is not automatically turned on. (you have to click the red button to turn it green again) So as long as the product itself is set to 'not active' you can do all the updating you want and it wont tell twitter until it is active (green button in the category)

2nd question: once you activate the new category and the products within twitter will not be notified (as with both scenarios) until you actually click on a specific product and update it.

18 Apr 2010, 4:08 PM
#78
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: AutoTweet [support]

Ok I got it.

How come activating a new category and thereby making all the products within it green or activated will not trigger the tweet? Is it a different system working on automatic activate as opposed to those I move and manually turn green?

I have tested and moved one of the product on the temp category to the active category and turned it green. There was no tweet.
(It was tweeted before under the temp category when it was not active)

Reverting back to the original php file.

I think the module works so great! I'm a big fan of this indeed as it saves me a lot of time in tweeting it individually. I know I'm asking the sun and moon especially for free module but it would be great if it can only tweet when the product turns green whether or not it was manually turned green or automatically turned green by activating a new category.

18 Apr 2010, 4:20 PM
#79
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

yeah its not the best method; Once the product is in an active category and is active itself, you have to go in and update the product (as if you were changing the price or description or image). You don't actually have to go and change anything just click 'update' and then 'insert' on the following page as if you were.

This is a work around because the file where autotweet is located (update_product.php) does exactly that, it either adds a new product or updates an existing product. a differenct file controls whether or not the product is active and unfortunately it is a file I'm unfamilar with.

18 Apr 2010, 4:29 PM
#80
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: AutoTweet [support]

Hmm...well thanks for trying! I think I'll just use the original php file. It will still tweet the stuff on my temp category and people will click on it to get to my site however it will say product not found.

At this point, I'm grateful it got them to my site!! hopefully if they are interested, they will actually do a search and look for the product!

Anyway, in your future updates or revisions, you may want to look into this.

Thanks again! this is really the best module I've installed on my site so far!!! Keep at it!! :clap: