On their own a little experience, hope to give the first contact template modified friends have a reference.
About template modification, quoted in the star signature in the words "learning HTML is very important":)
A style, in addition to changing the picture and color and then go deep in is to modify the template.
The template is the HTML language plus PHP variables, inside the two things.
You can first enter the system settings in the template editor, casually open a template, such as viewthread_post, personal feeling this template is the most important, followed by the index header footer, each template is the forum of which part, I believe you touch more natural to know, As the name implies, you can see a lot. Index, header, footer these three are to enter the forum to see. Viewthread_post is what we see when we browse through a post.
From the current address of the forum can also find you want to modify the corresponding template, we look at a post, ie address is http "//*****/viewthread.php?tid=****, if you want to modify this page, you need to find the template Viewthread this big class There are many small categories inside. Viewthread_post is one of them, it is about the post, the others are the forum jump, signature related and so on. Many don't need to talk about it, we just modify the template, do not have to go too deep.
Not much nonsense to say, modify the template intuitive point of view, take out the web-making tool DREAMWEAVER,DW visualization is very convenient, above is the code, the bottom is the preview window. Also take the template viewthread_post as an example, your viewthread_post template code all copied into the DW Code window, in the bottom of the preview window can clearly see a post frame and variables.
There are only these two things inside. ... $ip is to look at the image of the IP, the owner and the administrator will appear this picture; $stars is the star of each member; $avatar is the avatar ... And so on, to modify the template is often to put these variables can be in the Web page in a different way, location display. At this point you can open an additional IE window, a post on the forum, looking at the forum posts and these DW Preview window in the framework of the variables in the comparison, I know those variables corresponding in the forum posts are displayed in what is. Or you can delete several variables in the template to determine the changes, and then refresh the forum to see what has changed, and what is missing to know.
As usual in the forum some common problems are need to modify the template to solve, such as the Forum legend needs to add a super-owner and so on. All need to modify the corresponding template, the forum legend is displayed when the address is at index. PHP, that is in this big class to find, look at the name to know is index_whosonline this template, find the relevant parts to add. Not HTML will not be in accordance with gourd painting scoop, according to the owner, the administrator's add on it. and add a signature line, etc.
It seems to be far away, the bottom is also said style related. A preliminary understanding of the template, we first find a ready-made template modified to try. For example, a VBB style is good, first save the page as (of course, you feel good page, also said that part of the post), and then open with a DW,
With us as long as a part of the post can be, directly in the preview window to delete those things, delete and delete, and finally just keep a frame of a post we want to, and then delete the extra, such as the original post content, posting time, etc., keep a clean page can be, (Or, of course, create a new DW window to open Viewthread_post's original template, look at this) and then put the variables in the discuz! viewthread_post template into the inside band, to see which variables are placed where appropriate, Of course, according to the original VBB arrangement is the best location. The replacement is complete.
See what's added, the percentage of frame width or what you play, because different forums need to be modified and so on. Just put the code in the Code window to copy and paste into your forum to cover your viewthread_post template, and then refresh to see your results, (note that the picture to be uploaded to your space at the same time) there is nothing wrong, continue to modify and then modify.
In the meantime some code you paste into the DW may display is yellow error code, do not delete, keep its own function, see the specific situation.
This is just to lift the example of the Viewthread_post template, the purpose is mainly based on familiarity, modify the template, I believe that more contact with these are familiar with, later modified template, their own new style should be very handy. More to do their own original ... About the index part, that's the case, but notice that a page of the forum is a combination of several templates. Do not take the template as a separate view, to modify, sometimes need to consider a classification of the global. There is the beautification of the forum is also more than the frame picture, I beautify the effect of immediate, the impact on speed also need to consider. If you are very, very concerned about speed, add a picture will have an impact. But the impression of a style on a forum is also very important. That's not much to say.
A complete style, some details, to the forum's scroll bar color good collocation, plus a set of appropriate mouse pointer (all need IE6.0 support) \logo, so that the forum to achieve a unified and harmonious effect.
Template everything is based on the HTML language and the combination of variables, so again, it is important to learn HTML, if you understand a little HTML language, I believe I write these will not have to read more. To go deeper in, you need to understand PHP, at least the basic syntax. For example, "PHP in front of the quotation marks to add," I now only understand this: D
Listen to the Big C said, after the new version (the current is already) to adopt a multimode version, the current template structure may have a little change, then a forum can be used in a variety of styles without limitation to modify the template can no longer use another. Infinite longing ...
http://www.bkjia.com/PHPjc/314968.html www.bkjia.com true http://www.bkjia.com/PHPjc/314968.html techarticle on their own a little experience, hope to give the first contact template modified friends have a reference. About template modification, quote star signature in the words "learning HTML is very important":) a wind ...