[Endless Horizon] Social Share

xF1 Add-on [Endless Horizon] Social Share 2.2.3

No permission to download
Fixed typo with singular share count phrase in eh_socialshare.js template which caused phrase for singular share count to display incorrectly.
  • There are now 2 phrases for the text that you see when you hover the share count. One for when the share count is only 1 (singular), and the other one is for when the share count is 0 or more than 1 (plural).
  • You can now tell the add-on to use Open Graph image for the Pinterest share. You simply have to empty "Pinterest: Media" option and it will work out the magic. But make sure that you've enabled Open Graph beforehand (https://xenforo.com/help/facebook/#open-graph).
  • Updated phrases for some options.
Note: 1.4.0 is basically the final version of 1.3.3 beta. Beta releases are only available on the GitHub page.

Changes on 1.3.3 beta 1:
  • Added new option: "Cache ID Suffix" to force the add-on to add suffix to cache ID, thus also forcing it to fetch new share counts even if the previous share counts were available on the cache.
  • Improved phrase of some admin options.
  • Rephrased all log messages to use DEBUG prefix.
Changes on 1.3.3 beta 2:
  • Added an alternative fetching method for Facebook (will use newer Graph API if Facebook App ID and Secret are available on Admin CP > Options > Facebook Integration).
  • Laid groundwork to add Font Awesome through the add-on's Admin CP options (still not working yet).
  • Added new option: "cURL Option: Use the add-on's Certificate Bundle" to use the add-on's certificate bundle. This option is enabled by default. If you've already entered your own certificate bundle in your php.ini, you may have to disable this option to avoid conflicts.
Change on 1.3.3 beta 3:
  • Finished the option to add Font Awesome.
Change on 1.4.0:
  • Improved mechanism for the debug message function. It will no longer try to get value of XenForo options on every function call. This may or may not increase performance. And even if it does, it will most likely be unnoticeable.
  • Share count for Pinterest will now fetch counts from widgets.pinterest.com instead of api.pinterest.com. Heard rumors saying that widgets.pinterest.com would respond faster, and I thought it wouldn't hurt to try.
  • Fixed share count issue for Google Plus where it would never return any number but 0 on successful fetch.
  • Added new option: "cURL Option: Verify Host & Peer" to tell cURL to verify host and peer (basically use SSL). This option is enabled by default. If you're having issue with SSL, you may want to disable this. But be warned that it'll be easier for bad people to commit MITM attack.
  • Rephrased "VK" to "ВКонтакте" on front-end display, while admin options will use "ВКонтакте (VK)". I did this change because I believed that VK was more popular to Russians and that it'd be wiser to use that phrase instead (on a side note, YouTube used that phrase).
NOTICE: Sorry for the inconvenience. 1.3.0 was a failed version, had to increase the version string for this bugfix.
Anyway, existing users please read the full change logs!
  • Now there's no minimum version of cURL extension. But it's still required to have PHP 5.2 or newer.
  • "cURL Timeout (ms)" option will now automatically convert the entered value into seconds if the server's cURL is older than version 7.6.12. The add-on will use ceil function to round the fractions up.
  • Added new selection: "Above Quick Reply" for "View on Threads" option. With this new selection, you can display the widget above quick reply (it will still appear to guests). This selection is disabled by default.
  • Improved mechanism and total performance to fetch share counts.
  • Improved mechanism to attach eh_socialshare_js template on pages. Previously, the add-on would actually include the template on every single HTML page (including those without the share widget), and if share counts were enabled, it'd also try to fetch share counts for those pages. Thus, it gave unnecessary performance impact. But now the add-on will only include the template on pages with the share widget (the add-on will "mark" eh_socialshare template, so if you somehow include share widget on some other pages, it will still work fine).
  • Changed default value of "E-Mail: Body" to:
{title}%0D%0A%0D%0AGo check it out with this link: {url}

  • Existing users should update this option if you were using the old default value, as this new value will look better on emails. I wanted to set this as the default value since 1.2.7, but kinda forgotten.
  • Tidied Listener.php file and rephrased some log messages.
If you're getting invalid callback error, try to reupload all files, after that upgrade the add-on by importing the XML.
  • Added new option: "Disable cURL" to force the add-on to use file_get_contents instead of cURL.
    If this option is not enabled, but your server don't have cURL, the add-on will still automatically use file_get_contents instead.
  • Added new option: "Enable cURL Debug" to output any error messages from the cURL session.
  • Removed "Delicious" from Enable Share Counter option.
  • All cURL session will now...
  • Added 3 new options: "E-Mail: Subject", "E-Mail: Body", and "Pinterest: Media".
    "E-Mail: Subject" allows you to set your preferred subject for the email share.
    "E-Mail: Body" allows you to set your preferred body for the email share.
    "Pinterest: Media" allows you to set a fixed path to an image that you want to use for Pinterest share.
  • Removed "Mail Prefix" option.
  • Removed some unnecessary replace methods.
  • Fixed Pinterest share button not opening popup upon click....
  • Fixed an issue where the JS would run into an error when none of the share counters were enabled on Admin CP.
  • Fixed WhatsApp's popup URL. Previously it wouldn't include the page's URL on the share message.
  • Fixed possible PHP fatal error: "Cannot use object of type stdClass as array".
  • Added a custom fix to prevent pinit.js (Pinterest Widget) from hijacking this add-on's Pinterest share button.