{"id":4691,"date":"2009-08-26T10:12:43","date_gmt":"2009-08-26T15:12:43","guid":{"rendered":"http:\/\/www.casadeblundell.com\/jonathan\/?p=4691"},"modified":"2010-06-16T11:01:38","modified_gmt":"2010-06-16T16:01:38","slug":"social-media-hacks-for-your-website","status":"publish","type":"post","link":"http:\/\/casadeblundell.com\/jonathan\/social-media-hacks-for-your-website\/","title":{"rendered":"Social media hacks for your website"},"content":{"rendered":"<p>Getting on a little bit of a technology bent lately&#8230;<\/p>\n<p>There are tons of plugins you can get for your website or blog that allow your readers to share your posts on a number of social network sites. But my experience has been that often those plugins can cause havoc on your servers for one reason or another &#8211; or bog your site down in general.<\/p>\n<p>But there are alternatives to using plugins &#8212; and these will work for WordPress site, or anywhere on any site that utilizes PHP.<br \/>\n<!--more--><br \/>\nSo here are a few of the &#8220;hacks&#8221; that I&#8217;ve added to my site (thanks to <a href=\"http:\/\/vandelaydesign.com\/blog\/wordpress\/hacks-user-interactivity\/\">Vandelay Design<\/a> for several of these):<\/p>\n<h3>E-mail this<\/h3>\n<p>This code will give your readers the ability to quickly e-mail a link to your post or page. For WordPress add it to your single.php file, or page.php or any other pages you&#8217;d like folks to be able to share. <\/p>\n<p><code>&lt;a href=&quot;mailto:?subject=&lt;?php the_title();?&gt;&amp;body=&lt;?php the_permalink() ?&gt;&quot; title=&quot;E-mail this<br \/>\narticle to a friend!&quot;&gt;E-mail this&lt;\/a&gt;<\/code><\/p>\n<h3>Share on FriendFeed<\/h3>\n<p>Allows your readers to quickly share the link within their FriendFeed feed. Hopefully spurring on more conversation and click backs.<\/p>\n<p><code>&lt;a href=&quot;#&quot; onclick=&quot;var e=document.createElement(&#039;script&#039;);e.setAttribute(&#039;type&#039;,&#039;text\/javascript&#039;);e.setAttribute(&#039;src&#039;,&#039;http:\/\/friendfeed.com\/share\/bookmarklet\/javascript?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php the_title() ?&gt;&#039;);document.body.appendChild(e); return false;&quot;&gt;Share on FriendFeed&lt;\/a&gt;<\/code><\/p>\n<h3>Share on Twitter<\/h3>\n<p>Opens Twitter in the browser window and shares a link, along with &#8220;Currently reading:&#8221; If you&#8217;d like to change the pre-text on the tweet, you can do so easily within the code.<\/p>\n<p><code>&lt;a rel=&quot;nofollow&quot; href=&quot;http:\/\/twitter.com\/home?status=&lt;?php echo urlencode(&quot;Currently reading: &quot;); ?&gt;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;Share this article with your Twitter followers&quot;&gt;Tweet this!&lt;\/a&gt;<\/code><\/p>\n<p><strong>UPDATE: I&#8217;ve now added an additional &#8220;feature&#8221; to the Tweet this link. The link will also tag my Twitter name <span class=\"twitshort\"><a href=\"http:\/\/www.twitter.com\/jdblundell\" target=\"_blank\">@jdblundell<\/a><\/span> in the Tweet as well. So it looks like this:<\/strong><\/p>\n<p><em>Currently reading: http:\/\/www.casadeblundell.com\/jonathan\/reflections\/the-dream-of-whats-next\/ from @jdblundell<\/em><\/p>\n<p>To add your Twitter name, simply add this code within the a href tag:<\/p>\n<p><code>&lt;?php echo urlencode(&quot; from @jdblundell&quot;); ?&gt;<\/code><\/p>\n<p>So the code ultimately looks like this:<\/p>\n<p><code>&lt;a rel=&quot;nofollow&quot; href=&quot;http:\/\/twitter.com\/home?status=&lt;?php echo urlencode(&quot;Currently reading: &quot;); ?&gt;&lt;?php the_permalink(); ?&gt;&lt;?php echo urlencode(&quot; from @jdblundell&quot;); ?&gt;&quot; title=&quot;Share this article with your Twitter followers&quot;&gt;Tweet this!&lt;\/a&gt;<\/code><\/p>\n<p>(of course be sure and change the Twitter name from mine to yours &#8211; would hate to get credit for all your great posts :-)).<\/p>\n<p><del datetime=\"2010-06-16T16:01:26+00:00\"><em>Now if I can just figure out how to use the built in &#8220;Get Shortlink&#8221; feature on WordPress 2.9 vs the &#8220;Get Permalink&#8221;&#8230;..<\/em><\/del><\/p>\n<p>So there you go, there are three social media hacks I use. You can also set some up with Digg and other sites, but I&#8217;ve never been too fond of Digg myself, so I don&#8217;t use it. <\/p>\n<h2>What about you? What social media hacks do you use on your website?<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Getting on a little bit of a technology bent lately&#8230; There are tons of plugins you can get for your website or blog that allow your readers to share your posts on a number of social network sites. But my experience has been that often those plugins can cause havoc on your servers for one &hellip; <a href=\"http:\/\/casadeblundell.com\/jonathan\/social-media-hacks-for-your-website\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Social media hacks for your website<\/span><\/a><\/p>\n","protected":false},"author":84,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[12],"tags":[1169,1914,943,1965,2413,2018,221,1184],"class_list":["post-4691","post","type-post","status-publish","format-standard","hentry","category-techno","tag-email","tag-friendfeed","tag-hack","tag-php","tag-share-on","tag-social-media","tag-twitter","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pEnSo-1dF","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/posts\/4691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/users\/84"}],"replies":[{"embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/comments?post=4691"}],"version-history":[{"count":0,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/posts\/4691\/revisions"}],"wp:attachment":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/media?parent=4691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/categories?post=4691"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/tags?post=4691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}