Page 1 of 3

Twitter button

PostPosted: Fri Aug 13, 2010 3:15 pm
by jadwigo
This is the feedback topic for the twitter button extension

Visit http://extensions.pivotx.net/entry/25/twitterbutton for more info or download.

22-2-2012: The extension's active file contained a typo in the identifier so a new minor version (1.0.3) is released correcting this. This new version will not show up on the dashboard as a new version. Every one is encouraged to download this new version through the link above.

Re: Twitter button

PostPosted: Sat Aug 21, 2010 8:37 pm
by verbaljam
Nice extension, thanks for that. Only one thing:
I used the following syntax on my entry page: [[ twitterbutton text="Post on Twitter" button="vertical" ]]

The button works (posting to twitter), counter goes to 1 but resets to 0 when I refresh the page.
Is this a glitch or am I doing something wrong?

Using PivotX 2.1 stable
Firefox 3.6.8 for Win.

Re: Twitter button

PostPosted: Sun Aug 22, 2010 3:37 pm
by PvC
Great Extension, thanks.

Re: Twitter button

PostPosted: Tue Aug 24, 2010 1:00 pm
by jadwigo
verbaljam wrote:The button works (posting to twitter), counter goes to 1 but resets to 0 when I refresh the page.
Is this a glitch or am I doing something wrong?


Hmm.. sounds like a glitch - do you have an url where we can see what's happening?

Re: Twitter button

PostPosted: Tue Aug 24, 2010 4:56 pm
by verbaljam
Is it possible that it takes some time before the result shows up?

I click the button: it shows the tweet window, I post the tweet.
The button shows 1.
I refresh the page: the button shows 0.
But when I try another refresh after some time, the 1 is there (don't know if someone else tweeted in the meantime, but don't think so).

You can try all the articles on my weblog if you want: http://verbaljam.nl
It's in Dutch, but 'Lees verder' means 'read more' (to come to the entry page of an article).

Re: Twitter button

PostPosted: Wed Aug 25, 2010 9:43 am
by Bob
There _is_ a bug with the title, I see. I'll fix that.

The 'counter' being updated, then not, and then updated again is not a bug I think.. What i think is happening is:
- You post on twitter
- The button immediately updates the counter by 1, to show it was posted
- If you reload the page, it shows the old score, coming from twitter's cached score for this page
- After a while twitters cache is updated with the new score, and that is displayed.

Re: Twitter button

PostPosted: Wed Aug 25, 2010 11:12 am
by verbaljam
Ok Bob, thanks for the explanation. I now understand what's happening.
What did you mean by a bug in the title?

Re: Twitter button

PostPosted: Wed Aug 25, 2010 12:10 pm
by Bob
If you click the button, it says "Post on Twitter" in the twitter window. you've probably copied the code verbatim from the docs:

[[ twitterbutton text="Post on Twitter" button="vertical" ]]

If you do this, however, the extension always picks up the entries own title:

[[ twitterbutton button="vertical" ]]

Re: Twitter button

PostPosted: Wed Aug 25, 2010 5:05 pm
by verbaljam
Thanks very much Bob, I will change that.

Re: Twitter button

PostPosted: Fri Sep 03, 2010 8:24 pm
by ctecha
I'm still having this same exact problem with the counter resetting to 0. I waited 3 days and it never updated. What happens is you click the tweet button, the tweet works, and it says Count 1. However as soon as your refresh the page it goes back to 0. I tried to see if this was a caching issue on twitter.com's part but it doesn't seem like it is because I just checked it again today and it still reads 0. Anybody know why this is happening? I need to fix it ASAP for a site I'm putting up and I don't want to go to another tweet button because they aren't as good.

Thanks