国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Backend Development PHP Tutorial Basic incomplete modification tutorial of style template_PHP tutorial

Basic incomplete modification tutorial of style template_PHP tutorial

Jul 21, 2016 pm 04:07 PM
Revise primary Tutorial friend template stencil of experience able my own style


With my little experience, I hope it can be a reference for friends who are new to template modification.

Regarding template modification, I quote a sentence from the star's signature "It is important to learn HTML well" :)

A style, in addition to changing pictures and colors, then going in-depth is to modify the template.

Template is HTML language plus PHP variables, these two things are in it.
You can first enter the template editor in the system settings and open a template at will, such as viewthread_post. Personally, I feel that this template is the most important, followed by the index header footer and which part of the forum each template is. I believe you have more experience with it. You will know it naturally, and as the name implies, you can see a lot. Index, header, and footer are what you see when you enter the forum. viewthread_post is what we see when browsing posts one by one.
You can also find out the corresponding template you want to modify from the current address of the forum. When we look at each post, the address in IE is http"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 posts, and the others are forum jumps. It's transferred, the signature is related, etc. Don't worry about it. We just modify the template, don't go too in-depth.


Without further ado, modifying the template is straightforward and uses the web page creation tool. Dreamweaver, DW's visualization is very convenient. The code is above and the preview window is below. Let's take the template viewthread_post as an example. Copy all your viewthread_post template code into the code window of DW and you can see it clearly in the preview window below. Go to the frame and variables of a post. There are only these two things in

...$ip is the picture of the IP, and only the owner and the administrator will see this picture; $stars is for each member. Stars; $avatar is the avatar... etc. To modify the template, you often need to change the way and position of these variables in the web page. At this time, you can open another IE window, a forum post, and look at the forum posts. Compare it with the variables in the frames in the DW preview window, and you will know what the corresponding variables are displayed in the forum posts. Or you can delete a few variables in the template and confirm the changes, and then refresh the forum to see. You will know if there are any changes or what is missing.


Some common problems in the forum need to be modified. For example, the forum legend needs to be modified. The corresponding template is enough. When the forum legend shows that the address is in index.PHP, then look for it in this category. You can tell from the name that it is the template index_whosonline. Just find the relevant part and add it. If you don't know HTML, don't you know how to follow it? Just follow the instructions of Mozhu and the administrator for the gourd painting. There is also adding signature lines, etc.
It seems to be far away, and I will talk about style below. Once you have a preliminary understanding of templates, first find a ready-made template and try modifying it. For example, if the style of VBB is good, save the webpage as (of course a page you think is good, and also the post part), then open it with DW,

we only need a post part Now, just delete the unnecessary things in the preview window, delete and delete again, and finally only keep the frame of the post we want, and then delete the redundant ones, such as the content of the original post, posting time, etc. Just keep a clean page (of course, create a new DW window in advance to open the original template of viewthread_post and look at this) and then bring in the variables in the viewthread_post template of Discuz! one by one to see which variables are placed in Wherever is suitable, of course the location according to the original VBB arrangement is the best. Replacement completed.

Look at what has been added, the frame width percentage, etc. or what you have done, what you need to modify because of different forums, etc. When you're almost done, copy and paste the code in the code window into your forum to cover your viewthread_post template, then refresh to see your results (note that the image path must be correct and uploaded to your space at the same time). Is there anything wrong? Keep revising and revising.

Some of the codes may show yellow error codes when you paste them into DW. Do not delete them. Keep them for their own purposes. It depends on the specific situation.



This is just an example of the viewthread_post template. The purpose is mainly to get familiar with and modify the template. I believe that after more exposure, you will be familiar with these. In the future, you should be able to modify the template and create a new style yourself. It went very smoothly. Do more original work of your own. . . Regarding the index part, that's it. However, please note that a page of the forum requires a combination of several templates. Don't look at and modify templates individually. Sometimes you need to consider the overall situation of a category. Also, beautifying forums usually involves adding framed pictures. The effect of beautification is immediate, but the impact on speed also needs to be considered. If you are very concerned about speed, adding an extra picture will have an impact. But a style is also very important to the impression a forum gives people. Not much to say about this.
A complete style, some details, a good match of the scroll bar color of the forum, plus a set of suitable mouse pointers (both require IE6.0 support) LOGO, etc., so that the forum can achieve a unified and harmonious effect.

Everything in the template is based on the combination of HTML language and variables, so I emphasize again that it is very important to learn HTML well. If you understand a little HTML language, I believe you don’t need to read what I wrote. To go deeper, you need to know some PHP, at least the basic syntax. For example, "In PHP, you need to add quotes before quotation marks." I only understand this now :D

