Ask the discuz Post to write the database file. ask the discuz3.2 version. is the file written to the database forum_post.php?
What is the main segment?
Isn't it like this:
$extra = !empty($_GET['extra']) ? rawurlencode($_GET['extra']) : '';$notifycheck = empty($emailnotify) ? '' : 'checked="checked"';$stickcheck = empty($sticktopic) ? '' : 'checked="checked"';$digestcheck = empty($addtodigest) ? '' : 'checked="checked"';$subject = isset($_GET['subject']) ? dhtmlspecialchars(censor(trim($_GET['subject']))) : '';$subject = !empty($subject) ? str_replace("\t", ' ', $subject) : $subject;$message = isset($_GET['message']) ? censor($_GET['message']) : '';$polloptions = isset($polloptions) ? censor(trim($polloptions)) : '';$readperm = isset($_GET['readperm']) ? intval($_GET['readperm']) : 0;$price = isset($_GET['price']) ? intval($_GET['price']) : 0;
Reply to discussion (solution)
/* Take the published topic as an example. 1. click the published topic and enter \ source \ module \ forum \ forum_post.php to perform the pre-insertion operations, such as review 2. there is a sentence around 345 rows: require_once libfile ('post/newthread', 'include '); enter the processing page of the published topic (\ source \ include \ post \ post_newthread.php) 3. in line 3, there is a sentence: $ tid = C: t ('forum _ thread')-> insert ($ newthread, true); $ newthread is the topic data to be inserted, in the above sentence 4, around 571 rows, there is a sentence: $ pid = insertpost (array (this is the detailed information of the inserted topic */
I changed my point avatar and said it was not completed.
/* Take the published topic as an example. 1. click the published topic and enter \ source \ module \ forum \ forum_post.php to perform the pre-insertion operations, such as review 2. there is a sentence around 345 rows: require_once libfile ('post/newthread', 'include '); enter the processing page of the published topic (\ source \ include \ post \ post_newthread.php) 3. in line 3, there is a sentence: $ tid = C: t ('forum _ thread')-> insert ($ newthread, true); $ newthread is the topic data to be inserted, in the above sentence 4, around 571 rows, there is a sentence: $ pid = insertpost (array (this is the detailed information of the inserted topic */
Well, I'm using version 3.2. you didn't say this in this file. Where can I move it.
2. in line 3, there is a sentence: require_once libfile ('post/newthread', 'include ');
Go to the processing page of the published topic (\ source \ include \ post \ post_newthread.php)
In this step, yes, but in the third step, source \ include \ post \ post_newthread.php is disconnected. This file should have been changed. find libfile and no relevant operations are found.
I went to the next version of 2.5. this is indeed available in row 409.
But version 3.2 is gone, and the boss is confused.
X3.2 changes seem quite big
Or \ source \ include \ post \ post_newthread.php
Insert
$ Return = $ modthread-> newthread ($ params );
X3.2 changes seem quite big
Or \ source \ include \ post \ post_newthread.php
Insert
$ Return = $ modthread-> newthread ($ params );
I originally thought it was the same, but I couldn't get the value.
I will add an about field to the forum_thread table. Get $ about = getgpc ('about') in the mod program forum_post.php ');
Then, get post_newthread.php: $ params ['about'] = $ about.
The result database field does not get the value. How can this problem be solved?
It depends on whether you have actually obtained it.
File_put_contents ('/home/wwwroot/default/log.txt', var_export ($ _ REQUEST, true). PHP_EOL, FILE_APPEND );
Print it to a file and open it.
It depends on whether you have actually obtained it.
File_put_contents ('/home/wwwroot/default/log.txt', var_export ($ _ REQUEST, true). PHP_EOL, FILE_APPEND );
Print it to a file and open it.
I don't know how to write this statement, right?
In the two files under the source \ class \ model Directory
/* Take the published topic as an example. 1. click the published topic and enter \ source \ module \ forum \ forum_post.php to perform the pre-insertion operations, such as review 2. there is a sentence around 345 rows: require_once libfile ('post/newthread', 'include '); enter the processing page of the published topic (\ source \ include \ post \ post_newthread.php) 3. in line 3, there is a sentence: $ tid = C: t ('forum _ thread')-> insert ($ newthread, true); $ newthread is the topic data to be inserted, in the above sentence 4, around 571 rows, there is a sentence: $ pid = insertpost (array (this is the detailed information of the inserted topic */
If the score is incorrect, go to http://bbs.csdn.net/topics/390962647to obtain the score.