Omnimaga

Omnimaga => Site Feedback and Questions => Topic started by: ClrDraw on May 07, 2014, 12:12:35 pm

Title: Google +1 button in signature?
Post by: ClrDraw on May 07, 2014, 12:12:35 pm
I'd like to include the Google +1 button for my website:
Code: [Select]
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-annotation="none" data-href="http://clrdraw.weebly.com/"><>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/platform.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>


But html is blocked in the signature :/  Any way around that?
Title: Re: Google +1 button in signature?
Post by: Sorunome on May 07, 2014, 12:19:29 pm
HTML is blocked for security, else you'd be able to put custom javascript all over the place and easily hack other peoples accounts, and thus there is no way around it, sorry.
Nothing stops you from putting a link to a google plus button in your sig, though ;)
Title: Re: Google +1 button in signature?
Post by: willrandship on May 07, 2014, 12:30:26 pm
You can use URL links on images, so you should be able to use the +1 image directly tied to a link in your sig.
Title: Re: Google +1 button in signature?
Post by: Sorunome on May 07, 2014, 12:31:09 pm
The thing about the buttons those social sites give you is that they all use JavaScript :P
Title: Re: Google +1 button in signature?
Post by: Streetwalrus on May 07, 2014, 01:47:33 pm
And it's pretty obvious this one is using it too. :P A way around it would be to ask the admins to add a bb tag for it. Not sure it's gonna happen though. :P
Title: Re: Google +1 button in signature?
Post by: Sorunome on May 07, 2014, 01:52:10 pm
It probably won't happen.
Title: Re: Google +1 button in signature?
Post by: Streetwalrus on May 07, 2014, 01:53:25 pm
Yeah I was sure about that actually. :P
Title: Re: Google +1 button in signature?
Post by: ClrDraw on May 07, 2014, 06:52:14 pm
Quote
You can use URL links on images, so you should be able to use the +1 image directly tied to a link in your sig.
I like that idea, I'm gonna try it!
Title: Re: Google +1 button in signature?
Post by: DJ Omnimaga on May 07, 2014, 07:02:35 pm
The thing about the buttons those social sites give you is that they all use JavaScript :P
I think Twitter has an URL that allows you to make people instantly follow you if they click an external link. It can be hard to grab, though, and might not be a good idea since it might make some people upset (since they might not like to follow accounts without knowing).
Title: Re: Google +1 button in signature?
Post by: ClrDraw on May 07, 2014, 11:38:56 pm
That's true. I wish the +1 button worked like that though.

I fixed my sig to have the button but it only directs to my website because there isn't a url for the button itself :/
Title: Re: Google +1 button in signature?
Post by: bb010g on May 07, 2014, 11:40:55 pm
You could try something along the lines of [url=javascript:<blah blah blah>]+1 Me![/url].
Title: Re: Google +1 button in signature?
Post by: DJ Omnimaga on May 07, 2014, 11:45:07 pm
I don't think Javascript will work with URL tags, at least not for regular members nor editors.
Title: Re: Google +1 button in signature?
Post by: Streetwalrus on May 08, 2014, 01:07:56 am
You could try something along the lines of [url=javascript:<blah blah blah>]+1 Me![/url].
I'm pretty sure this won't work. Plus the js code is also used to render the button.
Title: Re: Google +1 button in signature?
Post by: ClrDraw on May 08, 2014, 09:33:11 am
I got it with just a url:
(http://img.ourl.ca/%2B1.png) (https://plus.google.com/share?url=http%3A%2F%2Fclrdraw.weebly.com)

Code: [Select]
[url=https://plus.google.com/share?url=http%3A%2F%2Fclrdraw.weebly.com][img]http://img.ourl.ca/%2B1.png[/img][/url]
If anyone else is interested in this, just replace "clrdraw.weebly.com" with your url and "http://img.ourl.ca/%2B1.png" with your image.