Coder Social home page Coder Social logo

kevinbazira / algori-social-share-buttons-lite Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 965 KB

Algori Social Share Buttons is a Gutenberg Block Plugin that enables you add Social Media Share Buttons to your website. Adding popular social share buttons enables your site visitors to easily send and share your site content with their friends. This will boost user engagement and grow your site audience.

License: GNU General Public License v2.0

PHP 22.45% JavaScript 68.11% SCSS 9.44%
css gutenberg html javascript nodejs php react social-buttons social-media wordpress-plugin

algori-social-share-buttons-lite's People

Contributors

kevinbazira avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

dovaldev

algori-social-share-buttons-lite's Issues

Issues with Wordpress Multisite Setup

Hello,

I am using your plugin for some of my Wordpress projects. On a normal site (non-multisite) it works flawlessly. With a Multisite setup there seems to be a problem:

When the social share buttons are used on one of the network sites as a user without super admin privileges (so a normal editor for example) after saving the post which contains your block I get a "Block validation" error in the console after reloading the page. It seems like the links to the different Social platforms won't get saved properly.

This is the error message I get:

Block validation: Block validation failed for cgb/block-algori-social-share-buttons

Expected:

<div style="text-align:center" class="wp-block-cgb-block-algori-social-share-buttons"> <button class="bttn-simple bttn-md bttn-primary algori-social-share-buttons-settings algori-social-share-buttons-facebook" onclick="window.open('https://www.facebook.com/sharer.php?u=http://localhost/project/article/', '_blank')"><i class="fab fa-facebook-f"></i>   Facebook</button></div>

Actual:

<div style="text-align:center" class="wp-block-cgb-block-algori-social-share-buttons"> <button class="bttn-simple bttn-md bttn-primary algori-social-share-buttons-settings algori-social-share-buttons-facebook"><i class="fab fa-facebook-f"></i>   Facebook</button></div>

As you can see the button onclick handler won't get saved properly WHEN I do not have super admin privileges in a Multisite setup. As a super admin I can save and reload everything just fine.

Email Sharing: wrong mailto Link

First of all, thanks for creating this cool Plugin!

We found one problem while using the email sharing button. This creates a link which follows this pattern:

mailto:body=<LINK_TO_ARTICLE>

This link opens the mail client and prefills the recipient field with everything after mailto:. The desired behavior would be to only have the link to the article in the mail body whilst the recipient field remains empty. This can be achieved if the mailto link has a ? between the : and the link to the article.
Therefore, the pattern should be:

mailto:?body=<LINK_TO_ARTICLE>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.