![]() |
I visited the 4.x site in your signature- I see you have the tweet counter disabled (data-count="none") what was the issue you were having with the counter? Sometimes I've seen twitter themselves show the wrong count for a few hours but eventually it gets 'fixed' - I guess Twitter themselves are still working out the bugs.
You also may want to try the option in post number 42 of this thread if you are having issues with the counter. |
Quote:
|
OK Try this... replace the existing Twitter code:
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="http://www.example.com/forum/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div> This *should* fix all issues with the count disappearing when leaving a page and coming back. |
Quote:
this is the code I used Quote:
|
The code looks absolutely right... I would just remove the canonical link element if you're not using it at this point... the URL showing in the canonical link is different than the url showing in the twitter code, which could be the problem.
|
Quote:
ga? :eek: |
Quote:
|
Quote:
Quote:
|
Ahhh... OK basically I went to this thread on your forum: http://www.metallifukinca.com/showthread.php?14228-test
And then I went to "View Source" in my browser. Then on line 15 of the source you have this line: Code:
<link rel="canonical" href="http://www.metallifukinca.com/showthread.php?14228-test" /> |
Quote:
|
OK... I'll see if I can replicate the issue on my 4.0.8 test board...
|
Quote:
|
OK I am getting the same issue on 4.0.8 now... I looked up some info and it seems Twitter is now caching the twitter count so it doesn't update in real time... I made a couple of test tweets and it still shows "0" when i go back... I'm going to give it some time and see if the correct count is eventually displayed.
This is official info from Twitter on the subject: Quote:
|
Quote:
|
any luck?
|
No, but I have found this is a widespread issue.. many bloggers posting about the exact same issue... no one can seem to find a rhyme or reason when it works or doesn't work. Hopefully twitter is working on the issue, I'd imagine they have to know about it considering how wide spread the issue is. All I can suggest for no is to disable the count or let your members know the count isn't working right yet... I'd imagine someday it will just start working when Twitter fixes the issue.
I went through about 10 different options using canonical links, data-url, and count-url options for the twitter tag and using both "basic" friendly and "advanced" friendly URL's in vbulletin and nothing worked. I wish I knew if it was something new in 4.0.8 or if older VB4 versions also stopped counting- not that I'm in a position to do much about it but it would be nice to know. Anyone with VB4 have this still working right? |
ok, when I click the tweet button this is what I get
Quote:
|
Can you paste the exact text/code for the twitter button you are using in your template?
|
here is my code
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="MY USER NAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
Quote:
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="http://www.example.com/forum/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div> |
Quote:
|
OK, I got 1 more trick up my sleeve... Give me a few minutes to test it... will reply back once I make sure it works.
|
OK... use this code... remember to replace the username with your own...
This should remove all the special characters from your URL so it should work with twitter... please let me know. Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="{vb:raw vboptions.bburl}/showthread.php?t={vb:raw threadid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
you are the best. It works like a charm. Thank you very much.
|
Glad to hear it... :up:
|
I tweet just fine but the count just stay as 0. Can you please review this once more time? Thank you.
|
Yeah the count issue is a widely reported problem, some people are affected some aren't, there so far doesn't seem to be a rhyme or reason to it. One option is to disable the count completely by changing "horizontal" to "none" in the code.
One thing I would try first though is this code which tells it to specifically count the URL you're twittering: Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="{vb:raw vboptions.bburl}/showthread.php?t={vb:raw threadid}" data-counturl="{vb:raw vboptions.bburl}/showthread.php?t={vb:raw threadid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
wont work; i think I will disable the count completely. Thank you for your help.
|
still no luck with this?
|
nothing yet. :(
|
Is there a way to have it show the follow-up screen that suggests to follow a user after they click tweet.... namely the user that I'm already inserting for the "via" part of the tweet? Thanks.
|
They should already see the 'via' user as a suugested follower- if it's not YOU tweeting since you can't follow yourself... you can add an additional suggested follow by adding:
Code:
data-related="2ndUSERNAME" Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-related="2ndUSERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
Installed and I believe its working (not planning on setting up a 2nd tweet account to test from a 3rd party view). But I was able to tweet myself using the original code.
4.1 PL2 |
I don't think it's working for me. It installed correctly, but when I click the Tweet button, it says that Twitter is over capacity. But in another window I am logged into Twitter and it's working fine/not at capacity...
Also, I am using the mod that works WITH the Facebook one built-in to vB 4.x. EDIT: This is the url from the Twitter pop-up window: "http://twitter.com/share?_=1294397124377&count=horizontal&original_re ferer=http%3A%2F%2Fslayalive.c om%2Fshowthread.php%2F758-New-Feature-Tweet-This!%3Fp%3D12354&text=New%20Feature%3A%20Tweet%20 This!&url=http%3A%2F%2Fslayali ve.comshowthread.php%2F758-New-Feature-Tweet-This!&via=SlayAliveForum" Doesn't seem right. I hope this can be fixed because I really want to use this! |
Your info appears correct- Twitter could use different severs for the "Tweet This" button then they do their regular site so it's possible one is over capacity while the other still works- in fact I'm fairly sure different sites tweet buttons get handled by different servers- I would give it a few hours and try again before worrying too much.
If you want me to take a look you can post your exact twitter code used in the template here and I'll double check it for anything suspicious. |
Looks like this only happens when there are special characters in the thread title, i.e - !?.,@ and so on. Threads that do not include special characters in the title work fine. Otherwise I get that "at capacity" message. Weird.
|
See post #143 in this thread to fix the non-English character issue.
|
Quote:
But I also have vBet which translates my community in a wide range other then English. Should I use the code also or did you update the 1st post to include the fix in post #143? |
Post 143 isn't necessary for most people do I didn't include it in post # 1...
The combined code from post 1 and 143 you should use is: Code:
<div id="fb_likeframe" style="border: none; overflow: hidden; height: 27px; width: 95px; vertical-align: text-bottom; padding-top:1px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="{vb:raw vboptions.bburl}/showthread.php?t={vb:raw threadid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>{vb:raw fblikebutton} |
Quote:
|
All times are GMT. The time now is 08:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|