Author Topic: Google +1 button in signature?  (Read 1320 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: 7917
  • Rating: +373/-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: 7917
  • Rating: +373/-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: 3820
  • 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
send it

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7917
  • Rating: +373/-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: 3820
  • 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
send it

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

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ 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).
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

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: 427
  • 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 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

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ 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.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3820
  • 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.
send it

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.