phpwind9.0 template making, Forum style development

Source: Internet
Author: User
Tags modify thread root directory

For each phper, the most recent thing is PHPwind9.0 release, but it takes a lot of hard work to understand it and develop it. Because the Forum template mechanism and portal template mechanism is different, so today I will focus on the forum template making the approximate process.

first, to be familiar with the next phpwind9.0 Forum template mechanism.

In fact, phpwind9.0 template mechanism and discuzx2.5 almost, are the program running itself with the default template (template file), and then if we design a set of templates in the corresponding folder and the background to specify words, Then the program will run our new template style, the official purpose of doing so is: to change where to do the template, very convenient and smart, if you say in order to modify the style of a forum interface is always going to do the whole station template, that can be worth the candle.

What files and directories do you need to create a forum template style?

1. New Style Catalogue

2, CSS directory and CSS file (style)

3, JS directory and JS files (JavaScript, jquery and other scripts)

4, Images catalogue and picture file (style picture)

5, template directory and HTM file (template)

6, Manifest.xml (Installation configuration file)

Description

The ① New style catalog is a must-have, and the following 2~6 items are all included in the file.

The ②CSS directory must be established, in order to standardize the development and build directory in the CSS directory, dev is the style to use the CSS directory; The build directory is the directory that will produce the compressed CSS file after the compression CSS feature is turned on in the background. Put a new style css file in the dev directory.

③ If you do not need the style of JS special effects can ignore this, otherwise you need to build a JS directory and then the JS file into which.

④ If you do not need a picture of the style you can ignore this, otherwise you need to create a images directory, and then put the picture file in the inside can be.

⑤template directory must be established for the HTM template file, the HTM file name must correspond to the official/template/bbs/under the relevant template name, otherwise the program is not recognized.

⑥manifest.xml files must be established for background identification and installation of template diagrams.

As a supplement to the above instructions, please see: http://www.zsbs.net/phpwind/forum.html

Third, the forum page of the corresponding template

Many friends in the experience station for example in which file to modify a certain page problem, in order to everyone do not detours file view, I will first I know the page corresponding HTM file description, if there is no explanation to the place, please follow the thread, of course, if you have the ability of friends will be more instructions posted up.

Forum Home:/index.php?m=bbs

Corresponding Template:/template/bbs/index_run.htm

Forum latest Posting page, final reply page (figure)

Corresponding templates:/template/bbs/forum_run.htm and forum_run.htm and forum_list.htm

Forum Channel page:/index.php?m=bbs&c=cate&fid=1

Corresponding templates:/template/bbs/cate_run.htm and cate_digest.htm

Forum Page:/index.php?m=bbs&c=thread&fid=1

Corresponding Template:/template/bbs/thread_run.htm

Forum posts reading page:/read.php?tid=1&fid=1

Corresponding templates:/template/bbs/read_run.htm and read_reply_floor.htm and read_floor.htm

Actually see here presumably everybody can also discover some laws:

For example, the general home is running similar to So-and-so _run.htm files.

For example, the link URL path to see what the name, then its corresponding template is also what name do prefix.

For example, files with the same prefix as the link URL path name are the HTM files associated with this connection.

I hope you can extrapolate, here because the home frozen hands, so no one by one cases to give a description, look forward to more enthusiastic member feedback often found!

Iv. production of templates

This is not explained in detail, the next time with an example tutorial will be the solution. Can not be the program's various PHP if judgments and tags set in the HTM code. corresponding to good CSS, JS, images and other paths are good.

v. Configure manifest.xml installation files

My understanding of this document is that the background can be used to identify whether there is a new style of the important basis. I did an experiment, set up a new directory, put this profile inside, then put the new style directory directly under/themes/forum/, and the program can recognize new styles in the background. About the importance of this configuration file I do not say more, we simply refer to the divert can be.

More can reader network phpwind9.0 manual.

Vi. Installing a new template

1, the new template directory as a whole in the program root directory/themes/forum/below, and then into the background click Cloud Platform → template management → local installation → will see the new template, please check and install it.

2, installation is not already used in the use of it, please go to the background of the section set to specify the use of this style, This function is very good, for example, I would like to use the Forum 1 blog, want to use 2 to do information, want to use the forum 3 to do forums ... Then you only need to do a variety of styles of plate template to match on the OK, of course, the current only plate binding style, the official confirmation channel page will also have style binding function, look forward to the official version of phpwind9.0.



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.