First time here? Check out the FAQ!
1

Can support for the Google+ be added?
 

Along the lines of the existing Facebook support and could be used in the same way. Should be optional.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 13 years ago
mether's avatar
1.5k
mether
asked 13 years ago

Comments

see more comments

1 Answer

2

Yes, it's easy. Just change askbot/skins/default/templates/question.html:

            {% if settings.ENABLE_SOCIAL_SHARING %}
            <a class="twitter-share" alt="{% trans %}Share this question on twitter{% endtrans %}"></a>
            <a class="fb-share" alt="{% trans %}Share this question on facebook{% endtrans %}"></a>
            <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
            <g:plusone size="small" count="false"></g:plusone>
            {% endif %}

Note that this adds a javascript file from google. I've added this to my git fork.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
NoahY's avatar
303
NoahY
answered 13 years ago
link

Comments

Very nice, thank you!
Evgeny's avatar Evgeny (13 years ago)
thank you for askbot, it's the least I can do to help :)
NoahY's avatar NoahY (13 years ago)
Is this merged in 0.7.9? I haven't gotten it working
mether's avatar mether (13 years ago)
google +1 works for me, maybe you need to increment media revision - in "UI and skin settings"? It also may be disabled on your site - take a look in the sharing settings.
Evgeny's avatar Evgeny (13 years ago)
I noticed that google+ support has disappeared in this site after the latest update and I can't figure out how to enable this yet.
mether's avatar mether (13 years ago)
see more comments