Posts Tagged ‘twitter’

How to Add a Facebook, Twitter and Google +1 Button to Your WordPress Blog

Monday, July 18th, 2011

Here’s a quickie small tip for wordpress blog users.

If you want to add your own facebook, twitter and Google +1 buttons to your blog post, simply add the following code to your functions.php of your current theme:

<?php
add_filter ('the_content', 'insertMeShare');
function insertMeShare($content)
{
if(is_single())
{
global $post;
$link = urlencode($post->guid);
$content.= '<a href="http://twitter.com/share" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';
$content.= '<iframe src="http://www.facebook.com/plugins/like.php?app_id=181276555267890&amp;href='.$link.'&amp;send=false&amp;layout=button_count&amp;width=110&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:21px; float: relative; " allowTransparency="true"></iframe>';
$content.= '<g:plusone></g:plusone><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';
}
return $content;
}
?>

This code above can be modified further as a wordpress plugin so as to not modify your current theme (especially if your theme is one of those ready made themes which has an update feature). I have made mine to be a wordpress plugin and I am using this now as my current social share buttons – see the end of my post as an example of these in action. Have fun!

Google, Facebook, Twitter and Privacy

Friday, December 11th, 2009

A few days ago, I received a wall post from the Facebook blog, that they have teamed up with Google Real Time Search. I did a little research on what that truly meant and found this post here on the official Google blog.

In a nutshell, this is what is happening. Google is getting posts and status updates from many networking sites and allowing them to be shown in the search results. How are they gonna do that? I got my answer within a few days.

Facebook had a change in their privacy settings. The time that you log into facebook, you will be notified of the privacy settings page and would suggest you that you change your settings to their recommended one – one that is seen by practically everyone.

Now, I am no privacy freak. Far from that. What I am concerned about is that by allowing your profile to be shown to all, a person will risk being used or taken advantage of by unscrupulous individuals in the net.

I’ve had my cellphone number been sent text messages by people I do not know about some nice deal which was clearly a scam. I’ve had a rise in spam messages when I placed my email in a post or comment in a blog.

Having said that, I strongly agree with Bruce Schneier, a well known computer security specialist, that:

For if we are observed in all matters, we are constantly under threat of correction, judgment, criticism, even plagiarism of our own uniqueness. We become children, fettered under watchful eyes, constantly fearful that — either now or in the uncertain future — patterns we leave behind will be brought back to implicate us, by whatever authority has now become focused upon our once-private and innocent acts. We lose our individuality, because everything we do is observable and recordable.

in his blog as a rebuttal to Eric Schmitt, CEO of Google, who said a dangerous statement to Maria Bartiromo during CNBC’s big Google special, that “If you have something that you don’t want anyone to know, maybe you shouldn’t be doing it in the first place.”

Think about it. You don’t hide things from people you don’t know because you did something bad. It is more likely that you hide things from people you are not likely to trust because they would like to do bad things to you.