Hello there,

I use this great little module on a site I'm working on. It works well until I try to pass the last parameter (theme key). I created a copy of twitter-pull-listing.tpl.php in my theme directory but when I pass 'tweets' (the name of my theme file is tweets.tpl.php) to the twitter_pull_render method, it suddenly returns “No tweets”, or prints nothing at all!

Does someone knows how to fix that? In the meantime, I've modified the default theme (twitter-pull-listing.tpl.php) in the default location (/sites/my_site/modules/twitter_pull/) but there must be a better way to do that!
Thanks in advance!
Best regards,

David

Comments

irakli’s picture

Status: Active » Fixed

Did you clear theme cache (e.g. with drush or using devel module) after the change? You have to.

Definitely don't modify the tpl.php in the module folder. One thing to try is to copy the tpl.php to theme folder and modify it there (you don't have to pass extra argument, to the function, if you just do that). But do make sure to clear cache because Drupal caches everything related to theming.

davidgeilfus’s picture

Thank you irakli!

Making a copy of the tpl.php in my theme folder and clearing the cache worked! But when I try to change the name of the tpl.php and pass it to the twitter_pull_render method, it doesn't work anymore… This isn't a huge issue though!

Thanks again! Have a nice day!

David

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

GBain22’s picture

Was this fixed?

I currently have twitter-pull-listing.tpl.php and twitter-pull-listing2.tpl.php in my theme folder.

twitter-pull-listing.tpl.php works fine, but when I try to use twitter-pull-listing2.tpl.php - I get "Errors occured while trying to retrieve tweets. Please check Watchdog log messages. " My code looks like:

Block 1:

if (function_exists('twitter_pull_render')) { print twitter_pull_render('@mdadigital', '', 10, 'twitter_pull_listing'); }

Block 2:

if (function_exists('twitter_pull_render')) { print twitter_pull_render('@mdadigital', '', 10, 'twitter_pull_listing2'); }

After clearing cache and theme cache - nothing happens.