Annnnd here's the patch. Provides a 'Twitter messages' base table for Views 2, and links to user information for sites where users have associated Twitter accounts with themselves. This allows for things like a block that shows twitter posts from the user who wrote the current node. In fact, just such a feature is implemented as a default_view in this patch.
Account-specific twitter fields, like the Twitter user icon and URL, are also implemented as fields on the User base table. Thus, a listing of users could include their Twitter account link in addition to their native Drupal info.
This patch is definitely against the HEAD/6.x version, though I can only choose the 5.x version in the dropdown. Sounds like a bug in project.module ;-)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | twitter_views_cron_docs_admin_ponies.patch | 46.31 KB | eaton |
| #2 | twitter_views_and_cron.patch | 40.72 KB | eaton |
| #1 | twitter-views.patch | 19.07 KB | eaton |
Comments
Comment #1
eaton commentedthat's odd. the patch didn't attach.
Comment #2
eaton commentedHere's an updated version of the patch that fixes a handful of issues with the View.
Also, in order to populate the actual data, this version of the patch adds a hook_cron() implementation that keeps user accounts updated. Also, adds PHPDoc to the functions in twitter.inc.
Also, fixes a handful of bugs, adds new columns to the twitter_account table (number of followers and location), and ponies. Also renames the twitter_fetch_user_*() functions to twitter_fetch_*(), to improve clarity between account information and user information.
No new modules, though, I promise.
Comment #3
eaton commentedAnd while I was in there, I added the ability to delete accounts and toggle their 'import statuses for this account' flag on the user/n/edit/twitter page. No more accidentally adding a Twitter account, never to be able to delete it!
Comment #4
eaton commentedI... hmm. That's funny, attachments don't seem to be working. For the time being, I've put that file online at http://senduit.com/f997fa ... It will stay live for a week, which should certainly be long enough for file uploading to start working again. :-)
Comment #5
pfaocleTesting this out - one error on update 6001:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL' at line 1 query: ALTER TABLE twitter_user ALTER import SET NOT NULL in /var/www/drupal-6.2/update.php on line 77.Comment #6
eaton commentedThis is definitely a bit odd. db_add_column() is being used exactly as the docs describe, and the same schema definition works fine in the install hook rather than the update hook.
I've attached a 'freshly' rolled version of the patch, and will investigate a bit more.
Comment #7
eaton commentedThe patch as it currently stands has been committed to the DRUPAL-6--2 branch, and further testing can take place there. The update_6001 in particular is only used when migrating from the initial devel version of the module committed last week to the version in this patch, and straight installs appear to work fine. I'm suspicious of an issue in SchemaAPI itself, but need to investigate a bit further. Perhaps that update in particular can be moved to a separate issue while this one is marked as closed? The views integration is "done" now...
Comment #8
christefano commentedThis seems to be for the 6.x branch.
Comment #9
add1sun commentedIts in the code now so closing.