Author Topic: Google +1 button in signature?  (Read 6871 times)

0 Members and 1 Guest are viewing this topic.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Google +1 button in signature?
« 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?
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Google +1 button in signature?
« Reply #1 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 ;)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Google +1 button in signature?
« Reply #2 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.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Google +1 button in signature?
« Reply #3 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

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Google +1 button in signature?
« Reply #4 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

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Google +1 button in signature?
« Reply #5 on: May 07, 2014, 01:52:10 pm »
It probably won't happen.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Google +1 button in signature?
« Reply #6 on: May 07, 2014, 01:53:25 pm »
Yeah I was sure about that actually. :P

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Google +1 button in signature?
« Reply #7 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!
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Google +1 button in signature?
« Reply #8 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).

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Google +1 button in signature?
« Reply #9 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 :/
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Google +1 button in signature?
« Reply #10 on: May 07, 2014, 11:40:55 pm »
You could try something along the lines of [url=javascript:<blah blah blah>]+1 Me![/url].
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Google +1 button in signature?
« Reply #11 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.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Google +1 button in signature?
« Reply #12 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.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Google +1 button in signature?
« Reply #13 on: May 08, 2014, 09:33:11 am »
I got it with just a url:


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.
« Last Edit: May 08, 2014, 11:50:30 am by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.