查看積分策略說明發表回覆
Discuz! 代碼
提示插入
直接插入
說明訊息

插入粗體文本 插入斜體文本 插入下劃線 置中對齊 插入超級連結 插入信件位址 插入圖像 插入 flash 插入代碼 插入引言 插入列表
刪除線 直線分隔線 虛線分隔線
    
添加文字底框
內容 [字數檢查]:

表情符號

更多 Smilies
字型大小 |||
溫馨提示:本區開放遊客瀏覽。


文章關鍵字 : [功能說明]
(關鍵字可加強搜索準確性, 如關鍵字多於一組, 請以 , 作分隔, e.g. : 阿笨,shiuh,第一笨)

 關閉 URL 識別 | html 禁用
 關閉 表情符號 | 表情符號 可用
 關閉 Discuz! 代碼 | Discuz! 代碼 可用
使用個人簽名
接收新回覆信件通知
推薦放檔網絡空間

檔案(Torent, zip等)
  1. freedl
  2. multiupload
  3. btghost
  4. 便當狗
  5. mediafire
  6. pillowangel
圖片(JPG, GIF等)
  1. hotimg
  2. tinypic
  3. mousems2
  4. imageshack
  5. imm.io
>>>歡迎推薦好用空間


最新10篇文章回顧
Jonson

 發表於 2006-5-24 04:13 AM


引用:
Vic寫到:
好像是在makeclickable內, 少了最上的

        // pad it with a space so we can match things at the start of the 1st line.
        $ret = ' ' . $text;
不過也是估計~ anyway....work就好了~


問題是出在那邊沒錯。

        $ret = ' ' . $text;
這行指令是把呼叫自訂函數的參數前加個空白字元再指定給 ret 變數,
少了這個動作話,一開始 ret 變數就是空字串,而不是傳進函數的參數


Vic

 發表於 2006-5-23 08:57 PM

好像是在makeclickable內, 少了最上的

        // pad it with a space so we can match things at the start of the 1st line.
        $ret = ' ' . $text;
不過也是估計~ anyway....work就好了~


天驢風雲

 發表於 2006-5-23 08:37 PM

熊小可以了:icons8
想請問剛剛我哪裡打錯


Vic

 發表於 2006-5-23 08:15 PM

試用附件的.

如果還是不行, 請改回

$message = nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));
return make_clickable($message);
==>

return $htmlon || $allowhtml ? make_clickable($message) : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), make_clickable($message)));


Vic

 發表於 2006-5-23 07:01 PM

天驢將你整個 include/discuzcode.php改成 discuzcode.txt再上傳上來看看吧.


天驢風雲

 發表於 2006-5-23 06:37 PM

內容顯示還是空白
如下


對不起在熊小忙著更新論壇
還來打擾
辛苦熊小了

[天驢風雲 在 2006-5-23 08:07 PM 作了最後編輯]


Vic

 發表於 2006-5-23 02:57 PM



return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));
==>

return $htmlon || $allowhtml ? make_clickable($message) : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), make_clickable($message)));


不過在我自己測試中, 以上的方法會將文字中的space與空行remove, 所以我改成

$message = nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));
return make_clickable($message);
sorry來晚了~ @"@


天驢風雲

 發表於 2006-5-8 11:42 PM

用上面的方法修改後
內容會無法顯示
希望熊小能在貼一次DZ4.1的語法

[天驢風雲 在 2006-5-23 02:47 PM 作了最後編輯]


Vic

 發表於 2006-5-8 11:29 AM

sorry, 現在才看到...查看一下....在4.1, postify改成了 discuzcode  


天驢風雲

 發表於 2006-4-26 11:42 PM

再請問Discuz4.1上的discuzcode.func.php
找不到postify function
那要怎麼改


本主題回覆較多,請 點擊這裡 檢閱。



所在時區為 GMT+8, 現在時間是 2024-5-6 11:18 AM
清除 Cookies - 連絡我們 - TWed2k © 2001-2046 - 純文字版 - 說明
Discuz! 0.1 | Processed in 0.018016 second(s), 6 queries , Qzip disabled