You are here

README.txt in Sharerich 8

Same filename and directory in other branches
  1. 7.3 README.txt
  2. 7 README.txt
  3. 7.2 README.txt
Module: Sharerich

Description
===========
Customisable Share buttons for social media.

Installation
============
Put the modules into your sites/module/contrib folder and enable the module.
Go to the permissions page and set them accordingly.

Requiring RRSSB library
=======================
Add this vcs to your main composer.json

	"repositories": [
		{
			"type": "package",
			"package": {
				"name": "kni-labs/rrssb",
				"version": "1.13.1",
				"type": "drupal-library",
				"source": {
					"url": "https://github.com/kni-labs/rrssb.git",
					"type": "git",
					"reference": "master"
				},
				"dist": {
					"url": "https://github.com/kni-labs/rrssb/archive/1.13.1.zip",
					"type": "zip"
				},
				"require": {
					"composer/installers": "~1.0"
				}
			}
		}
	]

then

	"require": {
		"php": ">=5.5.0",
		"kni-labs/rrssb": "~1.0"
	}

Configuration
=============
- Visit /admin/config/sharerich/settings for general settings;
- Visit /admin/structure/sharerich and create your own button sets;
- Visit /admin/structure/block and place Sharerich blocks.
- Out of the box, Drupal doesn't allow the whatsapp and javascript protocols. If you want to use the
  whatsapp or print button, you need to add entries to services.yml (On the same folder where the
  site's settings.php is). Add the following entries.

  parameters:
    filter_protocols:
      - whatsapp
      - javascript

Notes
=====

  - Facebook share:

  It looks like Facebook is now ignoring any custom parameters on the share widget (https://developers.facebook.com/x/bugs/357750474364812/)
  Since facebook.inc service uses www.facebook.com/sharer/sharer.php, it will pull the information from the Open graph tags of the Url being shared.
  If you want to use custom information, you need to use the widget below. Please note that you will need to have a Facebook App Id and Site Url.

  <a href="https://www.facebook.com/dialog/feed?redirect_uri=[sharerich:fb_site_url]&display=popup&app_id=[sharerich:fb_app_id]&link=[sharerich:url]&name=[sharerich:title]&description=[sharerich:summary]" class="popup">
    <span class="icon">
        <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="28px" height="28px" viewBox="0 0 28 28" enable-background="new 0 0 28 28" xml:space="preserve">
            <path d="M27.825,4.783c0-2.427-2.182-4.608-4.608-4.608H4.783c-2.422,0-4.608,2.182-4.608,4.608v18.434
                c0,2.427,2.181,4.608,4.608,4.608H14V17.379h-3.379v-4.608H14v-1.795c0-3.089,2.335-5.885,5.192-5.885h3.718v4.608h-3.726
                c-0.408,0-0.884,0.492-0.884,1.236v1.836h4.609v4.608h-4.609v10.446h4.916c2.422,0,4.608-2.188,4.608-4.608V4.783z"/>
        </svg>
    </span>
    <span class="text">facebook</span>
  </a>


  - To alter the buttons markup.

  hook_sharerich_buttons_alter(&$buttons) {

  }

TODO
====
- google_analytics_et (If the module is enabled, GA event tracking will be added to the share buttons)

File

README.txt
View source
  1. Module: Sharerich
  2. Description
  3. ===========
  4. Customisable Share buttons for social media.
  5. Installation
  6. ============
  7. Put the modules into your sites/module/contrib folder and enable the module.
  8. Go to the permissions page and set them accordingly.
  9. Requiring RRSSB library
  10. =======================
  11. Add this vcs to your main composer.json
  12. "repositories": [
  13. {
  14. "type": "package",
  15. "package": {
  16. "name": "kni-labs/rrssb",
  17. "version": "1.13.1",
  18. "type": "drupal-library",
  19. "source": {
  20. "url": "https://github.com/kni-labs/rrssb.git",
  21. "type": "git",
  22. "reference": "master"
  23. },
  24. "dist": {
  25. "url": "https://github.com/kni-labs/rrssb/archive/1.13.1.zip",
  26. "type": "zip"
  27. },
  28. "require": {
  29. "composer/installers": "~1.0"
  30. }
  31. }
  32. }
  33. ]
  34. then
  35. "require": {
  36. "php": ">=5.5.0",
  37. "kni-labs/rrssb": "~1.0"
  38. }
  39. Configuration
  40. =============
  41. - Visit /admin/config/sharerich/settings for general settings;
  42. - Visit /admin/structure/sharerich and create your own button sets;
  43. - Visit /admin/structure/block and place Sharerich blocks.
  44. - Out of the box, Drupal doesn't allow the whatsapp and javascript protocols. If you want to use the
  45. whatsapp or print button, you need to add entries to services.yml (On the same folder where the
  46. site's settings.php is). Add the following entries.
  47. parameters:
  48. filter_protocols:
  49. - whatsapp
  50. - javascript
  51. Notes
  52. =====
  53. - Facebook share:
  54. It looks like Facebook is now ignoring any custom parameters on the share widget (https://developers.facebook.com/x/bugs/357750474364812/)
  55. Since facebook.inc service uses www.facebook.com/sharer/sharer.php, it will pull the information from the Open graph tags of the Url being shared.
  56. If you want to use custom information, you need to use the widget below. Please note that you will need to have a Facebook App Id and Site Url.
  57. facebook
  58. - To alter the buttons markup.
  59. hook_sharerich_buttons_alter(&$buttons) {
  60. }
  61. TODO
  62. ====
  63. - google_analytics_et (If the module is enabled, GA event tracking will be added to the share buttons)