Currently I’ve been looking for a solution for multiple twitter accounts being used. I already tried the lists and was not too happy with that, so I found this plugin. It claims to ‘pull the latest tweet’, however for some reason, it’s showing more than one tweet per user. We currently have 4 people using the system and I’ve tried moving the terms to one, with no success in getting the number of tweets down to one. Is there anything else you can suggest?
]]>Warning: usort() expects parameter 1 to be array, null given in D:\Projects\my\wp-content\plugins\multi-twitter-widget\widget.php on line 358
Warning: Invalid argument supplied for foreach() in D:\Projects\my\wp-content\plugins\multi-twitter-widget\widget.php on line 364
The files in uploads/cache/term_ and uploads/cache/users_ are showing “N;”
Can someone please suggest some fix..!!
]]>For the Multi Twitter widget.
I’m not sure what the option ‘Automatically convert links’ is supposed to do. Turning it off or on did not seems to change anything. I found it more useful to replace the line that conditionally does the link converting as follows:
Replaced:
widget.php:141:
$tweet = preg_replace('#(^|[\n ])(([\w]+?://[\w\#$%&~.\-;:=,?@\[\]+]*)(/[\w\#$%&~/.\-;:=,?@\[\]+]*)?)#is', '\\1\\2', $tweet);
with:
widget.php:141:
$tweet = preg_replace('#(^|[\n ])(([\w]+?://[\w\#$%&~.\-;:=,?@\[\]+]*)(/[\w\#$%&~/.\-;:=,?@\[\]+]*)?)#is', '<a target="_blank" href="${0}">${0}</a>', $tweet);
With this change links become proper links.
Note the _blank target which I also found useful on the reply and hashtag links. For this I added this attribute/value on line 130 and 135 of widget.php too.
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Hi guys!
I’m currently testing out your plugin, after being left hanging by TweetBlender once Twitter retired API 1.0.
I run a multisite WordPress network, and am trying to figure out the best way to support my users with these changes – specifically, the new requirement for them to create an app for their sites.
I see that your plugin has the app details already included (with the caveat that it could stop working at any time). I’m wondering if it would be possible for you to add an admin feature to the plugin so that we could plug in our own app info. My network is small enough that we could probably use one ‘app’ to support all sites that needed Twitter plugins, without bypassing the TOS from Twitter.
Any possibility this could happen?
BTW: the official plugin actually generated many errors for me. The forked version works fine for us. Just thought that bit of feedback might be useful.
Cheers!
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Hi guys, can someone help a newb out? I’ve activate plugin, but not clear at all how I add the accounts I want the widget to display. Can someone school me? Thanks in advance.
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>I recently merged from Tweet Blender to the Multi Twitter plugin since Tweet Blender is no longer supported due to the lack of updates and make it suitable for the Twitter API 1.1.
Question about Multi Twitter: Would it be possible to filter out the @ replies and/or retweets of the multiple users in used in the widget. I really only want to display there own tweets.
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>As you can see on this page a number is being displayed just behind the title of the widget area.
Does anyone know what caused this and how can I solve this?
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Is this plugin refreshes automatically, if yes, how to set the refresh time.
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>I am not sure if this is browser specific only, right now using Chrome. The widget is showing a random number at the top of the tweets (510). Please check https://www.socialvoicebranding.com and help me in fixing this.
Thanks in advance.
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>I think it’ll be worth it–give it a go:
https://github.com/msenateatplos/multi-twitter-widget
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Hi!
Displaying tweets from Users works just fine, but I’ve come across a few bugs in the code making the “Search Terms” option unusable.
$length = count($json);
$length = count($json['statuses']);
$feeds[] = $json[$i];
$feeds[] = $json['statuses'][$i];
$content = array($json[statuses][$i]);
$content = array($json['statuses'][$i]);
fwrite($fp, $content);
$fwrite($fp, serialize($content));
With these fixes, the Search Terms tweets are displayed as they should again.
Sincerely,
Anders, Sweden
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>This plugin does not work. I activate plugin, enter correct information into the widget, and refresh my website. Instead of displaying tweets, I get this: “Fatal error: Exception thrown without a stack frame in Unknown on line 0”
I came across an update under the support section, so I copied and pasted the updated code (found here at github on 03/09/2013) into my widget.php file, refreshed my widget, and re-entered my information. Now there is no error, but it does not show any tweets or icons or information. It just says “powered by Incbrite WordPress Plugins.” But again, it does not display any information whatsoever.
I would love for this plugin to work! Please fix!
Zack
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>I was getting the following php error every once-in-awhile which was not outputting any html after the twitter widget:
PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /path/to/wordpress/wp-content/plugins/multi-twitter-widget/widget.php:235\nStack trace:\n#0 /path/to/wordpress/wp-content/plugins/multi-twitter-widget/widget.php(235): SimpleXMLElement->__construct('')\n#1 /path/to/wordpress/wp-content/plugins/multi-twitter-widget/widget.php(431): multi_twitter(Array)\n#2 [internal function]: widget_multi_twitter(Array)\n#3 /path/to/wordpress/wp-includes/widgets.php(893): call_user_func_array('widget_multi_tw...', Array)\n#4 /path/to/wordpress/wp-content/themes/localconnect_20/footer.php(18): dynamic_sidebar('footer-sidebar')\n#5 /path/to/wordpress/wp-includes/template.php(407): require_once('/home/chicago/p...')\n#6 /h in /path/to/wordpress/wp-content/plugins/multi-twitter-widget/widget.php on line 235
I think I have a fix for this, although I know it’s not 100% because it could result in $feeds[] not being defined.
if ( $content )
{
// Content couldn't be retrieved... Do something..
$output .= '<li style="color: red;">Content could not be retrieved. Twitter API failed...</li>';
} else {
// Createa an XML object from curl'ed content
$xml = new SimpleXMLElement($content);
$feeds[] = $xml;
}
Hope this helps others.
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>I’ve added the users (space separated) and only see their icons and not their tweets. Any help would be greatly appreciated!
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Hi!
I needed to display the twitter stream for several accounts, as well as display an account with the results of a search query. This plugin seemed to do the trick, but there were a couple of bugs, so I tweaked it a bit, the code is below. My patch includes:
$tweet preg_replace
to add proper links for account tweets<ul>
for customized stylingIndex: multi-twitter-widget/widget.php
===================================================================
--- multi-twitter-widget/widget.php (revision 3527)
+++ multi-twitter-widget/widget.php (working copy)
@@ -140,7 +140,7 @@
$tweet = preg_replace('/(^|\s)#(\w+)/', '\1#<a href="https://search.twitter.com/search?q=%23\2">\2</a>', $tweet);
if( $options['links'] )
- $tweet = preg_replace('#(^|[\n ])(([\w]+?://[\w\#$%&~.\-;:=,?@\[\]+]*)(/[\w\#$%&~/.\-;:=,?@\[\]+]*)?)#is', '\\1\\2', $tweet);
+ $tweet = preg_replace('#(^|[\n ])(([\w]+?://[\w\#$%&~.\-;:=,?@\[\]+]*)(/[\w\#$%&~/.\-;:=,?@\[\]+]*)?)#is', '\1<a href="\2">\2</a>', $tweet);
return $tweet;
}
@@ -197,7 +197,7 @@
$widget['term_limit'] = 5;
}
- $output .= '<ul>';
+ $output .= '<ul class="multi-twitter">';
// Parse the accounts and CRUD cache
foreach ( $accounts as $account )
@@ -326,20 +326,27 @@
}
// Sort our $feeds array
- usort($feeds, "feed_sort");
+ //usort($feeds, "feed_sort");
// Split array and output results
- $i = 1;
+ $sn_index = 0;
+ $term_index = 0;
foreach ( $feeds as $feed )
{
- if ( $feed->screen_name != '' AND $i <= $widget['user_limit'] )
+ if ( $feed->screen_name != '' AND $sn_index <= $widget['user_limit'] )
{
$output .=
'<li class="clearfix">'.
'<a href="https://twitter.com/'.$feed->screen_name.'">'.
- '<img class="twitter-avatar" src="'.$feed->profile_image_url.'" width="40" height="40" alt="'.$feed->screen_name.'" />'.
- $feed->screen_name.': </a>'.format_tweet($feed->status->text, $widget).'<br />';
+ '<img class="twitter-avatar" src="'
+ .$feed->profile_image_url
+ .'" width="40" height="40" alt="'
+ .$feed->screen_name.'" />'
+ .$feed->screen_name
+ .':</a> '
+ .format_tweet($feed->status->text, $widget)
+ .'<br />';
if ( $widget['date'] )
{
@@ -348,7 +355,8 @@
$output .= '</li>';
}
- else if ( preg_match('/search.twitter.com/i', $feed->id) AND $i <= $widget['term_limit'] )
+ $sn_index++;
+ if ( preg_match('/search.twitter.com/i', $feed->id) AND $term_index <= $widget['term_limit'] )
{
$count = count($feed->entry);
@@ -363,20 +371,20 @@
'src="'.$feed->entry[$i]->link[1]->attributes()->href.'" '.
'width="40" height="40" '.
'alt="'.$feed->entry[$i]->author->name.'" />'.
- '<strong>'.$feed->entry[$i]->author->name.':</strong>'.
- '</a>'.
+ $feed->entry[$i]->author->name.
+ '</a>: '.
format_tweet($feed->entry[$i]->content, $widget).
'<br />';
if ( $widget['date'] )
{
- $output .= '<em>'.human_time(strtotime($feed->status->created_at)).'</em>';
+ $output .= '<em>'.human_time(strtotime($feed->updated)).'</em>';
}
$output .= '</li>';
- }
+ }
}
- }
- $i++;
+ }
+ $term_index++;
}
$output .= '</ul>';
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Hi,
it’s possible to show more than only 1 tweet from users?
At now I set 2 users but I see only 1 tweet per users, It’s possible to show 3 per users?
Thank you in advance
Best regards
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>I’m setting up a company blog and we have two pages for two different departments. The home page (and all other corresponding pages) have a Twitter feed from that department (e.g. depA). This is a widget on the primary sidebar.
At the moment, depA’s Twitter feed is also on depB’s page; I’d like to have depB’s Twitter feed on their specific page (which is linked to a category), but I can’t find any plugin’s etc. that would allow me to do this.
Any ideas?
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Creation of a setting to simply turn on and off avatars, simple change but would help with layout of tweets…
Cheers, good simple plugin this is just what I have been looking for!
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>It doesn’t work in 3.3.1…
Fatal error: Call to undefined function curl_init() in /home/user/public_html/name/wp-content/plugins/multi-twitter-widget/widget.php on line 158
https://www.ads-software.com/extend/plugins/multi-twitter-widget/
]]>Permission to write cache dir to — not permitted .. is the error message I am getting when trying to make this widget work. Under this error message though, I am seeing the tweets of both accounts I entered into the info box.
]]>I get the following message under the title in the widget: “Permission to write cache dir not granted”.
]]>Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘,’ or ‘;’ in <..>/wp-content/plugins/multi-twitter-widget/widget.php on line 256
]]>