![]() |
Hello,
I am getting the same error. I did enter your code on line 136 of bitly.php. Code:
Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/twitter.php on line 189 EDIT: Just noticed the new version, cheers! |
Quote:
|
I installed it just like the directions said and it is not tweeting new threads
I just tried resetting the API Key for bit.ly and tried it again |
Quote:
The only solution I apparently know of is what was suggested by a previous user and grab the forum's RSS feed and hook it up with TweetFeed or something similar. |
I will mark as uninstalled, because does not work with my forum.
vBulletin 4.1.0 versión. I search for another mod, or if you know for some mod for live tweets, i apreciate if told me about. Thanks... |
Quote:
|
I got this error:
Code:
Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/twitter.php on line 189 |
Quote:
Quote:
|
Quote:
|
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=559 |
Quote:
That worked for me - thanks v much :) For the sake of anyone reading this post who is getting errors when they install the plugin, try fountainmass' instructions above. It's slightly difficult but it works. |
I only want to post new threads to twitter after they have been rated 5 stars. This way only interesting threads are posted to twitter. If I would post all new threads to twitter then my twitterfeed would get hundreds of posts per day. This would be spammy as not all of them would be of interest to twitter followers.
Please consider to add this function. |
Well that was a waste of time... Why don't they graveyard this......
This one however works fine. https://vborg.vbsupport.ru/showpost....&postcount=559 |
Hi Guys,
I have installed all the details as per the instructions and cannot see any tweeted forum posts in my twitter page - I also get no error messages, thus is appears to be ok but cant see the forum threads in twwitter? thank Andy |
WOW
Awesome buddy Great Work Let me check..... :) |
Everything is OK...
but got this error Fatal error: Basic authentication is not supported on line 204 in [path]/twitter.php in [path]/vb/vb.php on line 287 Basic authentication is not supported on line 204 in /home/youngsko/public_html/twitter.php #0 /home/youngsko/public_html/twitter.php(648): Twitter->doCall('statuses/update...', Array, true) #1 /home/youngsko/public_html/newthread.php(276) : eval()'d code(26): Twitter->updateStatus('Hijr Ka Taala D...') #2 /home/youngsko/public_html/newthread.php(276): eval() #3 {main} |
Quote:
|
Quote:
I Got this error can some 1 tell me how to fix it please :D |
Quote:
I'll reiterate: Some people have gotten this mod to work with extensive editing. It's in the thread, they aren't going to repeat it all again. But why bother, since there's another mod that works great. |
Quote:
|
I get this:
Basic authentication is not supported on line 204 in /home/forum/public_html/twitter.php #0 /home/forum/public_html/twitter.php(648): Twitter->doCall('statuses/update...', Array, true) #1 /home/forum/public_html/newthread.php(277) : eval()'d code(26): Twitter->updateStatus('Test http://bit...') #2 /home/forum/public_html/newthread.php(277): eval() #3 {main} Fatal error: Basic authentication is not supported on line 204 in [path]/twitter.php in [path]/vb/vb.php on line 287 #0 vb_error_handler(256, Basic authentication is not supported on line 204 in /home/forum/public_html/twitter.php , /home/forum/public_html/vb/vb.php, 287, Array ([exception] => TwitterException Object ([] => Array ([100] => Continue,[101] => Switching Protocols,[200] => OK,[201] => Created,[202] => Accepted,[203] => Non-Authoritative Information,[204] => No Content,[205] => Reset Content,[206] => Partial Content,[300] => Multiple Choices,[301] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[302] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[303] => See Other,[304] => Not Modified,[305] => Use Proxy,[306] => (Unused),[307] => Temporary Redirect,[400] => Bad Request,[401] => Unauthorized,[402] => Payment Required,[403] => Forbidden,[404] => Not Found,[405] => Method Not Allowed,[406] => Not Acceptable,[407] => Proxy Authentication Required,[408] => Request Timeout,[409] => Conflict,[411] => Length Required,[412] => Precondition Failed,[413] => Request Entity Too Large,[414] => Request-URI Too Long,[415] => Unsupported Media Type,[416] => Requested Range Not Satisfiable,[417] => Expectation Failed,[500] => Internal Server Error,[501] => Not Implemented,[502] => Bad Gateway,[503] => Service Unavailable,[504] => Gateway Timeout,[505] => HTTP Version Not Supported),[] => Basic authentication is not supported,[] => ,[] => 0,[] => /home/forum/public_html/twitter.php,[] => 204,[] => Array ([0] => Array ([file] => /home/forum/public_html/twitter.php,[line] => 648,[function] => doCall,[class] => Twitter,[type] => ->,[args] => Array ([0] => statuses/update.xml,[1] => Array ([status] => Test http://bit.ly/rhKelq),[2] => 1)),[1] => Array ([file] => /home/forum/public_html/newthread.php(277) : eval()'d code,[line] => 26,[function] => updateStatus,[class] => Twitter,[type] => ->,[args] => Array ([0] => Test http://bit.ly/rhKelq)),[2] => Array ([file] => /home/forum/public_html/newthread.php,[line] => 277,[function] => eval))),[code] => 256)) called at [(null):0] #1 trigger_error(Basic authentication is not supported on line 204 in /home/forum/public_html/twitter.php , 256) called at [/home/forum/public_html/vb/vb.php:287] #2 vB::handleException(TwitterException Object ([] => Array ([100] => Continue,[101] => Switching Protocols,[200] => OK,[201] => Created,[202] => Accepted,[203] => Non-Authoritative Information,[204] => No Content,[205] => Reset Content,[206] => Partial Content,[300] => Multiple Choices,[301] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[302] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[303] => See Other,[304] => Not Modified,[305] => Use Proxy,[306] => (Unused),[307] => Temporary Redirect,[400] => Bad Request,[401] => Unauthorized,[402] => Payment Required,[403] => Forbidden,[404] => Not Found,[405] => Method Not Allowed,[406] => Not Acceptable,[407] => Proxy Authentication Required,[408] => Request Timeout,[409] => Conflict,[411] => Length Required,[412] => Precondition Failed,[413] => Request Entity Too Large,[414] => Request-URI Too Long,[415] => Unsupported Media Type,[416] => Requested Range Not Satisfiable,[417] => Expectation Failed,[500] => Internal Server Error,[501] => Not Implemented,[502] => Bad Gateway,[503] => Service Unavailable,[504] => Gateway Timeout,[505] => HTTP Version Not Supported),[] => Basic authentication is not supported,[] => ,[] => 0,[] => /home/forum/public_html/twitter.php,[] => 204,[] => Array ([0] => Array ([file] => /home/forum/public_html/twitter.php,[line] => 648,[function] => doCall,[class] => Twitter,[type] => ->,[args] => Array ([0] => statuses/update.xml,[1] => Array ([status] => Test http://bit.ly/rhKelq),[2] => 1)),[1] => Array ([file] => /home/forum/public_html/newthread.php(277) : eval()'d code,[line] => 26,[function] => updateStatus,[class] => Twitter,[type] => ->,[args] => Array ([0] => Test http://bit.ly/rhKelq)),[2] => Array ([file] => /home/forum/public_html/newthread.php,[line] => 277,[function] => eval)))) called at [(null):0] |
Quote:
edit: Oh and be sure to always quote your entire error. :) |
Any help would be great! Thanks in advance.
(bits in red changed to protect the innocent) ERROR MESSAGE - Could not authenticate you. /statuses/update.xml Unauthorized on line 229 in /var/www/vhosts/mydomain.co.uk/httpdocs/twitter.php #0 /var/www/vhosts/mydomain.co.uk/httpdocs/twitter.php(648): Twitter->doCall('statuses/update...', Array, true) #1 /var/www/vhosts/mydomain.co.uk/httpdocs/newthread.php(276) : eval()'d code(23): Twitter->updateStatus('Test from Mark ...') #2 /var/www/vhosts/mydomain.co.uk/httpdocs/newthread.php(276): eval() #3 {main} MY PHP SCRIPT // If you are having trouble getting bitly URL shortening to work... disable it! $useBitly = true; if (!in_array($foruminfo[forumid], $excludedForums)) { $shortUrl = 'http://www.myDomain.co.uk/showthread.php?t='.$newpost[threadid]; if ($useBitly) { // http://classes.verkoyen.eu/bitly require_once 'bitly.php'; $bitly = new Bitly('accountName', 'R_70765765765765765765'); $shortUrl = $bitly->shorten($shortUrl); } $tweet = ''; if (isset($newpost['prefixid']) && $newpost['prefixid'] != '') { $tweet = $vbphrase['prefix_'.$newpost['prefixid'].'_title_plain'].' '; } $tweet .= $newpost['title'].' '.$shortUrl; // http://classes.verkoyen.eu/twitter/ require_once 'twitter.php'; $twitter = new Twitter('accountName','234kjh234k2j3h4'); $twitter->updateStatus($tweet); } |
Quote:
The direct link to the actual mod is here https://vborg.vbsupport.ru/showthread.php?t=236278 |
Hello, I need to know something.
Can I add Tweet Prefixes (not thread prefixes) With this add-on? For xample, Tweet: [Forum] vBulletin, the best forum system bit.ly/TweetURL23 Many thanks. |
I have got it working after some googling og different errors.
Thanks for the mod. |
Here is the error that I'm getting. Any ideas?
Quote:
|
Here is the php I entered in the plug-in with the password and API starred out:
PHP Code:
|
Go to the upper right and "search this mod" for the error you're getting. Specifically "Basic authentication is not supported".
|
Thanks for the help. What it boils down to, essentially, is that this mod is a piece of crap. Right? LOL
|
Quote:
|
I know. It was a little sarcasm. Videx seems to have a strong distaste with this mod (and maybe for people like me that don't read all 40 pages of the thread).
|
Hey mairving I encountered the same problem at first! The solution is that in the array you need to break up the numbers.
I.e. instead of "1,2,3,4" it should be "1, 2, 3, 4" That fixed it for me. |
I tried this with my 4.2.0-board. It didn't work, the bit.ly-thing threw out errors. After fixing that the twitter-thing threw out other and more complicated errors. I tried to fix it and I got it working. But many changes were needed. I try to tell you:
At first, don't use the attached bitly.php. Use the linked one in the first posting. Or take this link: http://classes.verkoyen.eu/bitly unzip it, place it in the forum-root Second: the twitter-API only accepts oAuth now, no basic username/password authentication anymore. So you have to use the new twitter.php. Don't use the one attached to the first posting. And don't use the one linked in the first posting. Use this one instead: http://classes.verkoyen.eu/twitter_oauth unzip it. Don't place it in the forum root now! We have to edit it! Now you have to get a legacy-API-key from bit.ly: https://bitly.com/a/settings/advanced And you need oAuth-data from twitter. Use this link: https://dev.twitter.com/ then click on "my applications" in the menu on the upper right. Click on "create new application" and enter your data. (you don't need to enter a callback-url) Then your app is created. Click on "settings" and then switch to "Read, Write and Access direct messages". Update application settings. Go back on the "details"-tab and click on "create my access-token". Go to tab "oAuth tool" You will see four keys now. You need all of them. Open your twitter.php, search for "private $oAuthToken = ' ';" Place the "Access token" here. Then search for "private $oAuthTokenSecret = ' ';" Place your "Aceess token secret" between the ' ' here. Now save the file and upload it to your forum root. The other two codes (consumer key, consumer secret) are needed in the plugin-script, see below. Go to plugin-manager and create a new plugin: vBulletin newthread_post_complete Tweet to Twitter Now use the following code If you want to exclude some forums, edit this line: $excludedForums = array(1, 2); and place the forum-ids between the brackets. use array() if you don't want to exclude any forums. this line: $shortUrl = 'http://yourURLhere.com/showthread.php?t='.$newpost[threadid]; change "YourURLhere.com" to your forum-URL. In this line: $bitly = new Bitly('username', 'API_key'); you have to put in your bit.ly-username and the generated API-key. And in this line: $twitter = new Twitter('consumer-key','consumer-secret'); you have to put in the consumer-key and the consumer-secret from the twitter o-auth-tool. PHP Code:
|
cuco88 thanks in advance for your post, but i've followed all your steps and ends up with this kind of message:
------WebKitFormBoundary*******************-- why is that? **im using vb4.2 |
Where do you get this message? Does the forum work or do you only get this message?
And does the plugin do anything? Is there a shortened link when you login to your bit.ly-account? Is there a tweet on Twitter? If found a bug in the Twitter.php when using Unicode values with more than 1 byte, I have an easy fix for that, but I don't think this is the problem. Or are you using non english characters? Like ä ö ü é â, ...? |
Right afer I submitted new thread. It just shows these lines and blank white screen.
The thread submitted correctly, but there's nothing new appears on bitly or twitter. I not using non-english character either. I just copy-pasted the cde, that's all. |
Looks like a problem with JSON. This can happen with the bitly.php. Try set
$useBitly = true; to $useBitly = false; |
first time I encountered this error, it was the bitly disabled. then I enabled it, still the same message. Is it the hosting configuration?
|
The problem is you're trying to use a mod that hasn't worked in a long time. Presumably because you neglected to read back a few posts and discover this fact. This is vital, especially when you can see from post #1 that the author hasn't been around for ages.
You can keep playing around trying to get this one to work, or you can just go use one that does: WS vBulletin Tweet Poster |
All times are GMT. The time now is 04:57 AM. |
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:
|