Closed (fixed)
Project:
Twitter Pull
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2010 at 15:24 UTC
Updated:
19 Sep 2011 at 14:01 UTC
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
Comment #1
irakli commentedDid 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.
Comment #2
davidgeilfus commentedThank 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
Comment #4
GBain22 commentedWas 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.