With a little experience, I hope to give a reference to my friends who are new to template modification.
For template modification, refer to the "learning html is very important" in the star signature ":)
A style, in addition to changing the image and color, is to modify the template.
The template is the HTML language and the PHP variable. These two things are in it.
You can edit the template in the system settings first and open a template at will, such as viewthread_post. Personally, this template is the most important, followed by index header footer, each template is a part of the Forum. I believe that you will know more about it when you become familiar with it. As the name suggests, you can also see a lot. Index, header, and footer are displayed on the forum. Viewthread_post is what we see when Browsing each post.
You can also find the template you want to modify from the current address of the Forum. When we read each post, the address in IE is HTTP "// *****/viewthread. php? Tid = ***. If you want to modify this page, you need to find the viewthread category of the template. There are many small categories in it. Viewthread_post is one of them, it is about the post, the rest is the forum jump, signature related, and so on. Many of them don't have to worry about it. We just modify the template and don't have to go too deep.
Not to mention nonsense. to modify the template, use the webpage creation tool Dreamweaver. dw visualization is very convenient.CodeThe preview window is shown below. We also use the viewthread_post template as an example to copy all your viewthread_post template code into the DW code window. In the preview window below, we can clearly see the framework and variables of a post.
There are only two types of things in it ............. $ IP refers to the picture of the IP address, which is displayed only by Bamboo and administrator; $ stars is the star of every member; $ Avatar is the Avatar ...... To modify a template, you must change the variables to display them in a different way and position on the webpage. In this case, you can open another IE window, a forum post, and view the Forum posts against the variables in the frameworks in these DW preview windows, you will know what the variables are displayed in the Forum posts. Or you can delete several variables in the template to confirm the modification, and then refresh the forum to see what changes have taken place.
Some common problems in forums are solved by modifying templates. For example, you need to add a super Banzhu symbol to the Forum legends. You only need to modify the corresponding template. When the Forum legend is displayed, the address is in index. PHP, you can find it in this category. You can find the index_whosonline template and add it to the relevant section. Don't HTML? Don't you need to draw images from the gourd tree. Just add images based on bamboo and administrators. Add a signature line, etc.
It seems to be far away, and the style is also described below.
If you have a preliminary understanding of the template, first find a ready-made template to modify it. For example, if a vBB has a good style, first save the webpage as (of course, you think it is a good page, but also say that part of the post), and then open it with DW,
We only need to delete the part of a post. We can directly Delete the unwanted items in the preview window and then delete them, at last, we only need to keep the framework of one post we want, and then delete unnecessary ones, such as the content and posting time of the original post, you can keep a clean page. (Of course, you can create a new DW window to open the original viewthread_post template and look at it.) Then you can delete the discuz! In the viewthread_post template, the variables are carried one by one to see which variables are suitable. Of course, the best position is arranged according to the original vBB. Replaced.
See what is added, what is the percentage of the Framework width or what you play, and what needs to be modified in different forums. After that, copy and paste the code in the code window to your forum to overwrite your viewthread_post template, and refresh it to see your results, (Note that the image must be uploaded to your space at the same time.) If there is anything wrong with the image, continue to modify it and then modify it.
In the meantime, some codes that you paste into DW may display yellow error codes. Do not delete them, but keep them for their own purposes. See the specific situation.
This is just an example of the viewthread_post template. The main purpose is to familiarize yourself with and modify the template. I believe that I am more familiar with these templates, in the future, it will be nice to modify the template and create a new style by yourself. Create your own originality more... This is the case with regard to the index part, but note that a page on the Forum must be composed of several templates. Do not view or modify the template separately. Sometimes you need to consider the global nature of a classification. There is also the beautification of the forum, that is, adding frame images. The I beautification effect is immediate, and the impact on speed also needs to be considered. If you are very concerned about the speed, adding an image will have an impact. However, a style is also very important to a forum. This is not much to say.
A complete style, some details, a good combination of the color of the scroll bar of the forum, plus a set of appropriate mouse pointer (all must be supported by ie6.0) \ logo, etc, make the Forum a unified and harmonious effect.
The template is based on the combination of HTML language and variables. Therefore, it is very important to learn HTML well. If you know a little about HTML language, I believe I don't need to read more about it. To go deeper, you need to understand PHP, at least the basic syntax. For example, "add \ in PHP before the quotation marks". I only understand this: D.
According to Jack C, in the future, the new version (which is already in use) will adopt multiple templates. The current template structure may change a little bit, at that time, a forum would be able to use multiple styles without having to modify the template. Infinite hope ......