rubenvarela / drupal-tweet_if_streaming

0 stars 0 forks source link

Validate #1

Open rubenvarela opened 11 years ago

rubenvarela commented 11 years ago

@jonathanagosto, Could you check this module?

Created it as a possible solution for Fortaleza's Twitter Issue.

In order to use it, simply add

<?php tweet_if_streaming_print(); ?>

Where you'd like to print the tweet. To test even if they aren't streaming, uncomment line 69 of tweet_if_streaming.module.

jonathanagosto commented 11 years ago

@rubenvarela I'll be checking it during the day. I'll let you know later today.

rubenvarela commented 11 years ago

Thanks

rubenvarela commented 11 years ago

@jonathanagosto I updated the code.

Now besides being able to use a function, you should be able to go to Admin > Structure > Blocks and find a block there titled Tweet the last tweet matching when using ustream.

And if you check the function

 <?php tweet_if_streaming_print(); ?>

Now you should use:

 <?php print tweet_if_streaming_print(); ?>

Let me know

jonathanagosto commented 11 years ago

I encountered a problem after the installation using Drupal 7.23

Exception: You need to install cURL, see: http://curl.haxx.se/docs/install.html in TwitterAPIExchange->__construct() (line 37 of C:\wamp\www\bootstrap\sites\all\modules\tweet_if_streaming\twitter-api-php-master\TwitterAPIExchange.php).

I checked my developing environment and cURL is activated in my PHP configuration. Im going to be checking a little deeper into my issue and let you know.

rubenvarela commented 11 years ago

The validation that's failing is:

        if (!in_array('curl', get_loaded_extensions())) 

Line 35, https://github.com/J7mbo/twitter-api-php/blob/master/TwitterAPIExchange.php#L35

Could you run

<?php 
    print '<pre>';
    print_r( get_loaded_extensions() );
    print '</pre>';
?> 

And post the output here?

jonathanagosto commented 11 years ago

The problem certainly seems to be the environment (Windows 7 64bit / WampServer). cURL is not being started. I'll give it a shot using a LAMP on Ubuntu Server 12.10.

rubenvarela commented 11 years ago

Thanks for letting me know about your environment.

Let me know when you check Ubuntu Linux.

From what I can gather, the Fortaleza website is running CentOS. Hopefully they won't have problems. I'll make a note anyway in the Readme about this dependency. Thank you!