Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何向moodle配置文件页面中显示的导航选项卡添加标记_Php_Moodle - Fatal编程技术网

Php 如何向moodle配置文件页面中显示的导航选项卡添加标记

Php 如何向moodle配置文件页面中显示的导航选项卡添加标记,php,moodle,Php,Moodle,我想在配置文件页面的导航中添加一个新选项卡。我希望通过使用moodle块或模块来实现这一点。请给我一个提示。你必须破解/user/tabs.php(Moodle 1.9)中的代码 只需在$toprow数组中添加一个新元素: $toprow[] = new tabobject('extra', 'http://a_link', 'Extra'); 其中,我为新选项卡指定id、链接和标签。显然,您必须添加代码来管理选项卡的内容(可能使用$filterselect)。在上面的文件中,所有其他选项卡都

我想在配置文件页面的导航中添加一个新选项卡。我希望通过使用moodle块或模块来实现这一点。请给我一个提示。

你必须破解
/user/tabs.php
(Moodle 1.9)中的代码

只需在
$toprow
数组中添加一个新元素:

$toprow[] = new tabobject('extra', 'http://a_link', 'Extra');
其中,我为新选项卡指定id、链接和标签。显然,您必须添加代码来管理选项卡的内容(可能使用
$filterselect
)。在上面的文件中,所有其他选项卡都是这样做的,所以只需将其用作模板即可

有关tabobject构造函数的参数,请参阅
/htdocs/lib/weblib.php


真相就在代码中。

你必须在
/user/tabs.php
(Moodle 1.9)中破解代码

只需在
$toprow
数组中添加一个新元素:

$toprow[] = new tabobject('extra', 'http://a_link', 'Extra');
其中,我为新选项卡指定id、链接和标签。显然,您必须添加代码来管理选项卡的内容(可能使用
$filterselect
)。在上面的文件中,所有其他选项卡都是这样做的,所以只需将其用作模板即可

有关tabobject构造函数的参数,请参阅
/htdocs/lib/weblib.php

真相就在密码里