1
Zap_English
WTF Shareoholic!

Three of my websites are using the xBootstrap theme which comes with the Shareoholic social media buttons built in to the theme. I would imagine that they are also in any theme that's a variation of xBootstrap.

This morning, on 4 different computers, I started getting pop up banner advertising. 2 inches high and full width, at the bottom of the screen. WTF??? Did a virus get onto my network????

I moved my mouse over the banner and a little corner popped up. "Powered by Shareoholic". And that's when I realized that the banner was only coming up on MY sites, and not on any others.

This is something xoops definitely needs to deal with. Every xoops website in the world built on xBootstrap is now faced with this problem

2
Mage
Re: WTF Shareoholic!
  • 2017/3/22 10:43

  • Mage

  • Core Developer

  • Posts: 208

  • Since: 2009/8/2 1


I noticed the same problem locally with xbootstrap and xoops 2.5.9! It's a big problem!

3
djsherren
Re: WTF Shareoholic!
  • 2017/3/22 13:32

  • djsherren

  • Just popping in

  • Posts: 11

  • Since: 2010/11/18


I have it here on my local server as well as test site on Hostgator. Occurs in 2.5.7, 2.5.8 and 2.5.9. Its seen on both xboostrap and a theme that started as xbootstrap and was edited for our own purposes.

I have disabled my sites for now as I have know idea what this is doing besides popping up an annoying advert.

Hope there is an easy solution.

4
sabahan
Re: WTF Shareoholic!
  • 2017/3/22 13:59

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


remove the line

<{includeq file="$theme_name/tpl/shareaholic-script.tpl"}>

from your xbootstrap theme or themes based on xbootstrap
in

themes/xbootstrap/theme.tpl
themes/xbootstrap/modules/system/system_siteclosed.tpl

i also deleted the themes/xbootstrap/tpl/shareaholic-script.tpl

** the extension might be tpl or html depending on your xoops version/xbootstrap version

5
Zap_English
Re: WTF Shareoholic!

And what will that do to the shareoholic social media sharing buttons?

6
geekwright
Re: WTF Shareoholic!

Shareaholic is the service used by xBootstrap to provide the social links for sharing content. You see those when viewing an item in Publisher, as an example.

Shareaholic has added new options and the default settings are resulting in that pop up ad section.

You can remove the Shareaholic code as sabahan mentions above. That will kill the ads and the social links.

If you want to preserve the social links, you can create an account and register your site on shareaholic.com to take control of the settings.

Once you have registered your site, edit themes/xbootstrap/tpl/shareaholic-script.tpl

Find the line reads:
var apikey = '4b44261173043ae4c20b8aef56d4521d';

Change that 4b44261173043ae4c20b8aef56d4521d to the site id Shareaholic generated for your site.

You can then change the settings for the site in the Site Tools Dashboard (i.e. turn off Anchor Overlay Ads.)

You can also customize the social links by creating an Inline App. To implement these changes, edit the template you want to customize (i.e. in themes/xbootstrap/modules/publisher/publisher_item.tpl). Locate the div with these attributes :
class='shareaholic-canvas' data-app='share_buttons' data-app-id='482507'

Replace that line with the code snippet generated by Shareaholic for your inline app.

The current plan for the next release will change this feature in xBootstrap to require explicit opt-in, requiring the admin to supply the site id.

7
Zap_English
Re: WTF Shareoholic!

OK, I registered on shareoholic and replaced the api code

Works fine but the buttons are no longer centered and they're a different style

8
geekwright
Re: WTF Shareoholic!

You will need to set up an "Inline App"

Down at the bottom of the Site Tools Dashboard there is a drop down labeled "Add Inline App Location" - select the "Share Buttons" option. You can control what services are included, styles, alignment, etc.

You may have to edit the individual templates to add the new data-app-id to see the results. There is some default behavior going on there, but I don't know the rules for sure.

9
Bleekk
Re: WTF Shareoholic!
  • 2017/4/4 20:04

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


I installed fresh xoops with bootstrap and this is a horror! this big ads are showing and moving right on the frontpage.
So if i want to use xbootstrap with social icons I also need to register on their website?
We need to delete this script immediately.

10
Zap_English
Re: WTF Shareoholic!

I registered. It took a couple of minutes. You can get rid of those adds, use different style buttons, etc

The alternative is to get the guy that created xBootstrap to go in and turn off the adds

Login

Who's Online

323 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits