2013/03/26

[其他] Discuz! X2.5增加google calender 頁面

1. 編輯./misc.php

$modarray = array('seccode', 'secqaa', 'initsys', 'invite', 'faq', 'report', 'swfupload', 'manyou', 'stat', 'ranklist', 'buyinvitecode', '    tag', 'diyhelp', 'mobile', 'patch', 'getatuser', 'imgcropper');
改成
$modarray = array('seccode', 'secqaa', 'initsys', 'invite', 'faq', 'report', 'swfupload', 'manyou', 'stat', 'ranklist', 'buyinvitecode', '    tag', 'diyhelp', 'mobile', 'patch', 'getatuser', 'imgcropper', 'calender');

2. 增加一個檔案./source/module/misc/misc_calender.php
內容如下
<?php

if(!defined('IN_DISCUZ')) {
        exit('Access Denied');
}

include template('common/calender');

?>

3. 增加一個檔案./template/default/common/calender.htm
內容如下(檔案內容參考同目錄下的faq.htm)
<!--{subtemplate common/header}-->

<div id="pt" class="bm cl">
        <div class="z">
                <a href="./" class="nvhm" title="{lang homepage}">$_G['setting']['bbname']</a> <em>&rsaquo;</em>
                <a href="misc.php?mod=calender">calender</a>$navigation
        </div>
</div>

<iframe src="{URL}" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>

<!--{subtemplate common/footer}-->


4. 最後編輯後台的界面中的導航設置,增加一個導航"Calender",在鍊節的地方放上misc.php?mod=calender

沒有留言:

張貼留言