New version, might aswell :) fixed some bugs that appear when you enter an invalid username. Let me know what you think or what else you would like it to do :)
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /path/to/forum/extensions/Twitter/default.php on line 52
You can then use json_decode() to drop it into a standard array and drop a little foreach/while magic on it.
Much easier than doing a file_get_contents on the XML feed. Not mentioning that fact that most people won't enable allow_url_fopen since it's a horrendously unsafe "feature".
If I can figure out the Vanilla methodology, I'll make the change and toss a patch/diff to you.
hi i installed twitter v1 and 2, but dont see in the page nothing, in settings twitter post can see it consumer key - consumer secret - user auth key - user auth secret, what is this? the user of foro can see your post from twitter every one? :( how? thanks
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Let me know what you think or what else you would like it to do :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •your now able to choose how many tweets you want to show, 1 - 10, if less than 1, it shows 5(default) if more than 10 it shows 10.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /path/to/forum/extensions/Twitter/default.php on line 52
Warning: file_get_contents(http://search.twitter.com/search.atom?q=from:OACDPodcast&rpp=5) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /path/to/forum/extensions/Twitter/default.php on line 52
Notice: Undefined offset: 0 in /path/to/forum/extensions/Twitter/xml2array.class.php on line 86
Yes it is a valid Twitter account!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Looks like I'll have to revert to other widgets that don't require this setting.
Thanks anyway.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •You should use CURL and the available API to fetch the JSON-based content.
eg;
http://search.twitter.com/search.json?q=from:some_user_name
You can then use json_decode() to drop it into a standard array and drop a little foreach/while magic on it.
Much easier than doing a file_get_contents on the XML feed. Not mentioning that fact that most people won't enable allow_url_fopen since it's a horrendously unsafe "feature".
If I can figure out the Vanilla methodology, I'll make the change and toss a patch/diff to you.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •<?php<br />$tweets = "http://search.twitter.com/search.json?q=from:GeekApp";
$tw = curl_init();
curl_setopt($tw, CURLOPT_URL, $tweets);
curl_setopt($tw, CURLOPT_RETURNTRANSFER, TRUE);
$twi = curl_exec($tw);
var_dump(json_decode($twi));
?>
No, I don't tweet very often.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •iv created a better way of doing it and will release the recode soon! thanks for the suggestions though.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •consumer key - consumer secret - user auth key - user auth secret, what is this?
the user of foro can see your post from twitter every one? :( how? thanks
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •any ideas how I go about turning @usernames or #tags into links automatically?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •