Twitter Plugin new "follow me" Button

Creating and modifying plugins.
Post Reply
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 »

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
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 »

tomola wrote:Thank you. It's that i was searching. :D
This looks like a spam post!?
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 »

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

YL
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 »

:D

The same crap as what they do with blog post comments...
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 »

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. :-)
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 »

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/
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 »

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
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 »

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