Ask Your Question
1

hide OpenID mentions when LDAP is activated

asked 2011-05-12 10:00:56 -0500

Samuel gravatar image Samuel flag of France
413 16 6 21

updated 2011-05-12 13:11:58 -0500

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

I think that LDAP is used only into companies. In my case that I imagine to be the most frequent one in companies, if LDAP is used there is no other provider activated.

So I would like to remove the panel on the right explaining why OpenID is good for me.

I think that I can do it myself by creating a custom skin and updating the file templates/authopenid/signin.html but in my opinion it should be done natively if ldap is activated.

delete close flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-05-12 13:11:20 -0500

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

done in 0.6.85 those messages are automatically hidden when there are no login "buttons".

link publish delete flag offensive edit
1

answered 2011-06-01 10:08:24 -0500

Samuel gravatar image Samuel flag of France
413 16 6 21

The message displayed @ logout had been missed. Here is the patch :

diff --git a/askbot/skins/default/templates/logout.html b/askbot/skins/default/templates/logout.html
index d9ab69f..2cdf495 100644
--- a/askbot/skins/default/templates/logout.html
+++ b/askbot/skins/default/templates/logout.html
@@ -3,13 +3,15 @@
 {% block title %}{% spaceless %}{% trans %}Logout{% endtrans %}{% endspaceless %}{% endblock %}
 {% block content %}
 <h1>{% trans %}You have successfully logged out{% endtrans %}</h1>
-<p>{% trans %}However, you still may be logged in to your OpenID provider. Please logout of your provider if you wish to do so.{% endtrans %}</p>
-{% if settings.FACEBOOK_KEY and settings.FACEBOOK_SECRET %}
-    <div id="fb-root"></div>
-    <script src="http://connect.facebook.net/en_US/all.js"></script>
-    <script>
-        FB.init({appId: '{{settings.FACEBOOK_KEY}}', status: true, cookie: true, xfbml: true});
-    </script>
+{% if have_buttons %}
+    <p>{% trans %}However, you still may be logged in to your OpenID provider. Please logout of your provider if you wish to do so.{% endtrans %}</p>
+    {% if settings.FACEBOOK_KEY and settings.FACEBOOK_SECRET %}
+        <div id="fb-root"></div>
+        <script src="http://connect.facebook.net/en_US/all.js"></script>
+        <script>
+            FB.init({appId: '{{settings.FACEBOOK_KEY}}', status: true, cookie: true, xfbml: true});
+        </script>
+    {% endif %}
 {% endif %}
 {% endblock %}
 {% block endjs %}
link publish delete flag offensive edit

Comments

You still need to initialize the "have_buttons" variable :), in your case it will be always false. Evgeny ( 2011-06-02 01:13:23 -0500 )edit
pushed this to the repo, with some extra refactoring. Evgeny ( 2011-06-02 02:07:21 -0500 )edit
I have reverted my local update and integrate your last commits from the github:master. It works fine. Thanks. Samuel ( 2011-06-03 09:17:57 -0500 )edit
0

answered 2011-05-13 04:05:02 -0500

Samuel gravatar image Samuel flag of France
413 16 6 21

thanks. verified.

link publish delete flag offensive 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-05-12 10:00:56 -0500

Seen: 107 times

Last updated: Jun 01 '11