[Endless Horizon] Social Share

[Endless Horizon] Social Share 2.2.3

No permission to download
@Bernando Bona Tius Below the post? I'm pretty sure that the share menu will appear below posts by default though? Or do you have a specific location in mind? If possible, please do a mockup picture.
Also, thank you for the kind words!
 
@bibitbunga, Sorry, the content should've been this:
PHP:
<?php
var_dump(curl_version());
Please try again!
Hi @BobbyWibowo sorry for such a delay. I have replaced the code and now it shows this:

http://www.kebunpedia.com/dumpcurl.php

array(9) { ["version_number"]=> int(468480) ["age"]=> int(3) ["features"]=> int(34333) ["ssl_version_number"]=> int(0) ["version"]=> string(6) "7.38.0" ["host"]=> string(17) "i686-pc-linux-gnu" ["ssl_version"]=> string(14) "OpenSSL/1.0.1e" ["libz_version"]=> string(5) "1.2.3" ["protocols"]=> array(18) { [0]=> string(4) "dict" [1]=> string(4) "file" [2]=> string(3) "ftp" [3]=> string(4) "ftps" [4]=> string(6) "gopher" [5]=> string(4) "http" [6]=> string(5) "https" [7]=> string(4) "imap" [8]=> string(5) "imaps" [9]=> string(4) "ldap" [10]=> string(5) "ldaps" [11]=> string(4) "pop3" [12]=> string(5) "pop3s" [13]=> string(4) "rtsp" [14]=> string(4) "smtp" [15]=> string(5) "smtps" [16]=> string(6) "telnet" [17]=> string(4) "tftp" } }
 
@bibitbunga Hmm, weird, things should have worked just fine. Do you have SSH access? If so, try some (or all) of the following commands:
Code:
curl -i https://graph.facebook.com/?id=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i http://opensharecount.com/count.json?url=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i https://plusone.google.com/u/0/_/+1/fastbutton?count=true&url=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i https://www.linkedin.com/countserv/count/share?format=json&url=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i https://widgets.pinterest.com/v1/urls/count.json?url=http%3A%2F%2Fwww.kebunpedia.com%2F
If you're curious about its function, you may check this site: http://www.linuxask.com/questions/show-http-response-header-using-curl
This is to test whether the issue lies with your PHP cURL extension, or the cURL module on your server itself.
 
@bibitbunga Hmm, weird, things should have worked just fine. Do you have SSH access? If so, try some (or all) of the following commands:
Code:
curl -i https://graph.facebook.com/?id=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i http://opensharecount.com/count.json?url=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i https://plusone.google.com/u/0/_/+1/fastbutton?count=true&url=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i https://www.linkedin.com/countserv/count/share?format=json&url=http%3A%2F%2Fwww.kebunpedia.com%2F
curl -i https://widgets.pinterest.com/v1/urls/count.json?url=http%3A%2F%2Fwww.kebunpedia.com%2F
If you're curious about its function, you may check this site: http://www.linuxask.com/questions/show-http-response-header-using-curl
This is to test whether the issue lies with your PHP cURL extension, or the cURL module on your server itself.
I am a newbie and I do not know how to get the SSH access. I will figure it later. thank you
 
BobbyWibowo updated [Endless Horizon] Social Share with a new update entry:

Updated to 2.0.0

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...

Read the rest of this update entry...
 
A little note. I plan to add another feature which adds a "floating" Share This Page button. The button will follow you when you scroll the page and all that. And of course, if you have this feature enabled, the add-on won't add any Share This Page button above/below threads, pages and threads list despite you having them turned on. Also, exclusively for this feature, you can have it enabled on all pages. So it's not only limited to threads, pages and threads list.

So yeah.. that's the plan. I still need to build up enough motivation, so I don't know when I'll work on that yet.
 
BobbyWibowo updated [Endless Horizon] Social Share with a new update entry:

Updated to 2.1.0

  • Fixed an issue with "View on threads list" option. Previously, enabling "Bottom" sub-option wouldn't make the add-on show the social share widget since the logical expression was to check for "Top" sub-option instead.
  • Popups will now be centered to the browser's screen instead of appearing somewhere around the top-left of the desktop (or somewhere else, depending on the browser).
  • Improved overlay generation in the JavaScript file. This may slightly improve the front-end...

