Hello everybody, ask discuz system, how to add custom form item (template-Data Insert-data query)??
Please give a master to answer!
Reply to discussion (solution)
What does the form item mean? Form form? or PHP pages and templates?
What does the form item mean? Form form? or PHP pages and templates?
Now Discuz Post is basically the category title post content such a pattern
I want to add a few items, such as I add a region Select, memo input. Like the classification of information will be added to the price, the new and old degree to choose this
Template easy to do, the difficulty is related to the posting program to make changes, to ensure that the database write, of course, and output.
Background directly $_post can get data, if the Pre_forum_thread table on the establishment of the field can be found in the \source\include\post\post_newthread.php, the No. 386 row around the $newthread = Array (, add the corresponding fields and data inside, you can, if you create a separate table, you can insert data with Db::insert
Background directly $_post can get data, if the Pre_forum_thread table on the establishment of the field can be found in the \source\include\post\post_newthread.php, the No. 386 row around the $newthread = Array (, add the corresponding fields and data inside, you can, if you create a separate table, you can insert data with Db::insert
Background directly $_post can get data, if the Pre_forum_thread table on the establishment of the field can be found in the \source\include\post\post_newthread.php, the No. 386 row around the $newthread = Array (, add the corresponding fields and data inside, you can, if you create a separate table, you can insert data with Db::insert
How do I get the data? Which program is reading the database for the post data? I'm going to make a copy and change it.
Of course, I can write with db::select, but I don't want to, I think this is not close to the system.
Gets the subject c::t (' Forum_thread ')->fetch (1);//theme ID, which returns a one-dimensional array c::t (' Forum_thread ')->fetch_all (Array (round));// Subject ID (array), returns a two-dimensional array//Get post c::t (' Forum_post ')->fetch (9,37);//Theme ID, and post ID, return a one-dimensional array c::t (' Forum_post ')->fetch_all (9, Array (25,26,27));//theme ID, post ID (array), return two-dimensional array
Specific find \source\class\table\table_forum_post.php and \source\class\table\table_forum_thread.php view