Discuz template production problems, please teach me to lower, do not mistake.

Source: Internet
Author: User
Plan to do some templates:

Header footer The body of the page should be replaced because you want to use multiple templates and the default template does not change, then you need to use an unconventional approach.

Steps:
1th step: Do the HTML page of multiple templates
2nd step: The picture is placed into the Common,js place to static/js,css placed to common and renamed EXTEND_COMMON.CSS
3rd Step: Copy the header and footer several parts, named such as header_1.htm, introduced CSS and JS, modify.
The 4th step: Change the body of the page, refer to the corresponding file at the end of the head, modify the middle body, save as list_*.htm, add the channel after the call.


This is all conceived, not verified, afraid of the wrong return on the trouble. So please master to see the Problem of God horse.


About the main page modification, there are two ways: one is all left white, and then DIY, the trouble is that every block to do template, to modify the DIY CSS, so that the framework to customize their own width, not only those 1:1 2:2. But it's very intuitive and it's hard to make mistakes.

One is directly in the HTML above, this understanding of the discuz is very deep, each {} instead of the corresponding title or the article, this method I think may be much faster, less code. But the lack of data source code (unlike DIY can directly choose the source of data).


Question: Will it have any sequela? Right?
Main Page modification, choose the second method, how to write the data source?


Reply to discussion (solution)

such as the topic list page:
At the end of the \source\module\forum\forum_forumdisplay.php, add the Include template (' forum/your template's name '), and your template will end with an. htm
Did not make the template, I will not point out, but you can see the discuz template tutorial, I feel that you do not write well


such as the topic list page:
At the end of the \source\module\forum\forum_forumdisplay.php, add the Include template (' forum/your template's name '), and your template will end with an. htm
Did not make the template, I will not point out, but you can see the discuz template tutorial, I feel that you do not write well

This should be a problem that can't be solved.

I initially tried, if the official to do the template, then the use of the template, is all this style. He could not meet the requirements of multiple channels, each with one style.

Of course I do not know discuz, but also to contact a week or so.

Discuz not every plate can be DIY, channel is what, I do not know ...
Not really, I had to write it myself.

Oh, this question I also studied, and later gave up, the channel is said the enterprise station, or the portal in the column bar. It is the article management system. This system requires that each column can be arbitrarily customized structure, and discuz cms function is very weak, only one, of course, there are flexible practices, For example, with its classification with the section, but not the general trouble, will make the site bulky. Later I gave up, also proposed discuz in the CMS to enhance the function, but said Discuz they are focused on the function of the forum, it is impossible to cover all.

Discuz not every plate can be DIY, channel is what, I do not know ...
Not really, I had to write it myself.


That in the template, how to loop out the channel column and his sub-column.

I can only make loops out of the main column, but I can't loop out his sub-columns.

It's written in the form of a template. Such
Normal mode or DB method is not very suitable

I don't know if your $cat was taken on that page.
$cat there should be a upid field, if 0 is the channel column, if more than 0 is a sub-column, Upid is the child column of the parent column ID

  • Related Article

    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.