Ask a more difficult question?

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.