Share butons toolbar

Q&A about the latest versions
Post Reply
User avatar
jare
Posts: 359
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

Sun Sep 25, 2016 10:46 pm

Hy guys,

if there is someone understanding quite good in html/css, please try to help me :)
Well, I'd like to add to my panos some social buttons toolbar like Addthis, Pluso or similar.
The service generate a code:

Code: Select all

<script type="text/javascript">(function() {
  if (window.pluso)if (typeof window.pluso.start == "function") return;
  if (window.ifpluso==undefined) { window.ifpluso = 1;
    var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
    s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
    s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';
    var h=d[g]('body')[0];
    h.appendChild(s);
  }})();</script>
<div class="pluso" data-background="#ebebeb" data-options="big,square,line,horizontal,counter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter,google,moimir,email,print"></div>
Tried to paste it into the html file, in various places but the toolbar is not over the panorama field, it is higher in white background (see attach.)
Also my attempts to integrate it into skin gave no result.
Thanks for any advices!
Attachments
Untitled-1.jpg
Untitled-1.jpg (190 KiB) Viewed 2584 times
Carolyn
Posts: 26
Joined: Fri Jun 07, 2013 10:16 am

Sun Sep 25, 2016 11:26 pm

What if you just apply them as you would items in the controller part of skins? You'd add in the appropriate images and attach them to the hotspots, then have them link to the various URLs?
User avatar
jare
Posts: 359
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

Mon Sep 26, 2016 12:45 pm

No, I need to insert all the block into a panorama.
Carolyn
Posts: 26
Joined: Fri Jun 07, 2013 10:16 am

Mon Sep 26, 2016 6:44 pm

It looks like things are basically working, but you just need one element to be placed over another. Maybe you need to set a z index so the buttons know they should be on top of the pano? (still trying to wrap my own head around coding)
User avatar
jare
Posts: 359
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

Wed Sep 28, 2016 12:34 pm

Still finding any solution...
Think calling the share buttons via skin (like on Youtube) would be more preferable, but again, no way to integrate the code into it :(
Attachments
Untitled-1.jpg
Untitled-1.jpg (61.42 KiB) Viewed 2553 times
User avatar
Hopki
Gnome
Posts: 11140
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Wed Sep 28, 2016 12:48 pm

Hi,
I might be missing something here but why not ad the buttons to the skin with a go to url action?
See the components toolbox.
Regards,
Hopki
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
jare
Posts: 359
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

Wed Sep 28, 2016 1:29 pm

Hi Hopki,
why not ad the buttons to the skin with a go to url action?
Yes, but adding all the buttons manually will take ages :) With no guarantee they all will work correctly.
So I find a way how to integrate ready-to-wear services.
User avatar
Hopki
Gnome
Posts: 11140
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Wed Sep 28, 2016 9:13 pm

:)
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply