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.
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
Mainly I am looking for a way to tell users attempting to create accounts to "See Ms. Nebbercracker in room B344 if you need an account."
As I have turned off create account permissions, there will be no create account link (once https://bugzilla.wikimedia.org/show_bug.cgi?id=63456 is fixed).
So I need to a way to put that message on the login page, like I do for desktop.
Maybe there could be a hook added to UserLoginAndCreateTemplate.php to allow one to tamper with mobile-frontend-generic-login mobile-frontend-generic-login-action
You can edit MediaWiki:mobile-frontend-generic-login to override the message...
On Thu, Apr 3, 2014 at 6:44 PM, 積丹尼 Dan Jacobson jidanni@jidanni.org wrote:
Maybe there could be a hook added to UserLoginAndCreateTemplate.php to allow one to tamper with mobile-frontend-generic-login mobile-frontend-generic-login-action