1 頁 (共 1 頁)

[問題] 買賣文章的[intro]不能用!![感謝竹貓已經解決囉!!]

發表於 : 2005-02-04 10:49
tsairandy
論壇版本:2.0.11
問題外掛:Advanced Hide Post 1.0.1
##############################################################
## MOD Title: Advanced Hide Post
## MOD Author: shi < shi@roc.as-hosting-pro.com > (Peng Shi) http://roc.myz.info
## MOD Description: This provide several methods to hide a post. User must pay,
## reply, have enough posts or cash to read it.
## MOD Version: 1.0.1 Beta
##
## Installation Level: Intermediate
## Installation Time: ~30 minutes.
## Files To Edit: 21
## ##############################################################
外掛下載連結:
http://www.heyshowforum.com/temp/advanc ... .1b_en.zip


裝完買賣文章外掛,一切都很好,唯讀[intro]標籤不能使用,請看看下圖,
在編輯文章的時候都很正常,按下標籤都可以正常在文章裡加上
圖檔


但是送出文章後卻變成這樣\r
圖檔



標籤不但無作用,而且後面都有一堆亂碼,有誰知道怎麼回事?
我看了貴站的BBcode教學,但是還是不懂.........

我把我修改過跟BBcode相關的檔案貼在這裡,直接按就可以看
bbcode.php
bbcode.tpl
posting_body.tpl
posting.php

這是Advanced Hide Post 1.0.1MOD的安裝文件\r
按下直接觀看

發表於 : 2005-02-04 11:13
Kill
請檢查一下有沒有改錯地方\r
我之前就是改錯地方\r
也變成這樣

發表於 : 2005-02-05 18:00
tsairandy
那這樣是哪個檔改錯

發表於 : 2005-02-05 18:04
StickyKid
tsairandy 寫:那這樣是哪個檔改錯
全部都檢查才會知道
因為沒有顯示錯誤訊息...
不過我猜大概是 bbcode.php或是viewtopic.php.. 吧

發表於 : 2005-02-05 18:09
tom82612
bbcode.php

發表於 : 2005-02-06 02:16
tsairandy
請問除了這四個檔案還有其他檔案跟bbcode有關嗎?
我已經反反覆檢查這4個檔案,應該都沒錯啦!!!救救我!!
這是我修改過後的
我把我修改過跟BBcode相關的檔案貼在這裡,直接按就可以看
bbcode.php
bbcode.tpl
posting_body.tpl
posting.php
誰可以幫幫我這個bbcode的問題!!!

發表於 : 2005-02-06 02:23
tom82612
## posting.php
## viewtopic.php
## includes/functions_post.php
## includes/topic_review.php
## includes/bbcode.php
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/posting_preview.tpl
## templates/subSilver/posting_topic_review.tpl
## templates/subSilver/posting_body.tpl
## templates/subSilver/bbcode.tpl
## (quick_reply.php)

Please check

發表於 : 2005-02-06 03:38
tsairandy
天阿!!多希望可以找到任何錯誤,但是還是沒有,好想哭!!!
難道沒有人可以看看我的檔案,救救我.
viewtopic.php
posting.php
bbcode.php
functions_post.php
topic_reviewphp
bbcode.tpl
posting_body.tpl
posting_preview.tpl
posting_topic_review.tpl
viewtopic_body.tpl

發表於 : 2005-02-06 06:28
shihchieh

代碼: 選擇全部

$text = preg_replace("#\[intro\](.*?)\[/intro\]#si", "[intro:$uid]\\\1[/intro:$uid]", $text);
你這段加錯位置是加在\r
function bbencode_first_pass($text, $uid)函式裡面\r
你錯加在\r
function bbencode_second_pass($text, $uid)函式裡面\r
上面的函式在你加錯的函式的下面而已

發表於 : 2005-02-08 01:56
tsairandy
大大感謝!!!已經解決!!