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.

Evgeny's avatar
13.2k
Evgeny
updated 2011-07-21 15:20:22 -0500
mether's avatar
1.5k
mether
asked 2011-07-14 22:57:48 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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.

NoahY's avatar
303
NoahY
answered 2011-07-21 06:51:08 -0500
edit flag offensive 0 remove flag delete link

Comments

Very nice, thank you!
Evgeny's avatar Evgeny (2011-07-21 15:04:51 -0500) edit
thank you for askbot, it's the least I can do to help :)
NoahY's avatar NoahY (2011-07-23 08:26:20 -0500) edit
Is this merged in 0.7.9? I haven't gotten it working
mether's avatar mether (2011-08-01 07:12:52 -0500) edit
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 (2011-08-01 08:33:37 -0500) edit
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 (2011-08-05 03:47:37 -0500) edit
add a comment see more comments