Previous Thread
Next Thread
Print Thread
Hop To
Shareaholic Configuration #257899 12/29/2015 2:36 PM
Joined: Jun 2009
Posts: 51
kf6zpl Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2009
Posts: 51
I have a Shareaholic account and generated the appropriate code.

In the CP (Topic Display Options), I added the account number.

Under HTML Includes, I added the Shareaholic code that goes before the </head> tag.

I also added the button display code in the Footer section.

The buttons don't display. Is there something I am missing?????

BTW, I would really like them to appear above the Reply box.

Last edited by kf6zpl; 12/29/2015 2:38 PM.
Re: Shareaholic Configuration [Re: kf6zpl] #257900 12/29/2015 2:49 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
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/2015 2:52 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Shareaholic Configuration [Re: kf6zpl] #257902 12/29/2015 3:50 PM
Joined: Jan 2004
Posts: 2,468
driv Offline
Offline
Joined: Jan 2004
Posts: 2,468
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.)

Not ideal.


Using version :: 7.7.2
Re: Shareaholic Configuration [Re: kf6zpl] #257903 12/29/2015 3:59 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Humm!


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Shareaholic Configuration [Re: kf6zpl] #257904 12/29/2015 5:53 PM
Joined: Jan 2004
Posts: 2,468
driv Offline
Offline
Joined: Jan 2004
Posts: 2,468
Sorry, is that considered to be a double post?
Delete if you like. smile


Using version :: 7.7.2
Re: Shareaholic Configuration [Re: kf6zpl] #257905 12/29/2015 6:19 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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").

Attached Files firefoxprivacycookies.png

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Shareaholic Configuration [Re: kf6zpl] #257916 12/30/2015 3:05 PM
Joined: Jun 2009
Posts: 51
kf6zpl Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2009
Posts: 51
Thanks for the info.

Sorry, the version is 7.5.9

There are no browser security addons. I have tried with Firefox and Chrome.

WRT to the third party tracking issue, have you had any issues with using Cloudflare???

Will double check the API...

Re: Shareaholic Configuration [Re: kf6zpl] #257917 12/30/2015 3:09 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Shareaholic Configuration [Re: kf6zpl] #257919 12/30/2015 3:13 PM
Joined: Jun 2009
Posts: 51
kf6zpl Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2009
Posts: 51
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....

Re: Shareaholic Configuration [Re: kf6zpl] #257920 12/30/2015 3:17 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Originally Posted by kf6zpl
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/2015 3:20 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Shareaholic Configuration [Re: kf6zpl] #257921 12/30/2015 3:21 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
It should, via stock code, show above the Quick Reply box (taken from the stock v7.5.9 archive):

showflat.tpl:
Code
{if $shareaholic}
<div class="ubb-shareaholic">{$shareaholic}</div>
{/if}

{$quickreply}


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Shareaholic Configuration [Re: kf6zpl] #257922 12/30/2015 3:44 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Thats why I asked why using the default head section in lieu of the shareaholic field.
Since he has a current version.

Besides why it shows in the footer if he entered it in the header.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Shareaholic Configuration [Re: kf6zpl] #257923 12/30/2015 3:46 PM
Joined: Jun 2009
Posts: 51
kf6zpl Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2009
Posts: 51
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...

Re: Shareaholic Configuration [Re: kf6zpl] #257924 12/30/2015 4:24 PM
Joined: Jun 2009
Posts: 51
kf6zpl Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2009
Posts: 51
Shareaholic provides 2 code snippets.

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.


Re: Shareaholic Configuration [Re: kf6zpl] #257925 12/30/2015 4:36 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Whatever!
But normally the snippet goes in the shareaholic field and you enter the api in the topic display options.
As per the direction notes.

I am not clear where you got the footer code requirement.

Last edited by Ruben; 12/30/2015 4:39 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Shareaholic Configuration [Re: Ruben] #257926 12/30/2015 5:55 PM
Joined: Jun 2009
Posts: 51
kf6zpl Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2009
Posts: 51
Originally Posted by Ruben
Whatever!
But normally the snippet goes in the shareaholic field and you enter the api in the topic display options.
As per the direction notes.

I am not clear where you got the footer code requirement.


That came from the Shareaholic website for configuration....

Re: Shareaholic Configuration [Re: kf6zpl] #257927 12/30/2015 6:34 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
1 registered members (may), 68 guests, and 432 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)