Question 1: Doesn’t the forum post a lot of posts? I want to know if each post is a page, or is there any way to achieve it quickly? How to apply this template.
Question 2: How to display the information of each person who sent the message? I mainly want to know how to store the avatar and how to retrieve it.
The interface framework is the same, just use the same template to separate the data and interface, and get what you want first Just call the corresponding template with the data! The information of the poster is generally stored in the user information table. The avatar is stored in the database as the path of the image. Just get the path information when getting the data.
Why is the poster so well designed? If you don’t use the forum project, what is the purpose of developing it yourself?
Question 1: Doesn’t the forum post a lot of posts? I want to know if each post is a page, or is there any way to achieve it quickly? How to apply this template.
This involves data calling. Each post will be stored in the database after being published successfully. The page displayed together with many posts displayed on the page is actually a data call. When the call is made, a pre-written framework is applied outside, which is the page you mentioned. Reply The same goes for .
Question 2: How to display the information of each person who sent the message? I mainly want to know how to store the avatar and how to retrieve it.
The avatar is basically the same as the one above.
In fact, both of your questions indicate the same problem: you do not understand the storage and display of data. It is recommended that you check some information about the database and research it. As for the forum, there are many free templates on the Internet that you can use and modify to what you want.
I won’t talk about the technical aspects, but let’s talk about the practicality and operability of the forum.
In recent years, due to the country’s network management restrictions, a large number of forums have closed down. It is also difficult for newly-built forum-type websites to pass the registration. If you do not register, you are a black account and you can be stopped at any time.
It’s okay to practice technical skills, but if I run a forum-type website, my prospects are not good