Ask Your Question
1

Can support for the Google+ be added?

asked 2011-07-14 22:57:48 -0500

mether gravatar image

updated 2011-07-21 15:20:22 -0500

Evgeny gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-07-21 06:51:08 -0500

NoahY gravatar image

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.

edit flag offensive delete link more

Comments

Very nice, thank you!
Evgeny gravatar imageEvgeny ( 2011-07-21 15:04:51 -0500 )edit
thank you for askbot, it's the least I can do to help :)
NoahY gravatar imageNoahY ( 2011-07-23 08:26:20 -0500 )edit
Is this merged in 0.7.9? I haven't gotten it working
mether gravatar imagemether ( 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 gravatar imageEvgeny ( 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 gravatar imagemether ( 2011-08-05 03:47:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-07-14 22:57:48 -0500

Seen: 166 times

Last updated: Jul 21 '11