KewlAzMe Posted November 5, 2010 Share Posted November 5, 2010 Hello together I just found this thread (http://hak5.org/forums/lofiversion/index.php/t14597.html) on your forums for the twitter search. I tired this skript but sadly it doesn't work. I guess its because David Billingham updated the API functions. Can someone help me with my problem? The function should be that I enter my "searchword" and above the results will show. For help Iam deeply grateful... greetings Kewl Quote Link to comment Share on other sites More sharing options...
Alias Posted November 6, 2010 Share Posted November 6, 2010 Use the PHP class here and some other PHP code... <?php ini_set('display_errors', 1); error_reporting(E_ALL); require 'search.class.php'; if(isset($_GET['string'])) { $string = $_GET['string']; } else { $string = 'Hak5'; } $search = new TwitterSearch($string); $array = $search->results(); echo '<pre>'; print_r($array); echo '</pre>'; ?> For your testing purposes. Just make sure that you don't include the debugging lines at the top when actually releasing. Also I've actaully set this up on my server so that you can have a fiddle with. Just go to http://stewartmalik.net/twitter/search.php by default it just searches Twitter for references to Hak5 however if you change a GET value say for example http://stewartmalik.net/twitter/search.php?string=Twitter then it will output the Twitter search for Twitter instead. As an output it just show the Array. Quote Link to comment Share on other sites More sharing options...
KewlAzMe Posted November 7, 2010 Author Share Posted November 7, 2010 Hey Alias You are my hero. Everything works fine. Thank you very much. How difficult is it now, to make a easy layout for better viewing. What do I have to do? kewl Quote Link to comment Share on other sites More sharing options...
Alias Posted November 8, 2010 Share Posted November 8, 2010 As in the webpage itself? If that's the case then you'll need som CSS and Javascript, I suggest you use jQuery for your Javascript, it makes things a whole lot easier. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.