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

**Updated** LG Twitter 2.0 - Update your twitter status from EE

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Hey Nelson,

I was actally thinking about this issue the other day. I think the best way to handle it is to rewrite the extension completely as a tab and not as a weblog field at all.

In the mean time I think I could tweak the extension to delete the value before it goes into the db.

Cheers Leevi

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Ok I rewrote LG Twitter last night and changed its implementation.

Now LG Twitter appears as a fixed bar on the bottom of your screen while your in the admin.

Only certain member groups can tweet (currently restricted to one account) and its MSM compatible.

I have attached a screenshot of what I have so far. Any feature requests?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Ok So I spent a bit more time on LG Twitter 2.0 and now its time to get some people to test it for me.

Today I added a tab to the publish page so you can auto Tweet when you create a new entry or edit a new one. Tabs can be on one or many weblogs and restricted to member groups.

Screenshot below.

Whos in? PM me for a copy.

Cheers

       
Ryan M.'s avatar
Ryan M.
1,511 posts
about 17 years ago
Ryan M.'s avatar Ryan M.

Leevi, this looks really, really, interesting now. Especially the fact that you can set a default tweet using variables on a weblog by weblog basis. Pretty cool. Wondering how the variable substitution works against the character count, though. Are you not allowed to submit if, after variable replacement, the character count goes above 140? Or does the Tweet get truncated?

Nice work on the quick tweet bar at the bottom, which looks nice - and with the option to disable that - well thought out there.

Wondering if in any of these extensions that use jQuery, there shouldn’t be a further option to use the Google AJAX Libraries API? I’m increasingly interested in the thought of that. I suppose the user could just enter the full script path to the google version in the supplied field? (I just did that with this extension, putting “http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js” in the field for the jQuery script).

A further thought: similar to your new “Addon Updater” extension, maybe there is an extension solely for calling jQuery, and other extensions could be modified to look for that extension. That single “I look for presence of jQuery only” extension could have the option to use Google or a script local to the site.

Thanks for all your hard work.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Hey Ryan,

Wondering how the variable substitution works against the character count, though. Are you not allowed to submit if, after variable replacement, the character count goes above 140? Or does the Tweet get truncated?

Yeha I haven’t really figured that part out yet. If the variable substitution makes the tweet over 140 characters I’m guessing twitter will jst truncate it. Maybe I need to add an option to say “don’t send if over 140 characters”. If your tweet is over 140 chars LG Twitter won’t send the tweet but display it again for you in an error with the variables replaced. That way you could use the tweet bar to make any adjustments.

Thanoughts?

       
PXLated's avatar
PXLated
1,800 posts
about 17 years ago
PXLated's avatar PXLated

I’m pretty sure Twitter will truncate and add a more link but if a person is using (receiving) via SMS it’s lost. SMS is the whole reason for the 140chr limit.

I’ve switched over to identi.ca (open source Twitter platform) and there’s been a bunch of discussions around this.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

I just implemented a check to see if the Tweet was over 140 chars. If it is the full length tweet with the variables replaced is show back to the user with an error. This will give them the opportunity to change the tweet before it’s posted.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

For all those interested LG Twitter 2.0 is now available from my site.

New features include:

  • Quick Tweet Bar
  • MSM Compatibility
  • Twitter Publish / Edit tab
  • LG Addon Updater integration

Check it out.

LG Twitter 2.0 - Send Tweets from your ExpressionEngine control panel

       
PXLated's avatar
PXLated
1,800 posts
16 years ago
PXLated's avatar PXLated

Nice set of changes for 2.0 Levi.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Version 2.0.1 is out with a bunch of PHP4 fixes for broken control panels and EE installs in sub folders.

Thanks to Victor for the testing!

       
Macrike's avatar
Macrike
137 posts
16 years ago
Macrike's avatar Macrike

Got a bug, I think.

I went to edit my forum preferences –change the trigger word– and when I wanted to save the settings, a MySQL error jumped saying that site_id doesn’t exist in field dunnowhat – can’t really remember now.

I disabled the Twitter extension and I could save the settings. I think it’s something to do with the twitter bar at the bottom.

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

Hey Leevi - Great extension!

One request, can you make the variable {entry_id} available? When I go to send a tweet and include the entry’s title as well as the {url_title} in the url, its more often then not over 140 characters since both are long.

Thanks!

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

Lastly, I noticed that the from name on twitter is Expression Engine with a link to the extension. Is there a way to change this or is that the “plug” for the freebe? Thanks!

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

More help please.

I’m getting a funky URL on twitter now: http://twitter.com/you129

http://tinyurl.com/5mxebp

And here is what is submitted in that entries twitter tab:

New Article: {title} - http://you129/com/relationships/story/{url_title}

Not sure why it’s not coming across correctly.

       
Kit-Kat's avatar
Kit-Kat
1 posts
16 years ago
Kit-Kat's avatar Kit-Kat

http://twitter.com/you129 points to http://www.you129.com/com/relationships/story/an_emotional_affair

You just change fix your tweet to:

New Article: {title} - http://you129.com/relationships/story/{url_title}/
       
1 2 3 4 Last

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.