Twitter Plugin new "follow me" Button

Creating and modifying plugins.
Post Reply
User avatar
lfrantzen
Regular
Posts: 55
Joined: Fri May 02, 2008 1:24 pm
Location: Munich, Germany
Contact:

Twitter Plugin new "follow me" Button

Post by lfrantzen » Mon Oct 31, 2011 3:39 pm

Hi,

it would be great if the Twitter plugin could make use of the new Twitter "follow me" button instead of the "follow me" link. The new button can be generated here:
https://twitter.com/about/resources/followbutton

Thanks for the new release 1.6, update worked as a charm, as usual!
Lars

User avatar
lfrantzen
Regular
Posts: 55
Joined: Fri May 02, 2008 1:24 pm
Location: Munich, Germany
Contact:

Re: Twitter Plugin new "follow me" Button

Post by lfrantzen » Tue Nov 15, 2011 5:02 pm

tomola wrote:Thank you. It's that i was searching. :D
This looks like a spam post!?

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Twitter Plugin new "follow me" Button

Post by yellowled » Tue Nov 15, 2011 8:38 pm

lfrantzen wrote:This looks like a spam post!?
Anybody know what "Simsalabim" means in English? :)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
lfrantzen
Regular
Posts: 55
Joined: Fri May 02, 2008 1:24 pm
Location: Munich, Germany
Contact:

Re: Twitter Plugin new "follow me" Button

Post by lfrantzen » Tue Nov 15, 2011 10:13 pm

:D

The same crap as what they do with blog post comments...

User avatar
Mangek
Regular
Posts: 85
Joined: Tue Jun 24, 2008 1:08 am
Location: Sweden
Contact:

Re: Twitter Plugin new "follow me" Button

Post by Mangek » Sat Nov 19, 2011 2:46 am

lfrantzen wrote:Hi,

it would be great if the Twitter plugin could make use of the new Twitter "follow me" button..
I thought so too and had a look in serendipity_plugn_twitter.php. Changed line 298 from:

Code: Select all

echo '<p id="twitter_follow_me"><a href="' . $followme_url . '" class="twitter_follow_me">' . PLUGIN_TWITTER_FOLLOWME_LINK_TEXT . '</a></p>' . "\n";
to include the code provided by Twitter:

Code: Select all

echo '<p id="twitter_follow_me"><a href="https://twitter.com/YOURNAMEHERE" class="twitter-follow-button" data-show-count="false">Follow @YOURNAMEHERE</a>
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script></p>' . "\n";
Seems to work ok but I don't know if this generates any errors somewhere. :-)

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Twitter Plugin new "follow me" Button

Post by blog.brockha.us » Sat Nov 26, 2011 7:32 pm

As I am working on the microblogging plugin at the moment, I will add widget options to the plugins configuration. I hope it will be on Spartakus soon, but I have to betatest it a little more. :)

Later: Woah, I have to admit this widget is really cool. I added it into the beta plugin in my blog. :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

User avatar
lfrantzen
Regular
Posts: 55
Joined: Fri May 02, 2008 1:24 pm
Location: Munich, Germany
Contact:

Re: Twitter Plugin new "follow me" Button

Post by lfrantzen » Sun Nov 27, 2011 11:50 am

Adding the widget option would be great!

For now I use the manual modification from Mangek which seems to work fine!

Thanks and cheers,
Lars

User avatar
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Twitter Plugin new "follow me" Button

Post by blog.brockha.us » Sun Nov 27, 2011 1:11 pm

I released the new version 1.39 of the microblogging plugin to Spartacus some minutes before.
The twitter followme widget is added with simple configurations (no need to copy and paste code i.e.).

I hope it works everywhere w/o problems as it did in my and some other blogs while betatesting. :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/

Post Reply