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';
}
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.
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?
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}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.