Add Twitter to Pligg

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.

Here’s a story Tweeted:

tweeted

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.

If you enjoyed this post, make sure you subscribe to my RSS feed!

  • newsmarking
    Kool, we added it on our site and it work great.
  • 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?
  • raghhav
    thanks so much
  • raghhav
    thanks so much
  • Very much thankful to you Geoserv.
    This is what I wanted.
  • Nice and simple! I'll be using this little tweak. Thanks!
  • Nice and Informative Post. Thanks For sharing Info about the Add twitter to Pliggs.
  • i needed this thanks
blog comments powered by Disqus