- Code: Select all
<link-group>
<link type="template" href="subsilver2.xml" lang="en">Subsilver2</link>
<link type="contrib" href="contrib/contrib_ABBC3_v1012.xml" lang="en">Contributions</link>
</link-group>
the template is not displayed, but contributions yes, and you can click on (Install this MOD)
The thing is ( I think ) this should not be displayed because the mod is not installed yet, but if it's right and you click on the link you will got an error :
( note the "ontrib" without a "c" )Cannot locate File: ./../store/mods/ontrib/contrib/contrib_ABBC3_v1012.xml
In this part there are another error, the link is wrong, there are no parent_id :
- Code: Select all
http://YOUR_BOARD_ADDRESS/adm/index.php?i=mods&sid=f568bf313748905af4000b6eace6e3ab&mode=frontend&action=install&parent=&mod_path=contrib%2Fcontrib_ABBC3_v1012.xml
My first impression is that the Available changes should not be displayed, and I think the solution for it is :
in root/includes/acp/acp_mods.php change this :
- Code: Select all
function handle_contrib(&$children)
{
global $template, $parent_id, $phpbb_root_path;
if (isset($children['contrib']) && sizeof($children['contrib']))
with this :
- Code: Select all
function handle_contrib(&$children)
{
global $template, $parent_id, $phpbb_root_path;
if ( !$parent_id )
{
return;
}
if (isset($children['contrib']) && sizeof($children['contrib']))