![]() |
I'll tying this .. Thank's man ..
|
For those that are using 4.1.1 and you are using the fb integration, I used this code that i put together from the earlier posts in this thread:
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 ACCOUNT NAME" 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></div>{vb:raw fblikebutton} |
Thanks for this - tested on VB 4.1.1 using Kingdombuilder's code.....works great.
|
hello BOP5
If i have a thread with 50 pages, when i make a tweet for a particular page... say page 20 it will resolve the url of the page to twitter if the format of the url ending is like this /page20 but will not resolve the url of the page to twitter if the end of the url is like this &p=46607#post46607 if the url ends with eg. &p=46607#post46607 the tweet url will point to the start of the thread regardless how many pages in the thread. How do I make it that the url tweeted will be whatever is in the address bar It understands /page20 but wont resolve &p=46607#post46607 thanks |
First, in general tweeting page numbers tends to cause problems. Most forums allow users to select the number of posts per page so your page 10 might be my page 5 or someone else's page 1... so the page number tweeted might not work for whoever follows the link in the tweet.
In the code I recently posted: 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> If you remove the data-url and data-counturl attributes the URL tweeted should match exactly the URL in the browser address bar which should respect page numbers, but as I said they can be different for different people. 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> |
I'll check it out.. big thanks BOP5
|
<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=121142&d=1282396263" target="_blank">https://vborg.vbsupport.ru/attac...2&d=1282396263</a>
Just upgraded to 4.1.2 and the facebook like button is floating left, to the end of Thread Title instead of staying right with the tweet button as shown in this image... Everything seems to be working... What do I need to change to keep it to the Right? |
Quote:
|
count issue
i think it is because of t.co short url services of twitter and some pages will not be counted if you can add short url to the code so it will works |
In 4.1.2 there is a template called "facebook_likebutton"
Just add it to the end of that template :) |
All times are GMT. The time now is 05:08 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:
|