![]() |
@ buro9
I fixed it. I am using the following classes: http://code.google.com/p/bitly/ http://twitter.slawcup.com/twitter.class.phps My vbulletin plugin becomes: PHP Code:
|
I am not getting any errors but I am not getting any updates either. I'm sure I've done everything according to the instructions.
|
Sorry .. too bad.. it doesnot works, after i follow the instruction..
|
This sounds cool I will try it out tomorrow (too tired now.) Is it possible to have it tweet blog and/or cms articles also? or only threads? Either way I will try it out tomorrow!
|
We can only feed new threads..... bu we can we feed answers in Threads ?
|
Quote:
|
I have attached the error I am receiving after posting a thread. The thread posts correctly but does not send to twitter. Any advice?
|
I am getting the following error after posting a new thread:
Fatal error: Call to undefined function curl_init() in /home/ddddd/public_html/forums/bitly.php on line 145 |
Quote:
Thanks! |
Well, I swear I've been over my code 10 times with a fine tooth code-comb and it's fine. And I even had bit.ly reset my API. But I'm still getting the auth errors "You must be authenticated to access shorten on line 193 in ...".
I can disable bit.ly and the twitter stuff works. I wonder: Can I simply exclude my Admin category number, rather than excluding each separate forum under it (moderators, super moderators, etc.)? edit: No, you cannot exclude categories. You must list each separate forum. |
Let me share my solution.
bitly.php: I set the following Curl options: $options[CURLOPT_FOLLOWLOCATION] = false; $options[CURLOPT_HEADER] = false; and for twitter.php: $options[CURLOPT_FOLLOWLOCATION] = false; Then all error messages gone! :) |
This tool is insane, I get 500+ Guests after every thread is posted woha!! thanks man
|
Quote:
Oh, it works now! Thanks Jesh!:) |
This is SEXY.
|
I enabled CURL in Apache, and now this Mod is working for be . Thank you very much.
|
What fun getting this stuff working.
So it all seems to boil down to making sure: 1) CURL is installed and enabled for PHP 2) JSON is enabled 3) You've put the right values in the plugin 4) The moon cycle is aligned with mars Works a dream once you get past your environment's issues though. I'm still looking for someone to help package this if people would like that. |
Outstanding! Thank you.
I had no problems whatsoever in making this work...however, I did take a little bit of time to figure out what needed to be inserted into the plugin code. To save anyone else the extra few minutes, you are basically just replacing the info in between the < > symbols. |
Quote:
PS I am not seeing any sort of influx of guests; certainly not 500. But then we've never had a presence and have few followers. Not sure what we could do with 500 lurkers knocking about anyway. |
Great! Working at http://twitter.com/love_punjab for http://www.lovepunjab.com
|
Quote:
|
Quote:
Thanks again... Appreciated! |
Quote:
|
@buro9
Fantastic mod mate and thanks for sharing. It's really bringing in the traffic! :D |
Quote:
|
Quote:
HTML Code:
// The array below are the ids of non-public forums, update these to be your admin forum ids or anything non-public by default |
You've got a space at the end of your bit.ly key (which you might want to remove from the code block here..)
|
I don't remember your specific problem, but I see you have the infamous extra space after your bitly API.
However, I still can't get bit.ly to authenticate me regardless. |
I fixed it, and now my host enabled CURL, JSON is enabled as well.. did I miss something??
EDIT: It still wont work. |
K it works, thanks to all who helped!
EDIT: wow and the second I go back to my home page, my spiders on my site went from 11 to 22 and growing...nice! |
Quote:
Don't know why this would warrant a snarky comment from you and, even more, one that takes exception to the post and then seeks to correct it with....wait for it....an equally incorrect statement. |
It works but when i go on twitter i see "unknow file"and when i click on the link come out 404 Not Found
( Not Found The requested URL /showthread.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.) |
With due regards I would like to bring to your kind notice and would like
to have your kind favour in solving my problem. 1. When some one post it immediately goes to twitter site and by clicking on it - it displays "No Thread specified. If you followed a valid link, please notify the administrator." 2.Secondly, When somebody adds new thread, it doesnot appears, but when he add it twice then it appear. 3. When someone post it , but it doesnot mention the name of title at bid.ly, it only mention gs community I, therefore, like to have your kind favour to get it solved as soon as possible as I need the "TITLE" to be displayed. Kindly guide me in this matter. Regards copy of screenshot here |
Quote:
Quote:
2) There's no reason for it to be called twice, the plugin will either work all the time, or fail all the time. Please double-check the instructions. 3) Twitter will show precisely what you tell it to, bit.ly statistics on the other hand will go and fetch the page and will show the title of the page it fetched. So in the case of bit.ly it is resolving and fetching the URL and show the title of that page. You've already said that problem #1 is that you get a 404 not found, which suggests that your URL is wrong. bit.ly is showing the title of your 404 page because that's currently where the URL ends. Fix #1 and #3 will also be fixed. |
No i donot any other forum at my site , just one forum.
2. can u tell how to fix it #1 & #3.. do i hv install and follow the instruction again. Do reply Thanks Quote:
|
See this bit:
PHP Code:
PHP Code:
PHP Code:
|
here is my config..
// The array below are the ids of non-public forums, update these to be your admin forum ids or anything non-public by default $excludedForums = array(7); if (!in_array($foruminfo[forumid], $excludedForums)) { // http://classes.verkoyen.eu/bitly require_once 'bitly.php'; // http://classes.verkoyen.eu/twitter/ require_once 'twitter.php'; $bitly = new Bitly('guru', 'R_d3383e27ad33b187a20e78d68c063be'); $shortUrl = $bitly->shorten('http://www.mysite.info/vbforum/showthread.php?t='.$newpost[threadid]); $tweet = ''; if (isset($newpost['prefixid']) && $newpost['prefixid'] != '') { $tweet = $vbphrase['prefix_'.$newpost['prefixid'].'_title_plain'].' '; } $tweet .= $newpost['title'].' '.$shortUrl; $twitter = new Twitter('guru','mypassword'); $twitter->updateStatus($tweet); } please check whether is it okay or not If it s okay.. but i didnot make any change on it . it is same config what i do. or if it is wrong then please explain correct config. Do reply |
Got it working perfectly first try. I read through the comments here, but I didn't see it (I may have missed, so forgive me if I did). Is there a way to include the Poster's name in the tweet? I'm not sure what the syntax would be for the tweet line.
Basically, I just want it to say "Thread name" by "Poster" ... bit.ly/url I can see WHERE to put it, but I'm not sure of the variable that refers to the poster of a thread. |
Is there a way to make it tweet RSS feeds as well?
|
I would like to thank you for this great mod buro9 , realy nice try : )
and working perfect in 4.0.1 |
Not working with the new BBR - vB Event Forums. Posting an event doesn't tweet the event. :(
|
All times are GMT. The time now is 01:02 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:
|