I heard from Big C that in the future, the new version (the current one is already) will use multiple templates, and the current template structure may be There has been a slight change. At that time, a forum can use multiple styles without being limited to modifying the template and not using others. In infinite admiration...

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/314968.htmlTechArticleWith my little experience, I hope it can be a reference for friends who are new to template modification. Regarding template modification, I quote a sentence in the star signature "It is important to learn HTML well":) A wind...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk Mar 29, 2024 pm 08:41 PM

1. First open DingTalk. 2. Open the group chat and click the three dots in the upper right corner. 3. Find my nickname in this group. 4. Click to enter to modify and save.

In summer, you must try shooting a rainbow In summer, you must try shooting a rainbow Jul 21, 2024 pm 05:16 PM

After rain in summer, you can often see a beautiful and magical special weather scene - rainbow. This is also a rare scene that can be encountered in photography, and it is very photogenic. There are several conditions for a rainbow to appear: first, there are enough water droplets in the air, and second, the sun shines at a low angle. Therefore, it is easiest to see a rainbow in the afternoon after the rain has cleared up. However, the formation of a rainbow is greatly affected by weather, light and other conditions, so it generally only lasts for a short period of time, and the best viewing and shooting time is even shorter. So when you encounter a rainbow, how can you properly record it and photograph it with quality? 1. Look for rainbows. In addition to the conditions mentioned above, rainbows usually appear in the direction of sunlight, that is, if the sun shines from west to east, rainbows are more likely to appear in the east.

How to modify the address location of published products on Xianyu How to modify the address location of published products on Xianyu Mar 28, 2024 pm 03:36 PM

When publishing products on the Xianyu platform, users can customize the geographical location information of the product according to the actual situation, so that potential buyers can more accurately grasp the specific location of the product. Once the product is successfully put on the shelves, there is no need to worry if the seller's location changes. The Xianyu platform provides a flexible and convenient modification function. So when we want to modify the address of a published product, how do we modify it? This tutorial guide will provide you with a detailed step-by-step guide. I hope it can help. Everyone! How to modify the release product address in Xianyu? 1. Open Xianyu, click on what I published, select the product, and click Edit. 2. Click the positioning icon and select the address you want to set.

A simple tutorial on converting full-width English letters to half-width letters A simple tutorial on converting full-width English letters to half-width letters Mar 25, 2024 pm 09:21 PM

When using a computer to input English, sometimes we encounter the difference between full-width English letters and half-width English letters. Full-width English letters refer to the characters input by pressing the Shift key and the English letter key combination when the input method is Chinese mode. They occupy a full-width character width. Half-width English letters refer to characters input directly when the input method is English mode, and they occupy half a character width. In some cases, we may need to convert full-width English letters to half-width letters. Here is a simple tutorial: First, open a text editor or any

Tutorial on how to turn off the payment sound on WeChat Tutorial on how to turn off the payment sound on WeChat Mar 26, 2024 am 08:30 AM

1. First open WeChat. 2. Click [+] in the upper right corner. 3. Click the QR code to collect payment. 4. Click the three small dots in the upper right corner. 5. Click to close the voice reminder for payment arrival.

PHP Tutorial: How to convert int type to string PHP Tutorial: How to convert int type to string Mar 27, 2024 pm 06:03 PM

PHP Tutorial: How to Convert Int Type to String In PHP, converting integer data to string is a common operation. This tutorial will introduce how to use PHP's built-in functions to convert the int type to a string, while providing specific code examples. Use cast: In PHP, you can use cast to convert integer data into a string. This method is very simple. You only need to add (string) before the integer data to convert it into a string. Below is a simple sample code

Effects of C++ template specialization on function overloading and overriding Effects of C++ template specialization on function overloading and overriding Apr 20, 2024 am 09:09 AM

C++ template specializations affect function overloading and rewriting: Function overloading: Specialized versions can provide different implementations of a specific type, thus affecting the functions the compiler chooses to call. Function overriding: The specialized version in the derived class will override the template function in the base class, affecting the behavior of the derived class object when calling the function.

Why do you need to know histograms to learn photography? Why do you need to know histograms to learn photography? Jul 20, 2024 pm 09:20 PM

In daily shooting, many people encounter this situation: the photos on the camera seem to be exposed normally, but after exporting the photos, they find that their true form is far from the camera's rendering, and there is obviously an exposure problem. Affected by environmental light, screen brightness and other factors, this situation is relatively normal, but it also brings us a revelation: when looking at photos and analyzing photos, you must learn to read histograms. So, what is a histogram? Simply understood, a histogram is a display form of the brightness distribution of photo pixels: horizontally, the histogram can be roughly divided into three parts, the left side is the shadow area, the middle is the midtone area, and the right side is the highlight area; On the left is the dead black area in the shadows, while on the far right is the spilled area in the highlights. The vertical axis represents the specific distribution of pixels

See all articles