The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Plugins Twitter Plugin new "follow me" Button

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

Postby lfrantzen » Mon Oct 31, 2011 4: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

Postby lfrantzen » Tue Nov 15, 2011 6:02 pm

tomola wrote:Thank you. It's that i was searching. :D


This looks like a spam post!?

User avatar
yellowled
Regular
 
Posts: 5630
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Tue Nov 15, 2011 9:38 pm

lfrantzen wrote:This looks like a spam post!?

Anybody know what "Simsalabim" means in English? :)

YL

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

Postby lfrantzen » Tue Nov 15, 2011 11: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

Postby Mangek » Sat Nov 19, 2011 3: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

Postby blog.brockha.us » Sat Nov 26, 2011 8: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

Postby lfrantzen » Sun Nov 27, 2011 12:50 pm

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

Postby blog.brockha.us » Sun Nov 27, 2011 2: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/



Return to Plugins

Who is online

Users browsing this forum: No registered users and 1 guest