We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Couple questions about Twitter Timeline Plugin

Development and Programming

Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore

Just started using Twitter Timeline and have a few questions:

  1. There’s an hour discrepancy between Twitter’s time of last update and the time showing on Twitter Timeline plugin. My last update according to twitter is 3:34 and on my Twitter Timeline is 4:34. I assuming it’s something to do with Daylight Saving’s time, but not sure how to fix?

  2. Wondering if there is a way to post where the last tweet was sent from? E.g., Twitter, TwitterFox, etc.

  3. Any way to link to the twitter user when you send an @reply instead of the @name being plain text?

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

Let’s see: 1. I can’t replicate- but make sure your localization is correct in both your twitter settings and in EE (for EE check in your profile- and be sure DST is also correct). If that doesn’t do it- try showing the {status_relative_date} variable- is it correct?

  1. I’m not spotting it in the API here, so I don’t believe it’s available to grab.

  2. I’m fuzzy on what you’re asking. (I’m not all that expert with twitter.) Can you walk me through it a bit?

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
16 years ago
Pascal Kriete's avatar Pascal Kriete

To add to what Robin said,

  1. The return values aren’t documented very well, but if you take a look at a sample timeline, you can see that it returns a <source> value that contains a entity encoded link for the application used to send the tweet. Not sure if the plugin parses this, but it should be pretty easy to add.

  2. Once again, not natively, but it wouldn’t be too difficult to add (find whitespace+@+alphanumeric and link to twitter.com/username). You could probably base it off what I did here.

[Edit: Decided to implement 3 myself, see the thread linked above.]

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
16 years ago
Pascal Kriete's avatar Pascal Kriete

Ok, just double checked, the plugin already parses the source variable:

From: {source}
       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore
Let’s see: 1. I can’t replicate- but make sure your localization is correct in both your twitter settings and in EE (for EE check in your profile- and be sure DST is also correct).

That seems to have done the trick Robin. Looks like I changed the DST setting in Admin >> System Preferences >> Localization Settings to “no” but my individual user account localization setting was still set to “yes” which I guess was throwing it off that hour.

So, if I’m in a DST zone, I have to manually set the DST settings in EE to be consistent if we’re currently observing DST or not? As I originally understood the setting, if I’m in a time zone that observes DST, I would simply select “yes” in the localization settings but I believe now that my original understanding was wrong? We’re not currently observing DST, and since my account was set to “yes” it was throwing things off an hour. So, I need to manually set it each year when DST takes effect?

[Edit: Decided to implement 3 myself, see the thread linked above.]

Thank you very much! I definitely wouldn’t have had the know how to implement that change myself. Tested it out, works great.

Ok, just double checked, the plugin already parses the source variable:
From: {source}

Thanks again! The {source} variable wasn’t listed as an option in the twitter timeline docs, so the thought never entered my mind to check out a sample timeline and then just give it a try to see if it’s available. Works like a charm as well. Thanks

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

Heh- yep, I went from twitter docs as well and didn’t see it there, so assumed a ‘no go’.

As to DST- I think you’ve got it. Each individual member will set their own localization setting- including DST (as that may vary depending on where they are). Non-logged in folks will be based on whatever you have as the default (I tend to make my admin account the default).

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore

Ah, I gotcha. I had it backwards. I assumed whatever I had set in the Admin > System preferences > localization settings area WAS the default for all users and then from there, I could adjust it on an individual user level if needed. I’ve set my account to be the default localization DST setting now.

With that said, is the Admin > System Preferences > Localization Settings DST setting really necessary? Seems if you’re setting it on a user by user basis anyway, the setting in this area really doesn’t do much?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.