well first question is what is the ubb version. Second is html includes should have a Shareaholic 'Setup Code': section not enter it in the /head tag Unless this is a older version that does not support the feature. Then you must follow the hack at ubbdev.com
Third is verify the correct api code and sometimes you need to wait a bit and refresh or clear cache for it to appear.
Last question have you modified any of the stock scripts at all. If so what?
I never tried the footer section myself.
Last edited by Ruben; 12/29/20153:52 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
Same problem here kf6zpl Couldn't get it to work in the correct section (Shareaholic 'Setup Code': section).
Only got it working by adding it to the header. Also added the display code to the footer to get the code to work, but didn't like the position.
In order to get it working, I had to use the 'Floated Share Buttons' option in the Shareaholic control panel. (This floats the icons to the side of the page.)
There is some information here for adding Shareaholic to pages outside of the topic view (since SD locked it down to just that page, for whatever reason; the initial writeup had it capable of being displayed everywhere); as for support on *why* it won't work, unfortunately, I have no clue, you would probably have better results asking them (as the code just uses their JavaScript; as the data, if properly filled, should *just work*).
Please note that browser security addons (such as NoScript, AdBlock, HTTPS Anywhere (which I personally have had issues with in regards to Shareaholic), etc.), Browser Privacy options, Microsoft EDGE browser in general, etc. can cause issues with 3rd party code executing within your browser (which would require one to either disable or whitelist their site). You should test various browsers before modifying code, as the code is the same bits used here and at UBBDev, which executes without issue.
Also, most browsers have a "allow running scripts/accepting cookies from third party sites" setting, which would block things such as Shareaholic (since it's a 3rd party site that is trying to load from your site via its JavaScript) from working as well. Also keep in mind that Shareaholic is a tracking service, and as such, there are also generally browser settings for "tracking services" (such as "Request that sites not track you").
UBBDev, A Gardeners Forum, UGN Security all are running on CloudFlare and using the shareaholic system without issue (and have since I wrote it for inclusion to 7.5.8, which was changed by the developer at the time to suit his needs).
You might have issues with the "Rocket Loader" item via CloudFlare, but I believe that I have that enabled on AGF and it's still operating there. You could use the "Development Mode" feature to see if it is having any issues though, it'll bypass all of the CF features and render your site directly.
Also, the tracker and privacy settings are browser specific and are not addons.
If your server isn't configured to link the referrer IP through CloudFlare (with the Apache addon) you will likely see that all of your users are using the same IP. The in development version 7.6.0 has several updates for CDN's that I've discovered quirks for; but if you run a VPS or Dedicated machine I'd recommend you install mod_cloudflare to your Linux system if you're using a CDN (this will not be a requirement in v7.6.0 as we detect various proxy headers).
Okay, by adding the Shareaholic code to the Default Header section under HTML Includes, the code shows up in the footer.
I would prefer it show about the Reply box....
Did you not add the code in the actual shareaholic field? Just a question why you chose the default header.
To add it to a reply box you probably need to hack the template for it. Again I suggest look at the mod at ubbdev.com for suggestions. Even though that version supports it.
Last edited by Ruben; 12/30/20154:20 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
Thanks Gizmo. It is a standalone server on Rackspace running Linux with Apache. The mod_cloudflare and Cloudflare Apache have been added. I did have an issue with the RocketLoader and it has been disabled.
Everything is good as the Shareaholic buttons are now displaying. Thanks of the assistance...
The first is a Javascript that is to be placed prior to the </head> tag.
UBB has a Shareaholic code section that indicates that code will be placed prior to the </head> tag.
The second bit of code is html as displays the buttons (<div class='shareaholic-canvas' data-app='share_buttons' data-app-id=''></div>) and is to be placed where you want the buttons to appear.
The only place in the UBB configuration I can find for palcement is the FOOTER code section.
By adding the JS in the HEAD section of the HTML Includes, the buttons are displayed in in the FOOTER.
I have 2 installs of UBB. One (outdoorwire.com), the buttons display in the FOOTER.
On the other (4x4wire.com/forums), the buttons appear in the footer and, because I experimented with the placement options on the Shareaholic admin panel, they also appear on the left side of the screen. That works as the buttons are always visible and appear to not provide a display issue on mobile devices. With my look and feel, I may add some padding to the left so the buttons do not overlap text.
V7.5.8 and onward have their own implementation of shareaholic, which ex expanded upon in the UBBDev pages, it'll be changed in v7.6.0 to reflect the UBBDev pages.
Basically all that is needed in the UBB is the shareaholic key and setup code, then it places it's own snippet on the thread view pages; then it can be expanded with the notations on the UBBDev page.
You're more than welcome to add code manually, it'll work either way, but we cannot provide support on modifications to code on this support forum (as the 3rd party support here is generally for stock forums, whereas UBBDev is the 3rd party site for modifications and development)