Cool new WordPress plugin that acts as an useful downloader for WordPress sites via viral Facebook sharing tool.
Does this plugin work with newest WP version and also older versions?
Yes, this plugin works really fine with WordPress 4.2.2!
It is also compatible for older WordPress versions upto 3.0.1.
Is it possible for the users by any means to download the file without sharing on Social Media?
No, the download is only possible when the viewer shares the download link on given social media sites.
Can I share any pdf or zip file?
Yes, the plugin allows you to share any format of file you want
Is the plugin compatible with my theme?
Yes, the plugin is completely compatible with all the WordPress themes!
Can I add title and description to the link that will be posted on Social Media?
Yes, you can add title and a brief description to the link to be posted on Social Media of the user.
Can I use images instead of text in the download link?
You can either enter the img
tag directly inside the link text or keep the text blank and insert the link then you will find a shortcode added to the visual editor like [viraldownloader id=123 text='']
. Place your custor between the quotes of text=''
and then click on the Add media button and select an image. Make sure Link to is selected none before you insert into post.
You can do it programmatically too just add the following line to your theme’s functions.php
file
add_filter( 'fb_viral_downloader_html', 'custom_fb_viral_downloader_html', 10, 3 );
function custom_fb_viral_downloader_html( $text, $id, $share_count ) {
if( $id == 123 ) { //suppose your downloadable id is 123
$text = '<img src="http://yoursite/yourimagepath/yourimg.jpg"/>';
}
return $text;
}
Can I customize the Download Link html?
Yes, you can do it just by adding a few lines to the theme’s functions.php
. fb_viral_downloader_html
filter allows you to customize the html. It returns two extra parameters apart from the text, $id
the id of the downloadable post and $share_count
the count of the number of times the post is being shared.
Eg code:
add_filter( 'fb_viral_downloader_html', 'custom_fb_viral_downloader_html', 10, 3 );
function custom_fb_viral_downloader_html( $text, $id, $share_count ) {
return 'Share This to download' . ' <span>(' . $share_count . '</span>)';
}