https://bugzilla.wikimedia.org/show_bug.cgi?id=21751





--- Comment #1 from Sergey Chernyshev <sergey.chernys...@gmail.com>  2009-12-03 
23:11:49 UTC ---
Yes, I started rudimentary steps towards being able to customize the list, but
as you noted it's far from being very simple.

Adding a provider consists of:

1 adding an icon to CSS sprite image (all icons are in skins/icons/ folder one
by one) and corresponding lines to CSS. The intended way is to add an icon to
skins/icons/ and then use sprite generator to generate a composite image as
well as CSS rules. I used http://spritegen.website-performance.org/

2 add a line to either OpenIDProvider::getLargeProviders() or
OpenIDProvider::getSmallProviders()

That should be it.

One way to move step 2 outside of code without loosing translation part is to
create a couple generic parametrized messages like:

* "Log in using your $1 account" - for those providers that use generic URL
* "Enter your $1 username" - for those providers that require username
substitution

Optimizing CSS for the buttons is possible, especially if we'll generate
button-specific piece of it inline on the page, but needs more thought put into
it.

Regarding having OpenID as default provider, I did it on purpose as picking any
other wouldn't be fair for the default extension. This should probably be easy
to fix though - just use global variable instead of 'openid' selector.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to