Add Twitter to Pligg

Posted In Tutorials - By Geoserv On Saturday, January 31st, 2009 With 18 Comments

With the growing popularity of Twitter, it’s time to Twitterize your Pligg install.

There are a number of things you can do to integrate Twitter with Pligg, we are going to look at one of them now, and I will post further ideas later.

One of the best places to integrate Twitter would be the submitted story summary.

For example:

original

That’s how your summary looks now.

So, lets Twitterize it so it looks like this:

Add Twitter to Pligg

Here’s how to do it,

open link_summary.tpl:

Find,

                                        <span id="stories-{$link_shakebox_index}" style="display:none;"> » {#PLIGG_MiscWords_Save_Links_Success#} <a href="{$user_url_saved}">{#PLIGG_MiscWords_Save_Links_Go_To_Saved#}</a></span>  
                        {/if}

below it add,

<span id="twitter" style="background: url(‘/templates/yget/images/twitter.png’) -8px -10px no-repeat;padding: 2px 20px 0px 20px;">
<a href="http://twitter.com/home/?status=Reading+{$url}+thanks+{#PLIGG_Visual_Name#}+@+{$my_base_url}{$my_pligg_base}" target="_blank">Tweet This</a>
</span>

save.

Download and upload the following image to templates/yget/images directory.

twitter

That’s it.

There is a downside, the user submitting the Tweet may need to edit the status if the story being submitted has an extremely long URL.  Most times this will not be an issue.

This addition will allow users to Tweet the submitted stories URL and it also credits your Pligg install at the same time.

Have fun.

By the Way, follow me on Twitter and I will follow you back.

Related Search:

About - Geoserv has been working with the Pligg CMS for 2+ years.

  • Pingback: Add Twitter to Pligg

  • http://www.growthbubble.com Gerardo

    i needed this thanks

  • http://www.dzinestand.com/ Web Design

    Nice and Informative Post. Thanks For sharing Info about the Add twitter to Pliggs.

  • http://macfanboys.com Denny

    Nice and simple! I’ll be using this little tweak. Thanks!

  • http://funmit.com Rohit

    Very much thankful to you Geoserv.
    This is what I wanted.

  • Pingback: INFOmz

  • Pingback: Adding a Twitter stream to Pligg

  • raghhav

    thanks so much

  • raghhav

    thanks so much

  • Franky

    Nice post, thank you. How can i use the shortened url of the story link for e.g. with the bit.ly api or tinyurl api within this code?

  • newsmarking

    Kool, we added it on our site and it work great.

  • Pingback: Blog kybal.in

  • http://www.freenice.org rif

    can we Updates Twitter when we create a new post ?

  • http://www.changsunha.com/ Encyclopedia

    i want a tiny url.

  • http://www.watches-user.com Guess men's watches

    oh,my god ! I found this article a long time. Thant's good article. I like reading this article < href=”http://www.watches-user.com”>guess men's watches</> ! I will always come here reading. thanks a lot.

  • http://www.watches-user.com Guess men's watches

    oh,my god ! I found this article a long time. Thant's good article. I like reading this article < href=”http://www.watches-user.com“>guess men's watches ! I will always come here reading. thanks a lot.

  • http://www.cityofsultans.com/ istanbul tours

    This is what I wanted. ;)

  • http://www.gogusbuyutucum.net/ göğüs büyütücü

    Nice post, thank you. ;)