[Endless Horizon] Social Share

Unmaintained [Endless Horizon] Social Share 2.2.3

No permission to download
If you are updating, please read the entire change logs!

Change logs:
  • Rewrote core mechanism (better logic and should have better overall performance as well).
  • Timeout feature will now affect both cURL and file_get_contents. The option ID has also changed (500 ms by default). Thanks to @katsulynx for the heads up.
  • Added option "Enable JavaScript debug messages" to control whether to display JavaScript debug messages to visitor's browser console or not (disabled by default).
  • Renamed "Keep Trying When Fail" option to "Try again if the previous attempt was failed". The option ID has also changed (enabled by default).
  • Added option "Fallback to zero" to tell the add-on to fallback to zero instead of not displaying count whenever it can't fetch share count from a certain social site (disabled by default).
  • Renamed "Enabled cURL Debug" option to "Enable count fetching debug messages". This new option will log a few more messages compared to the old one. The option ID has also changed (disabled by default).
  • Renamed "cURL Option: Verify Host & Peer" option to "cURL Option: Secure connection (verify host)". The option ID has also changed (enabled by default).
  • Renamed "cURL Option: Use the add-on's Certificate Bundle" option to "cURL Option: Use the add-on's certificate bundle" (I know, I only changed the caps). The option ID has also changed (enabled by default).
  • Updated the add-on's certificate bundle (generated on Wed Apr 20 03:12:05 2016).
  • Renamed "Cache ID Suffix" option to "Cache ID prefix". As the name suggest, instead of adding custom suffix, you now have full control of the prefix (previously the add-on would use a fixed prefix). The option ID has also changed ("ehss_" by default).
  • Added new option "View on threads list". This option has 2 sub-options, Top and Bottom (both disabled by default). This option will allow you to show the share widget on top of or under threads list.
  • The add-on will no longer append the add-on's version to the JavaScript file.
  • Renamed "Font Awesome CSS Path" option to "Font Awesome CSS path" (Yes, I know, another caps change). Default value has also changed to version 4.6.3.
  • Renamed some other options and rewrote some descriptions. No change to the option ID.
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.
  • Like
Reactions: kontrabass
  • 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.
  • Like
Reactions: THLove
  • 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 have CURLOPT_SSL_VERIFYHOST option enabled. And a certificate bundle is included by default on the add-on (taken from https://curl.haxx.se/ca/cacert.pem). There's no need to install the certificate. The add-on will automatically use the included certificate on all cURL execs.
  • Added experimental compatibility for PHP 5.2 and 5.3, though it may not fully work. Please report any issues on the discussion thread.
  • Added minified version of the JS (used UglifyJS2), and the add-on will use it by default.
  • Tidied Listener.php and rephrased cache hit debug messages.
  • 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.
  • Tidied JS file and eh_socialshare_js template.
  • Like
Reactions: Mouth
  • 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.
Top Bottom