定制Moodle登录页面

定制Moodle登录页面,moodle,Moodle,我想定制Moodle登录页面。这就是为什么我想将诸如“Username”这样的关键字更改为“uid”,并将关键字“password”更改为“Userpassword” 我使用的是Moodle版本:2.7,主题:干净 建议我更改这些关键字的一些步骤。您可以通过菜单更改语言字符串 站点管理->语言->语言自定义->选择语言->搜索字符串 在幕后,这将在moodledata/lang/ 例如:moodledata/lang/en_local/moodle.php 这比修改核心代码要好 或者您可以直接创

我想定制Moodle登录页面。这就是为什么我想将诸如“Username”这样的关键字更改为“uid”,并将关键字“password”更改为“Userpassword”

我使用的是Moodle版本:2.7,主题:干净


建议我更改这些关键字的一些步骤。

您可以通过菜单更改语言字符串

站点管理->语言->语言自定义->选择语言->搜索字符串

在幕后,这将在
moodledata/lang/

例如:
moodledata/lang/en_local/moodle.php

这比修改核心代码要好

或者您可以直接创建上面的文件并添加需要修改的字符串,例如

<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Local language pack from http://yourwebsite.com
 *
 * @package    core
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

defined('MOODLE_INTERNAL') || die();

$string['password'] = 'Userpassword';
$string['username'] = 'uid';

您可以通过菜单更改语言字符串

站点管理->语言->语言自定义->选择语言->搜索字符串

在幕后,这将在
moodledata/lang/

例如:
moodledata/lang/en_local/moodle.php

这比修改核心代码要好

或者您可以直接创建上面的文件并添加需要修改的字符串,例如

<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Local language pack from http://yourwebsite.com
 *
 * @package    core
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

defined('MOODLE_INTERNAL') || die();

$string['password'] = 'Userpassword';
$string['username'] = 'uid';

我已添加到文件中,但如何查看更改。我无法查看任何更改。站点管理>开发人员>清除所有缓存。这将加载您所做的更改(如果您通过系统菜单更改语言字符串,则会自动完成)哦,是的,语言字符串将被缓存-尝试转到站点管理->语言设置->并关闭langstringcache,然后重试。请记住在完成后重新打开它。您能帮我解决以下问题吗?我已将我的moodle连接到apache directory studio(ldap服务器)。我的dn为dn:uid=admin,ou=system,我已创建了两个用户。当我尝试使用该用户的uid和用户密码登录时,我会得到“无效登录”错误。该怎么办?else建议我使用其他方法创建新用户我已添加到文件中,但如何查看更改。我无法查看任何更改。Site admin>Developer>清除所有缓存。这将加载您所做的更改(如果您通过系统菜单更改语言字符串,则会自动完成)哦,是的,语言字符串将被缓存-尝试转到站点管理->语言设置->并关闭langstringcache,然后重试。请记住在完成后重新打开它。您能帮我解决以下问题吗?我已将我的moodle连接到apache directory studio(ldap服务器)。我的dn为dn:uid=admin,ou=system,我已创建了两个用户。当我尝试使用该用户的uid和用户密码登录时,我会得到“无效登录”错误。该怎么办?或者建议我一些其他方法来创建新用户