1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Endless Horizon] Social Share 2.1.6

Overlay social share widget, with share counts and cache support.

  1. BobbyWibowo

    BobbyWibowo Well-Known Member

    Last edited: Feb 14, 2016
    rafass likes this.
  2. Mouth

    Mouth Well-Known Member

    Thanks, looks great on my Xenith (UI.X) based theme.
     
    BobbyWibowo likes this.
  3. Mouth

    Mouth Well-Known Member

    Ooops. Far too much is being logged to ACP server log ....

    Server Error Logs
    Server Error Logs
    1. Share counters were loaded from cache and the data was valid - Cache ID: ehss_3789759724A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    2. Share counters were loaded from cache and the data was valid - Cache ID: ehss_1457774079A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    3. Share counters were loaded from cache and the data was valid - Cache ID: ehss_1006709370A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    4. Share counters were loaded from cache and the data was valid - Cache ID: ehss_3719221593A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    5. Share counters were loaded from cache and the data was valid - Cache ID: ehss_3266929542A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    6. Share counters were loaded from cache and the data was valid - Cache ID: ehss_3001701033A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    7. Share counters were loaded from cache and the data was valid - Cache ID: ehss_4019244198A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    8. Share counters were loaded from cache and the data was valid - Cache ID: ehss_2816651254A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    9. Share counters were loaded from cache and the data was valid - Cache ID: ehss_1150783218A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    10. Share counters were loaded from cache and the data was valid - Cache ID: ehss_3712861405A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    11. Share counters were stored on cache - Cache ID: ehss_613185132A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    12. Share counters were stored on cache - Cache ID: ehss_1569611002A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    13. Share counters were stored on cache - Cache ID: ehss_980014227A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    14. Share counters were loaded from cache and the data was valid - Cache ID: ehss_2692282427A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    15. Share counters were stored on cache - Cache ID: ehss_116839641A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    16. Share counters were loaded from cache and the data was valid - Cache ID: ehss_1398990908A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    17. Share counters were loaded from cache and the data was valid - Cache ID: ehss_2692282427A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    18. Share counters were stored on cache - Cache ID: ehss_4081236709A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    19. Share counters were stored on cache - Cache ID: ehss_4048610061A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78
    20. Share counters were loaded from cache and the data was valid - Cache ID: ehss_1790493108A moment ago - library/EndlessHorizon/SocialShare/Listener.php:78

    Have had to disable the add-on for now.
     
  4. glukomonter

    glukomonter Member

    It seems that you have enabled "Cache Hit Debug" option.
     
    Mouth likes this.
  5. BobbyWibowo

    BobbyWibowo Well-Known Member

    @Mouth what @glukomonter said is right. The option is available on Admin CP. I forgot to have it disabled by default. Though at least we know that the cache is working properly on your board, lol.
     
    Mouth likes this.
  6. Axel B

    Axel B Well-Known Member

    I love the idea, but run into a couple of issues:

    ACP is swamped with errors
    Server Error Log
    Error Info
    XenForo_Exception: WARNING: Did not save share counters because none were successfully fetched - Cache ID: ehss_179272433 - library/EndlessHorizon/SocialShare/Listener.php:78
    Generated By: Unknown Account, A moment ago
    Stack Trace
    #0 /home/axel/public_html/forum/library/EndlessHorizon/SocialShare/Listener.php(120): EndlessHorizon_SocialShare_Listener::cacheHitDebug('WARNING: Did no...')
    #1 [internal function]: EndlessHorizon_SocialShare_Listener::getShareCounts('', Array, Object(XenForo_Template_Public))
    #2 /home/axel/public_html/forum/library/XenForo/Template/Abstract.php(330): call_user_func(Array, '', Array, Object(XenForo_Template_Public))
    #3 /home/axel/public_html/forum/internal_data/templates/S.21,L.2,PAGE_CONTAINER.php(761): XenForo_Template_Abstract->callTemplateCallback('EndlessHorizon_...', 'getShareCounts', '', Array)
    #4 /home/axel/public_html/forum/library/XenForo/Template/Abstract.php(260): include('/home/axel/publ...')
    #5 /home/axel/public_html/forum/library/XenForo/Template/Abstract.php(191): XenForo_Template_Abstract->_renderInternal('/home/axel/publ...', Array)
    #6 /home/axel/public_html/forum/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
    #7 /home/axel/public_html/forum/library/XenForo/ViewRenderer/HtmlPublic.php(139): XenForo_Template_Public->render()
    #8 /home/axel/public_html/forum/library/XenForo/FrontController.php(637): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
    #9 /home/axel/public_html/forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #10 /home/axel/public_html/forum/index.php(13): XenForo_FrontController->run()
    #11 {main}
    Request State
    array(3) {
    ["url"] => string(67) "http://mainecoon.nl/forum/threads/wij-waren-ook-in-purmerend.40997/"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(0) {
    }
    }

    The Pinterest and Reddit button don't look as shown in your screenshot:
    Screen Shot 2016-02-14 at 11.55.02.png

    The previously (before this addon) share counters are not taken into account it seems? Perhaps this is something that can be fixed?
     
  7. BobbyWibowo

    BobbyWibowo Well-Known Member

    You have to disable "Enable Cache Hit Debug" option from the add-on's options on Admin CP to stop the add-on from filling your Server Error Logs. I forgot to have that option disabled by default (working on it now). On a side note, I made that option so that you can tell whether the cache is being used correctly or not.
    I suppose Pinterest's JS is being loaded on your site, and it happens to hit on that button because of similar class name or something. I'll take a look at it ASAP, for now I suggest to disable that particular site. And for Reddit, the only reason that I can think about is due to outdated FontAwesome. I guess Reddit icon was added recently, so the only solution is to update your FontAwesome.
    It should. The share counters are being fetched directly from the social sites through their public web intent. So, unless you recently changed your domain, or your previous add-on used different URL of your board to fetch the counter, the share counters should remain. If your previous add-on used different URL of your board to fetch the counter, then it's possible to add an option to tweak that a little bit, but first I will have to know the method of your previous add-on.
     
    Axel B likes this.
  8. BobbyWibowo

    BobbyWibowo Well-Known Member

    Axel B likes this.
  9. BobbyWibowo

    BobbyWibowo Well-Known Member

    BobbyWibowo updated [Endless Horizon] Social Share with a new update entry:

    Updated to 1.2.2

    Read the rest of this update entry...
     
    Axel B likes this.
  10. BobbyWibowo

    BobbyWibowo Well-Known Member

    If it's still not working, try to increase cURL Timeout from the add-on's options on Admin CP (requires v1.2.2 of this add-on). It's possible that your server couldn't fetch the share counts in 500 ms or less from the social sites (default timeout value of the add-on).
     
    Axel B likes this.
  11. BobbyWibowo

    BobbyWibowo Well-Known Member

    Axel B likes this.
  12. TMC

    TMC Active Member

    Thanks added to my site. I did notice one small bug while testing this, if trying to share a page via Whatsapp, it only adds the page title and url/link is missing completely.
     
    BobbyWibowo likes this.
  13. BobbyWibowo

    BobbyWibowo Well-Known Member

    Yeah, apparently I forgot to add {url} on WhatsApp's popup URL. I don't have the time to upload an update for now, but if you're too bothered by it, you can edit the template by yourself. At least until I upload an update (which CAN be more than 24 hours later).
    Look for a template called "eh_socialshare_js", and then look for this code
    Code:
        { name: "WhatsApp",
            iconClass:        "fa fa-whatsapp",
            bgColor:        "#4dc247",
            popupURL:        "whatsapp://send?text={text}",
            popupName:        "_blank",
            popupSpecs:        ""
        },
    Change the popupURL into whatsapp://send?text={text}%20{url} - %20 is a percent-encoded space character as a separator from the page title to the page URL.
    I actually noticed this mistake on LINE before, but since I didn't have WhatsApp, I forgot to test it out on WhatsApp.
     
    TMC likes this.
  14. Axel B

    Axel B Well-Known Member

    Thanks for all the updates m8! Looks awesome!
     
    BobbyWibowo likes this.
  15. BobbyWibowo

    BobbyWibowo Well-Known Member

  16. kontrabass

    kontrabass Well-Known Member

  17. BobbyWibowo

    BobbyWibowo Well-Known Member

    @kontrabass Did you disable all share counts? It seems like I forgot to make sure that the JS will still run even when all share counts are disabled.

    EDIT: Yes. Mistake on my part. I'll push an update in 30 mins or less.
     
  18. kontrabass

    kontrabass Well-Known Member

    I have all social share sites enabled in the add-on options...

    Screenshot at Feb 15 09-02-11.png
     
  19. BobbyWibowo

    BobbyWibowo Well-Known Member

    What I meant is the share counter. When none of them is enabled, at the moment the JS will run into an error.
     
    kontrabass likes this.
  20. markku

    markku Well-Known Member

    But you disabled the share counters, which was the bug, and it's being fixed (as far as I understood).
     
    kontrabass likes this.

Share This Page