![]() |
i get this error when i click the tweet button and the popup appears
'url' parameter does not contain a valid URL. nevermind it was fixed with the above mentioned code change |
Quote:
|
I got this to look n work well http://www.righteouskings.com/showth...ease-Post-Here
but for some reason though my facebook like button is activated in my facebook options its not showing |
1 Attachment(s)
this is what my showthread template looks like with the tweet in it already
but my facebook button isnt showing |
WOW this is aggravating , at first when i first put in this code it worked fine , now i get some error
Quote:
Quote:
|
ok lol so the twitter is fully functional now , however the facebook like button , the defualt one can anyone tell me or give me an idea as to why it wont show ? it is selected in the admin cp options for facebook to display it
|
There are several built in facebook templates you should have, including one called facebook_likebutton
The contents of this are: Code:
<iframe id="fb_likeframe" src="http://www.facebook.com/plugins/like.php?href={vb:raw href}&layout=standard&show_faces=false&width=260&action=like&font=tahoma&colorscheme=light&height=27" scrolling="no" frameborder="0" allowTransparency="true"></iframe> |
ok im about to throw my pc out the window , thank you for trying , yes there is such a template n yes it does have that code in it , so i just dont know , and lack of experience doesnt help but im pretty sure im all well but it just doesnt want to work for me sad day , 8 hours dam near trying to get this to work for me , well it works im just talking abou the facebook button the tweet is perfect now
|
Quote:
|
Yes my issue was that I didn't have the default facebook on. Then on top of that I have another modd called facebook bridge, which was conflicting with the default. Making it give me a error code. However the great dev gave me great help and was very patient. THANKS for your reply. VB 4.1. PATCH 2. THANKS
|
Hey BOP any idea how to add the twitter button to CMS and Blog stuff yet?
|
I just got access to a Suite version of VB4 so I'll play around and let you know soon.
|
Thank you so much! I love it! :D
|
Quote:
Thanks. I will edit this post if someone sends me a login so if you are reading this probably no one has yet. ;) |
Everything works great except lol I can ONLY tweet from the private forums and not the public ones! I have the built in fb like button enabled, followed the instructions, I am running version 4.1.1
|
Are you using a <vb:if...> conditional? If so it sounds like there is an extra or missing exclamation point (!) which would show the tweet button in the opposite forums.
|
Quote:
Decided to test the forums again, and well now it's working with no problem, maybe I just needed to clear my cache? That is all I have done since the install earlier now no issues. Thanks for your time. |
OK, glad it is working. :up:
|
Working fine, thanx
|
It appears vBulletin has changed the location of the Facebook Like button in version 4.1.2. As a result it is likely the code changes needed will be different in 4.1.2 and beyond, I will not be able to support installs beginning with version 4.1.2 since my license stops at 4.0.8. You can try the code and report your results on 4.1.2 and beyond. The main point is the twitter code can really be placed anywhere on showthread- it's finding the ideal location that will take some trial and error:
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> |
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 :) |
Try This:
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="TWITTERNAME" data-url="{vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
Quote:
Quote:
For this reason I prefer to tweet the first page only no matter what page someone hits the tweet button on. Not to mention each page would have it's own tweet counter (so if someone tweets page 2, page 1 would be zero still). For the same reason I don't like using the full title in the URL because if the title is edited the count will reset as well. |
Anyone know why the tweet count resets to 0 when you refresh the page?
|
I used the code from Post 143 here and it works nicely to fix the dropped slash problem. Thank you!
How would that code be modified to Tweet a link to a single post? I'd add the button to the post header bar, next to the permalink. I assume it would use the permalink, but don't know how to code that. Similarly, how would the code for the Facebook 'Like' button be modified to 'Like' a single post instead of the entire thread? Thanx (I'm using 4.1.3) |
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?p={vb:raw post.postid}#post{vb:raw post.postid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> In facebook or anything else use this URL per post: Code:
{vb:raw vboptions.bburl}/showthread.php?p={vb:raw post.postid}#post{vb:raw post.postid} |
I installed this ok and it sends the thread out to my twitter page but the URL on the tweet does not take the reader back to the forum thread?
Its: Tweet to Twitter test http://t.co/vzi8yBF Does anyone know why its creating the wrong link, what do i need to do to the code to correct this and auto post the correct URL back to the forum thread? thanks guys Andy |
There is so much wrong with the URL you pasted I don't know where to begin...
Exactly what code are you using for the twitter buttong- post it here. Also post the URL to a thread that has the twitter button on your forum. |
Thanks BoP -
BTW, I placed a bug report at Twitter regarding the missing / after the .com and they acknowledge the bug: http://code.google.com/p/twitter-api...detail?id=2231 Quote:
|
Cool. :up:
|
Heh,
I also submitted this as a bug report to vBulletin and they acknowledged the bug but downgraded it from my "Major" rating to "Minor". Not being able to let your Twitter users with a large number of followers share a link to your forum is minor? |
All times are GMT. The time now is 07:31 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:
|