Yes, mobile currently provides its own custom login form and it is likely this is interfering with what you are trying to do.
We'd like to move away from this. Historically it was because the original login form was simply not suitable for mobile, now it is a case of upstreaming changes we have made for the mobile site into the core (notably the message that appears at the top of the login page whilst logged out - https://en.m.wikipedia.org/wiki/Special:UserLogin?returnto=Special:Watchlist ("A watchlist helps you bookmark pages and keep track of changes to them. Log in to see it.")
Any help with this upstreaming our code and removing the need for this hook would be much appreciated but it is not a priority of ours right now.
On Wed, Apr 2, 2014 at 8:00 PM, 積丹尼 Dan Jacobson jidanni@jidanni.org wrote:
I would like to have my
function JidanniLoginFormMessage(&$template){global $wgSitename;$template->set( 'header', "(需帳號來編輯者,請聯絡<a href=\"/index.php?title=User:WikiSysop\"><strong>${wgSitename}</strong>管理員</a>。)" ); return true;} $wgHooks['UserLoginForm'][]='JidanniLoginFormMessage';
also work on mobile.
One notices there is $wgHooks['UserLoginForm'][] = 'MobileFrontendHooks::onUserLoginForm';
but I am afraid I need someone to tell me how to proceed.
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l