1 頁 (共 1 頁)

[問題]求各大大幫手~付費瀏覽

發表於 : 2004-08-17 13:01
benny777ex
問題外掛:付費瀏覽\r
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=9973
使用版本:phpBB 2.0.10
網站位置:http://blforum.hk.st
狀況描述:

發表新主題 > 按送出時
出現...

代碼: 選擇全部

Warning: Missing argument 21 for submit_post() in /home/companies/stjo/benny/www/phpBB2/includes/functions_post.php on line 216

Warning: Cannot add header information - headers already sent by (output started at /home/companies/stjo/benny/www/phpBB2/includes/functions_post.php:216) in /home/companies/stjo/benny/www/phpBB2/includes/page_header.php on line 502

Warning: Cannot add header information - headers already sent by (output started at /home/companies/stjo/benny/www/phpBB2/includes/functions_post.php:216) in /home/companies/stjo/benny/www/phpBB2/includes/page_header.php on line 504

Warning: Cannot add header information - headers already sent by (output started at /home/companies/stjo/benny/www/phpBB2/includes/functions_post.php:216) in /home/companies/stjo/benny/www/phpBB2/includes/page_header.php on line 505
補充:
曾裝過的外掛名稱:
1. 閃光會員\r
2. 彩色連結
3. 公告條
4. cashmod221

=========================
為什麼會這樣呢 :?:

發表於 : 2004-08-17 13:36
webspirit
可以請你把標題改成有意義一點嗎?
例如:[問題]付費瀏覽

發表於 : 2004-08-17 13:41
Mac
請再次確定 functions_post.php 沒有改錯喔

~Mac

發表於 : 2004-08-17 13:57
webspirit
看來標題無意義是無所謂的

發表於 : 2004-08-17 16:53
benny777ex
我已直接copy"也就是改成"的程式碼也不成功...
http://phpbb-tw.net/phpbb/viewtopic.php?t=9973
打開 includes/functions_post.php \r

收尋
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)

在 &$poll_length 後面加上
, &$pay_money

也就是改成
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length, &$pay_money)


收尋 (要改三個部分,要注意.)

$sql = ( $mode != 'editpost' ) ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";

在 post_id, post_subject, bbcode_uid, post_text 後面加上
, pay_money, pay_user

在 $post_id, '$post_subject', '$bbcode_uid', '$post_message' 後面加上
, '$pay_money' ,'id".$userdata['user_id'].",'

在 , post_subject = '$post_subject' 後面加上
, pay_money = '$pay_money'

也就是改成
$sql = ( $mode != 'editpost' ) ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text, pay_money, pay_user) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message', '$pay_money' ,'id".$userdata['user_id'].",')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject', pay_money = '$pay_money' WHERE post_id = $post_id";

[問題]

發表於 : 2004-08-19 13:30
benny777ex
問題外掛:付費瀏覽
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=9973
使用版本:phpBB 2.0.10
網站位置:http://blforum.hk.st
狀況描述:成功了, 但為什麼我有25元, 卻能看要付費100元瀏覽主題呢?

曾裝過的外掛名稱:
1. 閃光會員
2. 彩色連結
3. 公告條
4. cashmod221\r
5. Top 5
6. Advence Link Simple

發表於 : 2004-08-19 14:21
kevinyung
因為您是系統管理員, 權根當然粉大嘿~~