5

Tweet2Download Shortcode Examples

Below you’ll find some example of how to use the Tweet2Download wordpress plugin, which allows you to ask you users to pay with a tweet for content or downloads on your blog. This makes the Tweet2Download plugin a very effective viral marketing tool for Twitter, ideal for musicians, writers, marketeers, designers, programmers or anyone else that has free content on their blog.

Customized download button

The user needs to tweet and follow in order for him to be able to download a file.

Example shortcode:

[tweet2download file="tweet2download.1.2.1.1.zip" tweet="Interesting %%post-url%%" follow="@inspiredcore"]
[tweet2downloadhtml]
<a href="%%tweet2download-href%%" onclick="%%tweet2download-onclick%%">You can change the download button anyway you like, this is a simple anchor</a>
[/tweet2downloadhtml]
[/tweet2download]

Click the link below to test it:

tweet2download error: "tweet" attribute missing. eg. [tweet2download file="my-file.zip" tweet="I've downloaded a file from %%post-url%%" follow="@batman"]

Hidden Youtube Video

The user needs to tweet and follow in order for him to be able to see the youtube video embeded in the article.

Example shortcode:

[tweet2download tweet="Playing with Tweet2Download, http://bit.ly/f5UAGu an awesome #wordpress #plugin for #viral #downloads" follow="@popra"]
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/IVh7H1Gvlk0" frameborder="0" allowfullscreen></iframe>
[/tweet2download]

Click the button below to test it:

tweet2download error: "tweet" attribute missing. eg. [tweet2download file="my-file.zip" tweet="I've downloaded a file from %%post-url%%" follow="@batman"]

Hidden Flash Game

The user needs to tweet and follow in order for him to be able to play a flash game.

Example shortcode:

[tweet2download tweet="Testing Tweet2Download, http://bit.ly/f5UAGu a #viral #marketing #wordpress #plugin" follow="@popra"]
<embed type="application/x-shockwave-flash" width="640" height="400" src="http://www.addictinggames.com/D78AQSAKQLQWI9/7491.swf"></embed>
[/tweet2download]

Click the button below to test it:

tweet2download error: "tweet" attribute missing. eg. [tweet2download file="my-file.zip" tweet="I've downloaded a file from %%post-url%%" follow="@batman"]

Hidden shortcode

Your also able to hide shortcodes from other plugins or from templates

Example shortcode:

[tweet2download tweet="Tweet2Download, http://bit.ly/f5UAGu a cool #wordpress #plugin for musicians, writers, artists and more" follow="@popra"]
[vimeo clip_id="21286170"]
[/tweet2download]

Click the button below to test it:

tweet2download error: "tweet" attribute missing. eg. [tweet2download file="my-file.zip" tweet="I've downloaded a file from %%post-url%%" follow="@batman"]
Filed in: Tweet2Download Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Related Posts

Bookmark and Promote!

5 Responses to "Tweet2Download Shortcode Examples"

  1. DiTesco says:

    A great addition indeed. Added this update on my review. thanks and keep it up.

  2. Very helpful post man, thanks for the info.

  3. Momen says:

    how can i provide the file description or title in the tweet
    i mean how can i generate a fn like this :

    if (isset($shortcode['attachment']->file_path)) {

    $template = str_replace(‘[message]‘, ‘‘ . htmlentities(” . basename($shortcode['attachment']->file_path) . ”, ENT_COMPAT, ‘UTF-8′) . ‘‘, $template);

    } else {

    $template = str_replace(‘[message]‘, htmlentities(‘You are about to view hidden content on this page.’, ENT_COMPAT, ‘UTF-8′), $template);

    }

Leave a Reply

Submit Comment

© 2013 InspiredCore. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.