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

Plugin: Tweet This

Development and Programming

Marc Tiedemann's avatar
Marc Tiedemann
119 posts
15 years ago
Marc Tiedemann's avatar Marc Tiedemann

Thanks! OK, good to know 😉

And I just checked back: no, nothing in the readme.txt about this but I could (or should) have figured this by myself I guess.

Anyways, thanks for the work!

       
Linda A's avatar
Linda A
647 posts
15 years ago
Linda A's avatar Linda A

Hmm, I wonder if that would be why I am getting a blank page when I try to use the plugin. No error message, though. Just a blank page.

       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

You may have error reporting set to not display. You might could try adding this to the plugin file:

error_reporting(E_ALL);
ini_set("display_errors", 1);

Then run it.

Or maybe create a blank php file with something like this:

<?php
if ( ! cul_init())
{
echo 'CURL NOT INSTALLED';
}
       
Linda A's avatar
Linda A
647 posts
15 years ago
Linda A's avatar Linda A

Yep, it was the bit.ly issue for me too. Working like a charm now. 😊

       
chrisrhee's avatar
chrisrhee
6 posts
15 years ago
chrisrhee's avatar chrisrhee

Thanks for the plugin!

Just installed it on http://QN5.com for our blog posts, songs, videos, etc. I’ll try to adding the functionality to our forum threads later.

Maybe it’s just me, but I had to tweak the _convert_chars() function to return a urlencode() version of the text. All our ampersands and hashes were mucking with the link.

Also, changing the API url from “bit.ly” to “j.mp” (which is owned by bit.ly) worked. Gotta save them characters.

       
zupi's avatar
zupi
283 posts
15 years ago
zupi's avatar zupi

hello eric, where can I donwload the twitter plugin and where can I see how can I setup? is it possible to be exacly the twittmemo button? the small version??

thanks, allan

       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

Hi Allan,

I just replied through pm. 😊

You can download it from this page: http://github.com/mdesign/shortn-tweet.ee_addon

Just click the download image.

That page also includes instructions on how to use it.

       
zupi's avatar
zupi
283 posts
15 years ago
zupi's avatar zupi

I’ve done it but I didn’t understand what to do to work this out can u explain me please regards, allan

       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

It will probably be easier to help if you can post the code you are using.

       
Coastal Pet Rescue's avatar
Coastal Pet Rescue
53 posts
15 years ago
Coastal Pet Rescue's avatar Coastal Pet Rescue

I was unable to get the url to parse at all, either with bit.ly or is.gd

{exp:shortn_tweet title="{pet-name}" url="{url_title_path=adopt/view}" short_url="bit.ly"}
<a href="http://{twt:twitter_url}{twt:title}" target="_blank" rel="noopener">Tweet {pet-name} to Twitter</a>
{/exp:shortn_tweet}

Everything shows but the url when you end up at twitter.com. Any ideas?

       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

I just forked this to work with EE 2.0 PB http://github.com/ericbarnes/shortn-tweet.ee_addon

       
vacquah's avatar
vacquah
355 posts
15 years ago
vacquah's avatar vacquah

great plugin. What if you wanted to add a topic tag, like #twittertopic . So the final output will be something like:

Reading: Post Title - Shortened title #twittertopic

here is my current code:

{exp:shortn_tweet title="{title}" url="{title_permalink=blog/article}" short_url="bit.ly"}
<a href="http://{twt:twitter_url}Reading:">Tweet This</a>                            {/exp:shortn_tweet}
       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

I think you could use:

{exp:shortn_tweet title="{title}" url="{title_permalink=blog/article}" short_url="bit.ly"}
<a href="http://{twt:twitter_url}Reading:">Tweet This</a>                            {/exp:shortn_tweet}

Although I didn’t test that. Just going from memory. 😊

       
vacquah's avatar
vacquah
355 posts
15 years ago
vacquah's avatar vacquah

Eric:

not working. everything works fine except that string - it doesn’t show up.

       
George K's avatar
George K
75 posts
15 years ago
George K's avatar George K

Hi,

For some reason I cant make it work.

I keep getting this error:

Invalid Unicode value in one or more parameters

Any ideas?

       
1 2 3 4 5 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.