Read the rest of this update entry...
 
Not sure am I the only one with this issue, but facebook v2 service has trouble getting the correct share count. Looking at the code I think it's trying to find value share_count, while the facebook service returns value shares
fbv2.webp
I did a quick test and changed the code from
Code:
  case "facebook_v2":
  $res = json_decode($res);
  $count  = $res->share->share_count;
  break;
to
Code:
  case "facebook_v2":
  $res = json_decode($res);
  $count  = $res->shares;
  break;
And then it started to work correctly again. (Not completely sure is that correct way to do it tho...)

Debug log screenies below
Before the change:
before.webp
After the change:
after.webp
 
That's indeed the correct way to do it. They might have done the change with their API recently because I'm sure that the v2 API was working fine a couple of weeks ago (I stopped using share counts in my forums recently). Thanks for the heads up, I'll upload a new version with that change in a few hours.
 
Haha looks like they went back to the old one, so I guess the change should be reverted. (Until they change it again...)

okey.webp
 
Installed this and having some issues with the JS... so went to uninstall it and I get this
Code:
An exception occurred: Call to undefined function opcache_reset() in /home/nginx/domains/twowheeldemon.com/public/library/AddOnInstaller/XenForo/Model/AddOn.php on line 194

AddOnInstaller_XenForo_Model_AddOn->InvalidateFileOpCache() in AddOnInstaller/Listener.php at line 64
AddOnInstaller_Listener::template_file_change() in XenForo/CodeEvent.php at line 58
XenForo_CodeEvent::fire() in XenForo/Template/FileHandler.php at line 136
XenForo_Template_FileHandler->_postTemplateChange() in XenForo/Template/FileHandler.php at line 126
XenForo_Template_FileHandler->_deleteTemplate() in XenForo/Template/FileHandler.php at line 67
XenForo_Template_FileHandler::delete() in XenForo/Model/Template.php at line 710
XenForo_Model_Template->deleteTemplatesForAddOn() in XenForo/Model/AddOn.php at line 467
XenForo_Model_AddOn->deleteAddOnMasterData() in XenForo/DataWriter/AddOn.php at line 196
XenForo_DataWriter_AddOn->_postDelete() in AddOnInstaller/XenForo/DataWriter/AddOn.php at line 10
AddOnInstaller_XenForo_DataWriter_AddOn->_postDelete() in Bookmarks/DataWriter/AddOn.php at line 48
Bookmarks_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1793
XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 123
XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/twowheeldemon.com/public/admin.php at line 13

EDIT:
Second time through (after issuing a restart to nginx, php-fpm and redis) and it uninstalled.
EDIT 2:
Spoke to soon... got this error again (but it appears to have uninstalled)
Code:
An exception occurred: Call to undefined function opcache_reset() in /home/nginx/domains/twowheeldemon.com/public/library/AddOnInstaller/XenForo/Model/AddOn.php on line 194

AddOnInstaller_XenForo_Model_AddOn->InvalidateFileOpCache() in AddOnInstaller/Listener.php at line 64
AddOnInstaller_Listener::template_file_change() in XenForo/CodeEvent.php at line 58
XenForo_CodeEvent::fire() in XenForo/Template/FileHandler.php at line 136
XenForo_Template_FileHandler->_postTemplateChange() in XenForo/Template/FileHandler.php at line 126
XenForo_Template_FileHandler->_deleteTemplate() in XenForo/Template/FileHandler.php at line 67
XenForo_Template_FileHandler::delete() in XenForo/Model/Template.php at line 1293
XenForo_Model_Template->compileAllTemplates() in XenForo/Deferred/Template.php at line 36
XenForo_Deferred_Template->execute() in XenForo/Deferred/Atomic.php at line 66
XenForo_Deferred_Atomic->execute() in XenForo/Model/Deferred.php at line 295
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/twowheeldemon.com/public/admin.php at line 13

This is using UI.X. It totally brings down (the add-on) viewing the index page when enabled - it works fine on my other site using PixelExit's Archon.
 
Last edited:
Back
Top Bottom