PhpBB3 style (Style) customization
phpBB3 to the stylistic design (Style), phpBB style customization is clearly divided into three parts:
1. template modification: to modify the page structure to modify the template file.
2. theme (Them) custom: Generally speaking, it is to change the tone of the page, color collocation, and so on, mainly the writing of CSS's writing
3. picture group: the button of the website, Logo, the menu bar and so on all the matching page style pictures are classified as the group
three parties. All surfaces can be installed and used independently. They are very flexible. In addition, the directory structure of phpBB3 is much more reasonable and neat than phpBB2. In particular, the style directory structure.
to customize the style of phpBB, the first thing you have to understand is how phpBB loads templates. Learning phpBB style written by others is a good start.
I tries to install a good phpBB style
1. download style file: CSS, picture and template files
2. puts the style file in the $PHPBB_HOME/styles directory into the backstage installation style. This step is to be well understood:
enters the phpBB backstage style page, and phpBB automatically identifies it to copy it into the STYLES directory. Then the template, the theme, and the pictures are installed in turn. This installation process is essentially: according to the rules of phpBB, the corresponding CSS is structured into the database. This also means that any changes to the next CSS need to be refreshed here so that their database updates can actually take effect (further introduced later).
then set the newly loaded style to the default style and open the phpBB front end, which is the new loading style of BB.
II then set out to customize the style
1. to modify the picture: go directly to the style corresponding directory, find the corresponding file modification, and immediately take effect on the
2. modification topic (CSS file): open the existing CSS files, modify or add them. Then go to the phpBB background style menu to refresh CSS (to the database)
3. modify the template file: find the /template word directory under the main directory of the HTML file, modify the save disk. Then go to the phpBB backstage to refresh the template file cache (and you can directly clear the cache directory, unfortunately phpBB3 does not provide development prohibition of caching function)
4. to add CSS files: a stylesheet.css in the style directory, adding such as downlink
@import URL. >
then add any CSS effect you want in.Lt; your_css_file_name.css.gt.
5. adds pictures. If necessary, you can add new pictures in the style theme/images or imageset directory, and then reference them in CSS or template files. It involves modifying the template or CSS file, referring to the previous description.