It is a modified "BuddyShare" Plugin. Adds share buttons to your BuddyPress site. But, shows social icons for all – not only for registered
Author: | Yuriy Radko (profile at wordpress.org) |
WordPress version required: | 3.3.1 |
WordPress version tested: | 6.4.1 |
Plugin version: | 3.4.2 |
Added to WordPress repository: | 08-03-2016 |
Last updated: | 19-11-2023 |
Rating, %: | 80 |
Rated by: | 1 |
Plugin URI: | http://yr.softer.top/2022/12/share-it-for-all... |
Total downloads: | 64 087 |
Active installs: | 20+ |
Click to start download |
This plugin will help you insert different buttons (Share, Like, Viber, Whatsapp, Google and others) into WordPress posts or pages, into Activity or Groups Buddypress. You can select buttons from the initial list: Facebook Share, Facebook Like, Twitter Share, LinkedIn Share, Digg, WhatsApp Button, Viber Share, Join Viber Community, Viber Group Button, Telegram share, Google search for article title, or search only on the site, Bing search, Yahoo search, Ask search, Duckduckgo search. You can also quickly insert a new custom button for any URL link. Can be used custom icons, images, styles. Works with WordPress or BuddyPress sites. Original code, credit Modemlooper.
Notes
License.txt – contains the licensing details for this component.
Screenshots
An initial set of buttons for a blog article.
An example of a set of buttons for a Buddypress group. Also, a button Join us on Viber is inserted.
Admin page. Settings table, screen 1. Button for instructions, button for a table of sample settings.
Admin page. Settings table, screen 2.
Admin page. Settings table, screen 3. The Facebook Like button settings are visible.
Admin page. Settings table, screen 4.
Admin page. Settings table, screen 5. Buttons for saving settings, for backup, for reset.
An example of a set of buttons for a Buddypress Activity.
This plugin can insert various buttons or links into the text (above, below the content) of the article, or activity post, in the forum. The plugin works with both WordPress and WordPress + Buddypress. There are also social network buttons on Facebook, Twitter, LinkedIn, Google+, Digg, etc. for sharing articles of the WordPress blog or Buddypress activity. There is also a Facebook button Like, with different parameters. There can also be any other buttons or images with links that the admin site indicates. Buttons can have any images or icons, or loaded along with the plugin, or images that the site administrator will assign. The image / icon can be specified outside the site by a link to the Internet. The button link format can be standard for social networking buttons like Facebook, Linkedin, Twitter, etc, or the site administrator can create a link for their new invented button. The handler of the new button can be given a link to the blog article or activity, and the text of the title of this article. Buttons (images with links) can be inserted in any place of the text of the article of the blog WordPress.
The plugin provides many options for setting buttons on the site. The plugin is complicated in the settings, but it is a very powerful plugin in the hands of an experienced admin site.
For example, set up a social network button Vkontakte.
In column Share on:(name) write ‘Vkontakte’ . Select image vk32.png or vk16.png. Or add the icon file of your button in the plugin directory /img, size 16×16 or 32×32. The file name of the icon should include numbers 16 or 32. It will be better if 1-3 letters of this image name = 1-3 letters of value ‘Share on name’.
In column Sharer URL (Php template): – write http://vk.com/share.php?url=$link&title=$title . Variable $title – plugin replaced by Article title, variable $link – plugin replaced by Article link, all another text in http: link – may be yours.
Select Blog or/and Activity or/and … etc. – where the button Vkontakte will appear. If we have only blog on WordPress – without Buddypress – then you can select only Blog, another selections must be ignored. Press Save Changes. Button set.
If in Share on:(name) write “Vkontakte nojsb” then the button will not be hidden behind the general JS-button.
If Shareon:(name) column includes the keyword “intxt”, then such Button appears in those blog articles, in the text of which the Shortcode [yr-bpshare-button] is inserted. Only one Shortcode [yr-bpshare-button] can be inserted anywhere in the article. The Shortcode [yr-bpshare-button] will be replaced with “intxt” buttons.
If Shareon:(name) includes the keyword “imgsrc=” and then a link is written, for example “imgsrc=http://yoursite.com/images/facebround32.png”, then the image for such a button will be taken from this link. You can give a link to any image of any size and see how they are displayed on the site. This keyword is convenient for debugging. The keyword “imgsrc=” is more priority than setting the icons from the plugin sub-directory. The image settings from the plugin sub-directory on the admin page remain unchanged.
Now (v.322) you can specify in the settings that the share buttons should be located at the bottom of the Activity content (after content). Now some buttons can be placed upper of the Activity content (by default) and some buttons – after the content by the keyword “afteractivity” in Shareon:(name) .
Examples of the values of the column Share on (name): Facebook nojsb / Linked2 intxt / Faceb3 intxt nojsb / Facebook nojsb imgsrc=http://yoursite.com/images/facebround32.png / Twitter afteractivity /
Examples of the values of the column URL: http://www.facebook.com/sharer.php?t=$title&u=$link / http://twitter.com/share?text=$title&url=$link / http://www.linkedin.com/shareArticle?mini=true&url=$link&title=$title / https://plus.google.com/share?url=$link / http://digg.com/submit?url=$link / mailto:?subject=$title&body=$link / http://vk.com/share.php?url=$link&title=$title /
Examples of settings for the “Like Facebook” button:
$fblikesize=<small> $fblikelayout=<button_count> $fblikeappid=<222222222222222>
$fblikestyle=<display:inline;vertical-align:middle;position:relative;bottom:4px;>
And the “Like” button generation line (and you need to mark sections of the site):
buttonFBlike nojsb
You can create a button by clicking on which Google search results by the title of the article will be displayed (example):
In the row of the settings table, in the row with the conditional number N, in the Share on: (name) field, write down the style command:
$buttonstyle=<height: 32px; width: 80px; >
In the next (from the top) row of the settings table, in the row with conditional number N + 1, in the Share on: (name) field, write down the button name and keywords:
Google search for: nojsb imgsrc=https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
Here Google search for: – is the name of the button and it will be in alt =, nojsb – do not hide this button in the common JS button, imgsrc = – indicates the Google image that will be used as an icon.
In the same N + 1 row of the settings table, check the sections of the site content where the button should appear, for example, blog, activity.
In the same N + 1 row of the settings table in the column (field) Sharer URL write down:
https://www.google.com/search?q=$title
This link will appeal to Google with the transfer of the search parameter – the title of the blog article.
The plugin works with both Buddypress + WordPress, and works only with the WordPress blog – without Buddypress installed. In the WordPress blog social buttons can be inserted anywhere in the blog text.
For Buddypress:
Buttons shows for all – not only for registered user.
Icons on social networks can appear above and/or below the content of activity – that is, there can be two groups of icons – and higher and lower.
Icons can be “hidden” behind the JS-button SHARE and/or not hidden.
Icons can be your own pictures.
Icons URL can be your own – So you can create buttons on new social networks or on those sites that you need.
You have a great field for creativity with this plugin. Custom icons, images, styles.
The plugin has the property: Replaces Buddypress URL with activity number on redirect Buddypress URL with member name, – this enables Facebook Sharer algoritm do right
“Buddy Share It Allusers FB YR” plugin tested on versions:
Wordpress 3.3.1 and Buddypress 1.6.1,
Wordpress 3.4.2 and Buddypress 1.6.1,
Wordpress 4.7.5 and Buddypress 2.7.3,
Wordpress 4.9.8 and Buddypress 2.9.3
Wordpress 4.9.8 and Buddypress 3.2.0
Wordpress 5.0.7 and Buddypress 4.1.0
Wordpress 5.2.4 and Buddypress 5.0.0
Wordpress 5.5.3 and Buddypress 6.3.0
Wordpress 5.6 and Buddypress 7.1.0
Wordpress 5.7 and Buddypress 7.1.0
Wordpress 5.8.1 and Buddypress 9.1.1
Wordpress 5.9.3 and Buddypress 9.1.1
Wordpress 6.1.1 and Buddypress 10.6.0
Wordpress 6.4.1 and Buddypress 11.0.0
Between versions: (WP 3.3.1 – WP 6.4.1) + (BP 1.6.1 – BP 11.0.0) – plugin should work.
3.4.2
SDK loading fix and Several bugs fixed
3.4.1.1 – 3.4.1.5
corrected some notes
3.4.1
Additional buttons. Several bugs fixed.
3.3.9
Fixed width 200px of table cells for JS buttons, including for the Activity section of the site.
The buttons began to open also on mouse hover.
Several bugs fixed.
3.3.8
For the Like button, the fblikedatashare parameter has been added – Facebook SDK generates two buttons at once – Like and Share. Added the ability to select buttons from simple templates.
3.3.7
A group of JS buttons now appears in horizontal table cells. Except positions afteractivity and intxt.
Fixed several CSS styles.
3.3.6.1
corrected some notes
3.3.6
fixed for WordPress 5.5.3 & BuddyPress 6.3.0
And now you can create many JS buttons with different names.!
3.3.5
added button: Invite Viber Community, Viber Group.
Now you can specify the condition for the button to appear. For example, a condition for the presence of a certain text in the title of an article or in the title of Buddypress group.
3.3.4
tested on wp524, fixed some PHP 7 Notice, fixed /r, removed style effect from wpautop, Like style setting, removing button shadow style.
3.3.3
Number of rows in the parameter table increased from 24 to 40 /max line admin table – 40
Viber share button added.
Telegram share button added.
You can limit the Google search button to search only for the specified site, for example, to search on your site.
Implemented row insertion in the settings table – insertline
Implemented deleting a row in the settings table – deleteline
Search buttons added: Yahoo, Bing, Ask, DuckDuckGo.
Added table of examples for settings.
Added the ability to make a backup file for settings and restore the settings table from this file.
3.3.2
Options are written only to the database
3.3.1
some fixes
3.3
fix: POST handler now in wp environment, nonce and checking permissions, and other
3.2.9.1
fixed some security issues
3.2.9
Fixed a POST exploit bug
3.2.8
The initial list of buttons is expanded. Google search button. Whatsapp button.
3.2.7
Added command to describe the style of the button. Now each button can have its own custom style.
Fixed some small bugs. And tuning styles for buttons.
3.2.6
The Like button for Facebook has been added to the plugin. The button Like has many parameters.
3.2.5
The plugin has been added the option (command) to change the name of the large common button.
Added an instruction to the admin page.
3.2.4
Fixed potential errors (due to new versions of Buddypress) in the plugin block: “Replaces Buddypress URL with activity number on redirect Buddypress URL with member name, – this enables Facebook Sharer algoritm do right”.
3.2.3
Fixed a bug – for Russian and other languages UTF-8 excluded the possibility of incorrect characters in the ‘title’ of icons. Thanks to this, “download more” (ajax) works correctly in the Activity.
3.2.2
Now you can specify in the settings that the share buttons should be located at the bottom of the Activity content (after content). Now some buttons can be placed upper of the Activity content (by default) and some buttons – after the content (keyword “afteractivity” in Shareon:(name) ).
3.2.1
Now for button icon you can give a link to any image of any size.
3.2
Now you can insert social buttons and other icons and pictures with links directly into the text of the blog article. The place for the buttons in the blog indicates by the Shortcode [yr-bpshare-button] .
3.1
Now plugin can operate without Buddypress – working only with WordPress.
Now each button can have a parameter ‘nojsb’ in Name. That is, at the same time will be JS button and not hidden button (nojsb).
3.0
The plugin is completely rewritten. Admin page made to create your own “Share” buttons. Tested on WP 4.7 and BP 2.7.3. Russian localization.
2.0
Buddy Share It Allusers FB YR – v.2.0 (tested on BP 1.6.1)