Ask Your Question
1

Can support for the Google+ be added?

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

mether gravatar image mether flag of India
1312 33 18 47
http://fedoraproject.org/

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

Evgeny gravatar image Evgeny flag of Chile
11329 50 84 183
http://askbot.org/

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

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
2

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

NoahY gravatar image NoahY
313 4 2 14
https://github.com/NoahY/...

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.

link publish delete flag offensive edit

Comments

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

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 73 times

Last updated: Jul 21 '11