![]() |
Quote:
|
That's weird but this should fix it...
Edit your headinclude template: Find: Code:
<meta name="description" content="{vb:raw vboptions.description}" /> Code:
<vb:if condition="THIS_SCRIPT == 'showthread'"> This will include a canonical link on your threads (and only threads) which over-rides the URL passed to Twitter, with hopefully, the right one now... If this doesn't work please give me a link to your forums so I can see what is up... |
That worked, cheers for that - much appreciated :)
|
Hi man, nice hack!
I have some little problems... see the image: https://vborg.vbsupport.ru/external/2010/08/22.png I am using this code: PHP Code:
Thanks. |
Quote:
|
Quote:
Quote:
(Copied below for easy reference) If you DO USE the built-in Facebook Like button do the following: Find: Code:
{vb:raw fblikebutton} 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">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>{vb:raw fblikebutton} The Tweet button will now show up next to the Facebook Like button in anytime the Facebook Like button is displayed in a thread. |
1 Attachment(s)
Yes but like you can see... i am not using the like button... i am using another button, share button (i am using this https://vborg.vbsupport.ru/showthread.php?t=234548 but i want to use both in the same location).
I tried with: PHP Code:
|
If you're using another mod I can't tell you where to put it- but if you can post your say the top third of your showthread template can look at it and try to give you an idea on where to put it and how to customize the code a little.
If you post it, post it without the tweet code at all- whatever you have that works for you now. |
Quote:
Thanks man. |
Quote:
The problem is that the facebook share button appear some pixels lower than the tweet button. Thanks |
If you go to your template editor and edit your showthread template...
Then copy and paste the "top" part of the file here I can look through it and suggest a location you could put the code. If you could copy and paste everything in showthread above: Code:
<li><a href="poll.php?{vb:raw session.sessionurl}do=newpoll&t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}…</a></li> |
If i am not wrong this is the code that you want:
PHP Code:
|
I would have preferred the code before you inserted the Twitter code but let's try this:
Find: Code:
<vb:if condition="!in_array($GLOBALS[forumid], array(191, 192, 217, 114, 216))"> Code:
<vb:if condition="!in_array($GLOBALS[forumid], array(191, 192, 217, 114, 216))"> |
Well... i solved the problem with this: http://sharethis.com/publishers/get-button-code?style=6
Using this code: PHP Code:
PHP Code:
http://www.webpagescreenshot.info/im...01053134am.png When i add that code of the headinclude (the scripts) appear something at the right of thanks button. You know how to solve? Thanks and sry for posting here but is something "related" and maybe you know what is the problem. |
Sorry, I have no clue about that. :(
|
Installed.
Code:
http://www.forum.com/threads/90953 Any help? |
Quote:
|
Well I thought I had it working but the counter seems to mess up?!
When I tweet something the counter will say "1" hit refresh and it will go back to "0" and each and every time after still "0" Any ideas? |
Quote:
Understand? I will keep trying to figure out why you're having the initial issue since that would solve everything, but in the mean time you can display the Tweet button without the counter so it doesn't throw people off... in your code replace: data-count="horizontal" with data-count="none" |
Quote:
BTW: when you click the number (which is 0 most of the time) it does take you to the tweeted link on Twitter.com |
Quote:
That's good it does, probably because of that link you added. |
Heard back from the vbseo guys and they said it is nothing to do with vbseo!
|
Quote:
|
Where is the headerinclude template, can't find it in my ftp client to make the change?
Quote:
|
Oh I found it! It's not headerinclude, it's headinclude
|
Whoops... my bad... will fix the instructions- thanks.
|
I dont see the code ... {vb:raw fblikebutton}
in SHOWTHREAD ... did this change in 4.0.6 ? |
No, I use 4.0.6 so it's definitely there... It may only be there if you have Facebook Integration turned on- not sure... if you don't use the facebook like button there are alternate instructions listed...
Also make sure there's no spaces before or after "{vb:raw fblikebutton}" in your search... Look for this code before it: Code:
<vb:if condition="$show['fb_likebutton']"> |
Quote:
If I go back to the thread the next day the indicator is correct (it also counts retweets which is nice) Now the only issue is which i'm sure can't be worked around is that if the thread is multipaged the indicator only shows on one of the pages. |
Each page has it's own URL so if someone tweets page 2 people will be linked directly to the second page... the page # can be removed from the canonical link expression so it's always the first page that gets tweeted, but that could hurt the SEO of your forums because you giving the link to a different page then the actual content it on...If someone tweets page 2 instead of page 1 maybe the 'good' post is on the 2nd page anyway.
If it's 'fixing itself' it sounds like a Twitter server issue not keeping up with the counts... this is still new to them so maybe they will figure it out. |
Anyone know how I can add this to my article pages?
|
I don't have the full suite so I don't know what the article template looks like- but if you use facebook like button I'd imagine it's a very similar edit, if not the exact same code.
|
I have installed it in Navbar templete -
There is problem - till individual thread its good but on a thread. It tweet this url http://www.policywala.comshowthread.php/299978 Instead of this url http://www.policywla.com/showthread.php/299978 How to fix this problem? :mad: |
Quote:
|
Quote:
|
Quote:
I don't have vbSEO and am having the same issue. However I think it takes a few minutes for the count to be accurate ... |
1 Attachment(s)
works but in the tweet i see this:
why? |
Quote:
Quote:
|
I have test coment #42 and not work.
My forum is www.forumdigitalfoto.com |
Already working, thanks!
|
All times are GMT. The time now is 01:28 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:
|