The Forum of imitating Oso (v) _php Foundation

Source: Internet
Author: User
In the front of post.php and reply.php, after the success of the statement to jump to a page called post_end.php, this page is mainly prompted to submit success, and gave a link to faq.php, the program is very simple, I wrote in the following:
Your statement has been submitted to <br>
<a href= "faq.php" > Return to difficult problems home </a>
In this section, we will focus on the eight features that are missing from this forum that we listed at the outset:
1, in my forum only after the user logged in to speak, the user ID is a "cookie_user" cookie variable.
I think this should not be the main content of the Forum program, about the user login, there are a lot of good procedures available for reference, if you want to make your forum program more perfect, you can consider in post.php and reply.php to add a user login module. You can also consider automatically helping users register when they first log in.
2, my forum does not have the Sub forum.
In fact, this has to add a field in datasheet guestbook Id_style to indicate the ID of the Sub forum, and you'd better design a datasheet, named Bm_style, which contains two fields: Style_code (sub-Forum code), Style_ Name (sub-forum names), and the fields in the guestbook Id_style should contain sub-forum encodings.
3, I do not count the number of clicks on a subject.
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 indicates that there are no new posts icon I did not design.
Record the last time the user reads the post in the user's cookie, and then compare it to the time_close, which, if Time_close is greater than this, identifies the topic as having a new posting.
5, for the Oso forum to provide the choice of topic arrangement and display time period I did not consider.
Gives the user a Select Drop-down list box and changes the contents of the SELECT statement Order clause in the read.php according to the user's chosen arrangement, increasing the WHERE clause according to the display time period that the user chooses.
6, no member post points of statistics.
Add the Point field in the My_user table, register with an initial value, and add the corresponding integral in post.php and reply.php.
7, there is no moderator management forum function.
Add a Type field to the My_user table indicating the user type, and you can enter a management interface for users of type moderator to perform a delete operation on the guestbook datasheet.
8, there is no post editing function.
For a user's own post (that is, the name in guestbook and the name in the cookie), you can have the user perform an update action on it.
At this point, this exercise is all over, there is no place, but also please you master criticism, which involves plagiarism Oso suspicion (interface part), in this together to the comrades of Oso thank you.


"This article copyright belongs to the author and the Osso net jointly owns, if needs to reprint, please indicate the author and the origin"

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.