By ALT83 on
The Twitter module allows users to enter their Twitter account details and then have their Tweets imported into Drupal and appear in a block etc. but it doesn't actually tell visitors to the site, what the ID or URL for that Twitter account is.
I was originally going to have users fill in a separate profile entry telling people what their Twitter username is, but it seems silly to have them do this twice if the data has already been entered into Twitter module.
Any idea how to reveal this data in a block on their profile (which I would then place beneath the user's picture that I also have appear in a block on their profile).
Thanks,
Alex
Comments
I've discovered the Author
I've discovered the Author Pane module which is pretty good, I also found some instructions for "Adding variables from your module to Author Pane" - http://drupal.org/node/326809
Essentially it means I need to use the following, code:
and do this with it:
You can include this function directly in your module code or put it in its own file named MODULENAME.author-pane.inc and drop it in the root of your module directory. Files that follow that naming pattern will be auto discovered by Author Pane. It's mostly a matter of personal preference, though there may be some benefit to putting it in the .inc as it will only be loaded if the site has Author Pane enabled.
Any idea which variables and functions etc. I need to use to display the first Twitter account people have added using the Twitter module?
Thanks,
Alex