Page 1 of 1

Flattr Button not showing correct numbers

Posted: Tue Aug 31, 2010 4:15 pm
by schimanke
Hi,

I've been using the flattr-plugin quite a long time now. However, it always shows a "0" on the button in my blog (www.schimanke.com). But when I log in to flattr.com, I can see that several users have flattred me. How does this happen?

Regards,
Flo

Re: Flattr Button not showing correct numbers

Posted: Wed Sep 01, 2010 11:32 am
by garvinhicking
Hi!

The output comes from flattr themselves, so you might need to contact them to ask what could be the problem. The JS call itself does seem alright to me...

Regards,
Garvin

Re: Flattr Button not showing correct numbers

Posted: Fri Oct 08, 2010 6:33 pm
by schimanke
I might have found the cause of the problem. Up to now it is just a guess but could it be related to the question mark (?) in the URL? Here is what I have experienced with some of my buttons (flattr, Facebook, Twitter):

My URL looks for example like this: http://www.schimanke.com/index.php?/arc ... -3910.html

As you can see, there is always a question mark after "index.php". When I now flattr an article everything works fine, but the button count does not go up. Anyway, testing it with a static URL, leaving out the question mark, the correct number is shown.

I have also tried this with my Facebook and Twitter buttons. Using a URL without question marks leads to a correct number. Using a URL with question mark leads to a zero in the count. To me it seems that the "count URL" gets cut when teh question marks occurs. For example when I use the Twitter button the correct link (for example http://www.schimanke.com/index.php?/arc ... -3910.html) is tweeted, but the tweet-count only looks for http://www.schimanke.com/index.php.

Since I can use a static URL without the question mark is there any way to leave it away? Is it needed for something?

@Garvin: Do you think this is really the cause of my problem?

Re: Flattr Button not showing correct numbers

Posted: Sun Oct 10, 2010 8:23 pm
by garvinhicking
Hi!

If that "?" were the cause of this, then facebook/flattr definitely would need to change that, because "?" is perfectly valid in the URL and a unique identifier! Many sites do not support URL rewriting, so things like index.pph?id=XX would be required.

I'd also think that I've already seen working FB/Flattr integrations of blogs that use the "?" URL method...

Regards,
Garvin

Re: Flattr Button not showing correct numbers

Posted: Mon Oct 11, 2010 11:30 am
by schimanke
Okay, it was just a guess up to now since I experienced some similar behaviour with my facebook like-buttons (http://board.s9y.org/viewtopic.php?f=4&t=16668). If I could get URL rewriting to work, I will see if my guess was right...