Title1

Title2

Title3

2-1 xoops_version.php

一、模組基本資訊

  1. XOOPS的模組目錄下一定有 xoops_version.php 設定檔,否則就不是標準模組。
  2. $modversion['version'] 版本號寫法:1.0、2.3...均可,但1.0.1需寫成 1.01。
  3. $modversion['module_status'] 模組狀態可以是 Alpha、Beta、RC、Release
  4. $modversion['min_tadtools']是我們自己新增的設定,若是模組一定要搭配某個版本以上的 tadtools 才需要有,建議可填上開發時所下載的版本
  5. 繁體:language/tchinese_utf8/modinfo.php  
  6. 英文:language/english/modinfo.php
//---模組基本資訊---//
$modversion['name']        = _MI_XXX_NAME;
$modversion['version']     = '1.00';
$modversion['description'] = _MI_XXX_DES;
$modversion['author']      = _MI_XXX_AUTHOR;
$modversion['credits']     = _MI_XXX_CREDITS;
$modversion['help']        = 'page=help';
$modversion['license']     = _MI_XXX_LICENSE;
$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/';
$modversion['image']       = 'images/logo.png';
$modversion['dirname']     = basename(dirname(__FILE__));

//---模組狀態資訊---//
$modversion['release_date']        = '2015/03/21';
$modversion['module_website_url']  = 'http://模組官網網址';
$modversion['module_website_name'] = '模組官網名稱';
$modversion['module_status']       = 'release';
$modversion['author_website_url']  = 'http://作者網站網址';
$modversion['author_website_name'] = '作者網站名稱';
$modversion['min_php']             = 5.2;
$modversion['min_xoops']           = '2.5';
$modversion['min_tadtools']        = '1.20';

//---paypal資訊---//
$modversion['paypal']                  = array();
$modversion['paypal']['business']      = '作者@的Email';
$modversion['paypal']['item_name']     = 'Donation : ' . '贊助對象名稱';
$modversion['paypal']['amount']        = 0;
$modversion['paypal']['currency_code'] = 'USD';

二、後台使用系統選單

$modversion['system_menu'] = 1;

三、