On my front page the provider icons don't show. Instead of images only the squares are displayed, but everything else works. Screenshot attached.

I checked the image url, it's a bit strange:

background: white url(/sites/all/libraries/openid-selector/images/,sites/all/libraries/openid-selector/images/openid-providers-en.png);

I suspect that it may be happening because I have the login block in the custom pane on the front page.
But I wonder why on the front page the squares are large, but on other pages the icons are small? I'm using the same login block.
~~~~~~~~~~~~~~~~~

HobbyBlob.com

Showcase your Hobby to the whole world!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexbk66-’s picture

[HACK]

I put explicitly in openid-jquery.js (function getBoxHTML):

this.img_path = '/sites/all/libraries/openid-selector/images/';

And it seems to fix the problem, but sure it is a temporary hack.
I wonder why the path is doubled in the first place (and only on the front page)?
And the site name on the button on the front page is doubled too: "HobbyBlob,HobbyBlob"
~~~~~~~~~~~~~~~~~

HobbyBlob.com

Showcase your Hobby to the whole world!

andriy_gerasika’s picture

Please View Page Source of your website and check javascript code:

 "openid_selector": { "img_path": [ "sites/all/libraries/openid-selector/images/", "sites/all/libraries/openid-selector/images/" ], "form_id": [ "user-login-form", "user-login-form" ], "block_width": [ 5, 5 ] },

compare this to excerpt from http://www.gerixsoft.com/user/login:

"openid_selector": { "img_path": "sites/all/libraries/openid-selector/images/", "form_id": "user-login" }

Notice your website contains duplicate Drupal.settings.openid_selector.img_path values encoded as JSON array, which is root of problems. This duplication happens only for OpenID Selector module settings. I suspect this happens because form_alter code is invoked twice for OpenID Selector.

Please undo all your local modifications to OpenID Selector code, reinstall it and recheck View Page Source -- Drupal.settings Javascript code should be as in 2nd excerpt.

andriy_gerasika’s picture

Status: Active » Postponed (maintainer needs more info)
alexbk66-’s picture

Thank you andriy.

As I'm not really a Drupal expert, can you please elaborate on"recheck View Page Source -- Drupal.settings Javascript code should be as in 2nd excerpt"?

On my user/login page it works fine, it's just a problem on the front page.

andriy_gerasika’s picture

Status: Postponed (maintainer needs more info) » Needs work

hold on, I guess it is side effect of Login Tobogann module you are using
I must retest if OpenID Selector is working w/ Login Tobogann module

alexbk66-’s picture

BTW, why does it show large icons on the front page, but small icons on all other pages (which look better anyway)?
HobbyBlob.com

andriy_gerasika’s picture

Status: Needs work » Postponed (maintainer needs more info)

it is not LoginToboggan, but Panels
it shows large icons because hook form_alter is invoked twice for OpenID Selector -- I suspect this is because of Panels module

Can you please export the Panel you are using as user login block -- I am not Panels user and cannot recreate necessary settings.

alexbk66-’s picture

Thanks andriy,

I'm not an expert in Drupal, can you please explain what you mean by "export the Panel you are using as user login block"?

wastrilith2k’s picture

It looks like the issue is that the css for the openid-selector library is not being imported.

James

wastrilith2k’s picture

Actually, in my case it looks to be theme based. I'm using OpenAtrium with the default Ginko theme and the reset.css seems to be overriding the library's css.

wastrilith2k’s picture

Ok, here is what I found regarding OpenAtrium:

The Tao template theme does it in it's template file by removing certain CSS files and openid.css is one of these.

You can either use the shadow skin that comes with the openid-selector library or go into the library's css folder and copy the openid.css file to something like openid-working.css and then select the skin named working in your Administration section for OpenID Selector.

James

alexbk66-’s picture

Thanks wastrilith2k, I'm using Drupal Commons, aquia_commons theme.
Can you please explain how exactly I can "use the shadow skin that comes with the openid-selector library"?
If you reckon the theme is causing the problem, I will also open the issue on Drupal Commons forum.
HobbyBlob.com

andriy_gerasika’s picture

disable OpenID Selector module -- as soon as you will disable it, you will see that it is actually login form embedded in panel, looking as if it is user login block.
after that fix your website programming to embedd user login block (not form) inside the panel
once done (user login block is embedded, not form), enable OpenID Selector back

let me know how it goes.

konrad1811’s picture

I just installed everything Like readme.txt says but got the same - no provider icons :/

Readme says to check modules unziped files but they are ok...

After reading above replies I dont really understand how to repair it...

Reinstallation does not make sense for me - just installed it properly so what resintallation could do?

Any ideas?

ps
I dont use LoginToboggan module

wastrilith2k’s picture

Are you using a reset.css?

konrad1811’s picture

Well I dont know if I'm using "reset.css".

Is there a problem with css documented in some manual with I missed?

I use SiImpleFolio theme...

However can you tell me where can I found those isons? I counld find the directory with such...

andriy_gerasika’s picture

Status: Postponed (maintainer needs more info) » Fixed

no longer valid, since you are already using loginza module

andriy_gerasika’s picture

Status: Fixed » Postponed
cj-a-min’s picture

Same issue, but it "only" happens on the login page /user

Page Source:

style="background: url("/sites/all/libraries/openid-selector/images/,sites/all/libraries/openid-selector/images/openid-providers-en.png")

I only have essential modules installed, admin_menu, cck, computed_field, filefield, filefield_paths, imageapi, imagecache, imagefield, libraries, link, location, module_filter, openid_selector, pathauto, taxonomy_manager, and token.

Does the dev release fix this problem?

xurizaemon’s picture

Category: bug » support
Status: Postponed » Closed (won't fix)

No update in >1yr, closing for lack of activity.