xoops forums

Zap_English

Quite a regular
Posted on: 3/22 6:11
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 331
Since: 2016/5/24
#1

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

Mage

Core Developer
Posted on: 3/22 6:43
Mage
Mage (Show more)
Core Developer
Posts: 163
Since: 2009/8/2 9
#2

Re: WTF Shareoholic!

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

djsherren

Just popping in
Posted on: 3/22 9:32
djsherren
djsherren (Show more)
Just popping in
Posts: 6
Since: 2010/11/18
#3

Re: WTF Shareoholic!

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.

sabahan

Quite a regular
Posted on: 3/22 9:59
sabahan
sabahan (Show more)
Quite a regular
Posts: 315
Since: 2006/3/4 0
#4

Re: WTF Shareoholic!

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

Zap_English

Quite a regular
Posted on: 3/22 10:32
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 331
Since: 2016/5/24
#5

Re: WTF Shareoholic!

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

geekwright

Quite a regular
Posted on: 3/22 11:32
geekwright
geekwright (Show more)
Quite a regular
Posts: 212
Since: 2010/10/15
#6

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.

Zap_English

Quite a regular
Posted on: 3/22 12:13
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 331
Since: 2016/5/24
#7

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

geekwright

Quite a regular
Posted on: 3/22 12:38
geekwright
geekwright (Show more)
Quite a regular
Posts: 212
Since: 2010/10/15
#8

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.

Bleekk

Theme Designer
Posted on: 4/4 16:04
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 882
Since: 2002/12/14
#9

Re: WTF Shareoholic!

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.

Zap_English

Quite a regular
Posted on: 4/4 17:26
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 331
Since: 2016/5/24
#10

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