After reading through loads of pages i followed the adjustments below and I'm closer than I have ever been. Currently I'm able to post to twitter as long as i set the bit.ly to false in my plugin.
Quote:
Originally Posted by Globus
vB 4.0.2
vBSEO 3.5: Custom URLs
Charset: UTF-8 ( Russian)
User details: correct
CURL: installed.
JSON: enabled.
Safe_Mode: off
bitly.php CURL options:
PHP Code:
// set options $options[CURLOPT_URL] = $url; $options[CURLOPT_PORT] = self::API_PORT; $options[CURLOPT_USERAGENT] = $this->getUserAgent(); $options[CURLOPT_FOLLOWLOCATION] = false; $options[CURLOPT_HEADER] = false; $options[CURLOPT_RETURNTRANSFER] = true; $options[CURLOPT_TIMEOUT] = (int) $this->getTimeOut();
tweeter.php CURL options:
PHP Code:
// set options $options[CURLOPT_URL] = $url; $options[CURLOPT_PORT] = self::TWITTER_API_PORT; $options[CURLOPT_USERAGENT] = $this->getUserAgent(); $options[CURLOPT_FOLLOWLOCATION] = false; $options[CURLOPT_RETURNTRANSFER] = true; $options[CURLOPT_TIMEOUT] = (int) $this->getTimeOut();
Hope it helps somebody.
All the best!
|
When I set it to true I get the following error:
Code:
You must be authenticated to access shorten on line 194 in /usr/local/4admin/apache/vhosts/blackberryspot.com/httpdocs/forum/bitly.php
#0 /usr/local/4admin/apache/vhosts/blackberryspot.com/httpdocs/forum/bitly.php(383): Bitly->doCall('shorten', Array)
#1 /usr/local/4admin/apache/vhosts/blackberryspot.com/httpdocs/forum/newthread.php(262) : eval()'d code(14): Bitly->shorten('http://www.Blac...')
#2 /usr/local/4admin/apache/vhosts/blackberryspot.com/httpdocs/forum/newthread.php(262): eval()
#3 {main}
Warning: Invalid error type specified in [path]/vb/vb.php on line 284
Can anyone shed any light on this problem?