The forum of imitating Oso five _php tutorial

Source: Internet
Author: User
In the previous post.php and reply.php, after the submission of the success of the speech to jump to a page called post_end.php, this page is mainly prompted to submit a successful submission, and gave a link to faq.php, the program is very simple, I will write it in the following:

Your statement has been submitted
Back to difficult issues home

In this section, we will focus on the eight features that are missing from this forum that we listed at the beginning:
1, in my forum only after the user login to speak, the user ID is the existence of a "cookie_user" in the cookie variable.
I think this is not the main content of the Forum program, about the user login, there are many very perfect procedures for reference, if you want to make your forum more perfect, you can consider adding a user login module in post.php and reply.php. You can also consider automatically registering users for the first time they log in.
2, my forum has no sub-forum.
In fact, this must add a field Id_style in the datasheet guestbook to indicate the ID of the sub-forum you belong to, and you'd better design a data table named Bm_style, which contains two fields: Style_code (sub-Forum code), Style_ Name (sub-forum names), and the field Id_style in guestbook should hold the sub-Forum encoding.
3. I don't count the number of clicks on a topic.
Add a field Count_read in Datasheet guestbook, set its initial value to 1 in post.php, and accumulate it in read.php.
4, in the Oso forum in front of each topic to indicate that there are no new posts of the icon I did not design.
In the user's cookie, record the time the user last read the post, then use this time to compare with Time_close, and if the time_close is greater than this value, the topic is identified as having a new post.
5, for the Oso forum to provide a choice of theme arrangement and display time period I did not consider.
Gives the user a select drop-down list box and changes the contents of the order clause of the SELECT statement in read.php based on the user's choice of arrangement, increasing the WHERE clause based on the display time period selected by the user.

6, no member post points statistics.
Add the Point field to the My_user table, register an initial value, and add the corresponding integral in the post.php and reply.php.
7, there is no moderator management forum function.
Add the Type field to the My_user table, note the user type, and for users of type moderator, you can enter a management interface to perform a delete operation on the Guestbook data table.
8, no post editing function.
For the user's own posts (that is, name in guestbook and the name in the cookie), you can have the user perform the appropriate update operation on it.
At this point, this exercise is all over, there is no place, but also ask you master criticism, which involves plagiarism Oso suspicion (interface part), in this together to you Oso comrades thank you.
"The copyright of this article is owned by the author and house Orso near net, if need to reprint, please specify the author and source"

http://www.bkjia.com/PHPjc/531829.html www.bkjia.com true http://www.bkjia.com/PHPjc/531829.html techarticle In the previous post.php and reply.php, after the submission of the success of the speech to jump to a page called post_end.php, this page is mainly prompted to submit the success of the presentation, and gave a to the FAQ ....

  • 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.