Re: Communauté: correction et traduction module | Titre du sujet : Re: Communauté: correction et traduction module par xpected sur 01/07/2010 11:21:59
Hi,
Virtual mating is working fine for me. I can chose a male and a female without problems and the calculation is working fine.
For breeders/owners right now is everything empty. I'm not sure right now I'll use these fields
For the admin side of the module, I'm not sure I understood everything as my files are not as you told:
animal/admin/index.php:
<?php
// -------------------------------------------------------------------------
// pedigree
// Copyright 2004, James Cotton
// http://www.dobermannvereniging.nl
// Template
// Copyright 2004 Thomas Hill
// <a href="http://www.worldware.com">worldware.com</a>
// -------------------------------------------------------------------------
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program 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 this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
require_once '../../../include/cp_header.php';
if ( file_exists("../language/".$xoopsConfig['language']."/modinfo.php") ) {
include_once "../language/".$xoopsConfig['language']."/modinfo.php";
} else {
include_once "../language/english/modinfo.php";
}
require_once(XOOPS_ROOT_PATH ."/modules/animal/admin/menu.php");
?>
no //at the end of the file and for menu.php:
<?php
// -------------------------------------------------------------------------
// pedigree
// Copyright 2004, James Cotton
// http://www.dobermannvereniging.nl
// Template
// Copyright 2004 Thomas Hill
// <a href="http://www.worldware.com">worldware.com</a>
// -------------------------------------------------------------------------
// ------------------------------------------------------------------------- //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program 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 this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------- //
//xoops_cp_header();
//echo "<h4>Pedigree Administration</h4><table width='100%' border='0' cellspacing='1' class='outer'>";
//echo "<tr><td class='odd'> - <b><a href='database_table.php?op=sql'>SQL actions</a></b>";
//echo "<br /><br />";
//echo " - <b><a href='database_table.php?op=main'>Edit entry</a></b>";
//echo "<br /><br />";
//echo " - <b><a href='database_table.php?op=add'>Add entry</a></b>";
//echo "<br /><br />";
//echo "- <b><a href='".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid') ."'>Preferences</a></b></td></tr></table>";
// $adminmenu[0]['link'] = "admin/database_table.php?op=sql";
// $adminmenu[0]['title'] = "SQL Actions";
// $adminmenu[1]['link'] = "admin/colors.php";
// $adminmenu[1]['title'] = "Create colours";
?>
there is everything "commented"!?
|
|