AL8 Forum
   登錄註冊幫助


標題: 買賣文章按鈕 新增
 jackiechin
 0046537
Rank: 1

頭銜: Newbie

帖子: 1

精華: 0

積分: 30 點

現金: 100 元

存款: 0 元

閱讀權限: 10

註冊: 2006-6-12

狀態: 離線
 
發表於 2006-6-13 13:55  資料  個人空間  短消息  加為好友 
買賣文章按鈕 新增

上傳附件放到 images/default/ 中

編輯 include/bbcode.js  查找最下方


function setfocus() {
document.input.message.focus();
}


在之前 插入以下代碼
function sellmoney() {
        if (helpmode){
                alert(sellmoney_help);
        } else if (document.selection && document.selection.type == "Text") {
                var range = document.selection.createRange();
                range.text = "" + range.text + "";
        } else if (advmode) {
                AddTxt="\r\r";
                AddText(AddTxt);
        } else {   
                txt=prompt(sellmoney_normal,text_input);     
                if(txt!=null) {         
                        AddTxt="\r\r"+txt;
                        AddText(AddTxt);
                        AddText("\r");
                }               
        }
}


編輯templates\default\post_bbinsert.htm

查找
var image_help = "{lang post_discuzcode_image}\n\n{lang post_discuzcode_image_comment}";



之前加上
var sellmoney_help = "設定販賣文章價格";
var sellmoney_normal = "輸入販賣文章內容 或是由編輯器另外編輯";


查找
script:list()"><img src="{IMGDIR}/bb_list.gif" border="0" width="23" height="22" alt="{lang post_discuzcode_list}"></a>


之後加上
<a href="javascript:sellmoney()"><img src="{IMGDIR}/bb_sellmoney.gif" border="0" width="23" height="22" alt="{lang post_discuzcode_sellmoney}"></a>


編輯 templates\default\templates.lang.php

查找
'post_discuzcode_list_normal_input' => '請輸入列表項目內容,如果留空表示項目結束。',


後面加上
'post_discuzcode_sellmoney' => '插入文章販賣標籤-預設10元可自行更改',

完工



 附件: 您所在的用戶組無法下載或查看附件



 AL8 Forum © All rights reserved.
頂部

聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2008-11-23 08:52
Processed in 0.043885 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.