2 fplanque Jul 30, 2013 22:59

Hello. It is the latest version although I am not able to supply the version as it's not labeled. A b2veo developer has modified my version although I don't believe that anything that has been modified would affect the Twitter plugin which was working.
My site is: http://www.iYoodle.com
I know the twitter plugin has been fixed in 5.0.4, but if your b2evoution has been modified enough to hide the version number, you should definitely go talk to your developer.
Twitter returns an array of users, so we should just get the first one.
function get_twitter_contact( $oauth_token, $oauth_token_secret )
{
$connection = new TwitterOAuth(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, $oauth_token, $oauth_token_secret );
// get linked user account
$account = $connection->get('account/verify_credentials');
if( empty( $account->errors ) )
{
if( is_array($account) )
{
$account = $account[0];
}
return $account->screen_name;
}
return '';
}
I replaced the code and it worked flawlessly. Thank you much.
@kittenplay
Just wondering if you received my email? There was a problem on my mail server
Yes, I did. Let me know if you don't receive my reply.
What version of b2evo are you using?