Previous Thread
Next Thread
Print Thread
Hop To
#257899 12/29/2015 3:36 PM
Joined: Jun 2009
Posts: 51
K
Journeyman
Journeyman
K Offline
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 3:38 PM.
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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 3:52 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
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.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Humm!


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Sorry, is that considered to be a double post?
Delete if you like. smile

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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").
Attachments
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Jun 2009
Posts: 51
K
Journeyman
Journeyman
K Offline
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...

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Jun 2009
Posts: 51
K
Journeyman
Journeyman
K Offline
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....

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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 4:20 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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
Joined: Jun 2009
Posts: 51
K
Journeyman
Journeyman
K Offline
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...

Joined: Jun 2009
Posts: 51
K
Journeyman
Journeyman
K Offline
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.


Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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 5:39 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2009
Posts: 51
K
Journeyman
Journeyman
K Offline
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....

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)