Examining Google+ as it Grows

New “Wave This!” Function and Buttons

Posted by Screenbeard on Apr 14, 2010 in Post | 8 comments

I was visiting Pamela Fox’s personal website, and noticed she had a Wave This! button attached to her latest post. Interested in what it did, I clicked it and it opened a summary of that post in Wave ready to share with others! I can’t find mention of the feature anywhere, and I’m not sure if it’s permanent, but a specially formatted URL takes a title argument, a content argument and passes it to a special new wavethis function as shown:

https://wave.google.com/wave/wavethis?t=[insert title]&c=[insert content]

Using a bit of PHP in WordPress and a plugin called Samsarin PHP Widget (that allows php in a special widget) I created the Wave This! button over at the side. Feel free to use it!

The PHP I used was as follows:

<?php if ( is_single($post)) {
$excerpt = urlencode(get_the_excerpt());
$posttitle = urlencode(get_the_title());
?>
<a href="https://wave.google.com/wave/wavethis?t=<?php echo $posttitle ?>&c=%22<?php echo $excerpt; ?>%22"><img src="http://turbo.firstwaves.org/wavethis-button-dark.png" alt="Wave This!" /></a>
<?php } ?>

Simply install and activate the plug-in. Add the Samsarin widget to your sidebar and past the code in as you see it. It will only appear on post pages (not the front page).

I created a couple of button images you can feel free to use:

So that’s the new Wave This! button. Go ahead and give it a try. If you’re a developer I’d be interested in seeing other ways to implement this.

  • Anonymous

    What an amazing work!! You rules, Josh!!!! ;D
    I’ve going to do some works now, but later I will probe your code and maybe I’ll create an article for WAVEsfera.

    Thank you very very very much, Joshua!

  • Alviz

    What an amazing work!! You rules, Josh!!!! ;D
    I’ve going to do some works now, but later I will probe your code and maybe I’ll create an article for WAVEsfera.

    Thank you very very very much, Joshua!

  • http://www.russelltrippllc.com russelltripp

    So, why is there no “Wave This” button on FirstWaves? — or am I missing it somehow?

  • http://nunnone.com/ Screenbeard

    The few people who were using it were asked by Pam to stop using it
    until the official release. Once we have the go ahead, I’ll be
    reinstating the Wave This button, as well as the “Wave @ Me!” button I
    have ready to go.

  • http://www.russelltrippllc.com russelltripp

    ah – cool that there will be an official release. I’ve been thinking about writing a “Wave Me” button myself. I just added this line to the bottom of my email signature –

    Or if you want to communicate on a platform that’s better than email, Wave me (russell.tripp.infusion@gmail.com) at http://wave.google.com
    [Send requests for invitations to Wave via email if you need them.]“

  • http://getyourinfusion.com/ russelltripp

    So, why is there no “Wave This” button on FirstWaves? — or am I missing it somehow?

  • http://nunnone.com/ joshnunn

    The few people who were using it were asked by Pam to stop using it
    until the official release. Once we have the go ahead, I’ll be
    reinstating the Wave This button, as well as the “Wave @ Me!” button I
    have ready to go.

  • http://getyourinfusion.com/ russelltripp

    ah – cool that there will be an official release. I’ve been thinking about writing a “Wave Me” button myself. I just added this line to the bottom of my email signature –

    Or if you want to communicate on a platform that’s better than email, Wave me (russell.tripp.infusion@gmail.com) at http://wave.google.com
    [Send requests for invitations to Wave via email if you need them.]“