Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A project I am working on needs this for D6; are you interested in the code?
Comment | File | Size | Author |
---|---|---|---|
#16 | fix-remaining-issues-1077244-16.patch | 23.25 KB | Devin Carlson |
#9 | twitter_block.zip | 12.22 KB | Laxman13 |
Comments
Comment #1
madhusudan CreditAttribution: madhusudan commentedThis is already there..
check this
http://www.ostraining.com/blog/drupal/showing-a-twitter-feed-in-a-drupal...
and this is working for me. :-)
Comment #2
joachim CreditAttribution: joachim commentedThanks for the link... doesn't seem to be code that's hosted on d.org though.
My point was that a D6 version of this could live in this project's git repository and be downloadable here.
I'll certainly take a look at the code at that link though. (Not sure why it's asking for twitter password though, and how it's storing it...)
Comment #3
ZenDoodles CreditAttribution: ZenDoodles commentedI'd gladly look at a D6 port if you wanted to contribute it.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commented+1 for an "official" D6 version of this module
Comment #5
pabloveintitres CreditAttribution: pabloveintitres commented+2 for a 6.x "official", the lack on the 6.x version linked here is that you can't display hashtags instead an user's tweets.
Comment #6
gunwitch CreditAttribution: gunwitch commented+3 for a 6.x version.
So many sites still use D6 and we need a *simple* Twitter module without all these bells and whistles just for listing our recent tweets.
Comment #7
missmobtown CreditAttribution: missmobtown commentedYes, please! Desperate for a reliable, *simple* Twitter mod for 6.x
Comment #8
redaccion CreditAttribution: redaccion commented+1
Comment #9
Laxman13 CreditAttribution: Laxman13 commentedAs it turns out, I needed a D6 version of this as well. Here is a basic back port to 6.x. Very few changes were made from the 7.x version, just a few fixes here and there.
For some reason I could not get the curl request working on either of the servers I tried it on, and honestly I don't know curl so swapped in a
drupal_http_request()
instead and it works fine. The code changes for this will be found in twitter.class.php underfunction search()
(line 125) and in twitter_block.module (line 183), changedjson_decode($twitter->getJSON());
tojson_decode($twitter->getJSON()->data);
Comment #10
Laxman13 CreditAttribution: Laxman13 commentedchanging status
Comment #11
ZenDoodles CreditAttribution: ZenDoodles commentedBeautiful @Laxman13 I'm going to review and test this.
Thanks so much!
Comment #12
ahoymehearties CreditAttribution: ahoymehearties commentedMuch thanks, Laxman! I'm getting an error though -
Invalid argument supplied for foreach()
on line 270. That is:It sometimes works fine, and it sometimes just fails completely. I'm really at a loss as to what to do in that case! If you're around, I'd love a bit of help.
Comment #13
cweagansLet's finish 7.x first.
Comment #14
ZenDoodles CreditAttribution: ZenDoodles commentedI've begun the backport (see git instructionsfor the code. It is still broken, but I ran out of time. I'm sorry, but I do not expect this to be a high priority, but now that it's in git, folks can work on patches.
Drupal 8 is scheduled for feature freeze soon. Y'all should really upgrade anyhow. :)
Comment #15
ZenDoodles CreditAttribution: ZenDoodles commentedComment #16
Devin Carlson CreditAttribution: Devin Carlson commentedA patch to fix the remaining problems with the 6.x branch and bring it up to speed with the 7.x branch.
I'll try to do some extensive testing tonight and fix up and remaining problems but help is always appreciated!
Comment #17
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted #16 to 6.x-1.x.
I'm marking this as fixed and will open new issues for specific problems with the 6.x-1.x branch.
Comment #20
mttjn CreditAttribution: mttjn commentedSorry to be stupid, but where is the 6.x-1.x. version as per #17 please? I can't see it on the "View all releases" page at https://drupal.org/node/1037610/release.
Since I couldn't find it I tried to recreate the process using patch in #16 on the module in #9 and it keeps failing:
Would appreciate any help. Thanks.
Comment #22
cweagansmttjn, there's no snapshot release or anything, so you'll have to pull it from git. See directions on this page: https://drupal.org/node/1037610/git-instructions/6.x-1.x
Comment #23
mttjn CreditAttribution: mttjn commentedThanks, cweagans