PHP Construction Forum: discuz! Forum Rapid Erection Guide
Background: With the reduction of the domain name, the price of the hosting server is getting cheaper, many netizens want to be able to set up their own web site, of which 70% of users are the first choice is to set up a forum of their own, so here we will introduce the forum erection.
discuz!, the most popular PHP forum program in China, especially after its implementation of free strategy, but also in the network set off a flurry of discuz! building forum. It is commendable that, although the discuz! is powerful, its threshold is quite low, the entire installation/setup process is done in a graphical interface, without requiring the user to perform any complex operations. Next, let's take a full look at discuz! and use it to build a forum that is yours.
First, the establishment of discuz! operating environment
discuz! installation/operation requires lamp environment (LINUX+APACHE+PHP+MYSQL), however, most of the users currently use the Windows operating system, so in this article will be described in the Windows environment to establish discuz! Environmental approach (WINDOWS+APACHE+PHP+MYSQL).
In general, we can install Apache, PHP and other programs separately, and then debug, so that they can run properly. However, the overall debugging process is relatively complex, not only for beginners is a problem, even some "veteran", it is easier to debug during the error. Therefore, the author recommends using some integrated PHP installer, such as Phpstudy, to simplify the establishment of the operating environment.
Unzip the downloaded compressed file, double-click the execution PhpStudy130.exe, the program will automatically complete the installation of Apache+php+mysql+zendoptimizer, the entire installation process will not require any user intervention.
Tip: 1, the Installation Wizard will ask the PHP program installation path, the installation path is the local debug path (here I choose C:\WWW).
2, during the installation process, if a firewall is turned on, register to start the service, will be prompted whether to trust HTTPd, Mysqld-nt run, and Port 80, 3306, etc., please select Allow.
After the installation is complete, start the Phpstudy service management program and you will be able to view Apache and MySQL running status (1). It should be noted that if IIS is installed on the system and is in the boot state, then port 80 will be occupied, which may cause Apache to fail to boot. To start Apache, you need to shut down IIS first, or change the port of IIS to a non-80 port.
At this point, the discuz! installation/run environment is installed, and next, the discuz! installation operation will begin.
Second, discuz! installation introduction
Discuz! uses the graphical installation mode, according to the page guidance, can easily complete the Forum program installation. Of course, some necessary preparations need to be made before the discuz! is formally installed.
The first step: Download the discuz! installer, extract all the files in the upload directory to the PHP root directory, that is, C:\WWW, in order to facilitate the call, you can also set up a subdirectory, such as BBS.
Step Two: Open the config.inc.php file with Notepad and set the value of $dbuser, $DBPW to root (2).
Tip: The Phpstudy Setup program sets the MySQL database username and password to root, and the user can create a new database on demand and customize the relevant data values.
After completing the above settings, enter "http://127.0.0.1/bbs/install.php" in the browser and press ENTER to formally launch the discuz! installer.
First step: After starting the discuz! installer, the installation protocol will appear and you can continue by clicking the "I Agree" button at the bottom of the page.
The second step: The following is the database settings, generally, in addition to the "system email" item, there is no need to modify other items (3).
Step three: Then you need to set up an administrator account, can be set according to your needs.
After completing some of the above settings, click the "Next" button, will perform the installation of discuz!, wait a moment, the program installation is complete, click on the bottom of the page "Congratulations on the Forum installation completed, click on the Forum Home" button, you can end the installation program, and immediately open the new Installation successful Forum home page.
As you can see, the installation process of discuz! is quite "stupid", just follow the instructions on the page and it will be done in a few minutes. Of course, for debugging convenience, the author's operations are done on the local computer. For friends who perform operations directly on a virtual host, the only thing that changes is the need to upload the installer to a virtual host and then use the database information provided by the space operator to perform the installation, while the others are all the same.
Iii. Basic settings of discuz! Forum
So far, we have just completed the discuz! program installation, the entire forum is just a shell, there is no section, and content. The next step is to make it a forum for netizens to use by adjusting the parameters of the forum.
Use the Administrator account to set up during the installation process login forum, and then click the "System Settings" link in the navigation bar, after the pop-up page re-enter the administrator password, you can log in to the Forum admin page, to perform the relevant setup action.
If you are not familiar with the settings of the forum, you can use the Setup Wizard provided by discuz! to simply complete some of the most basic settings.
First step: Select forum Type
Forum type settings include "Forum size", "rights control", "functional preference". In view of the current situation of domestic virtual host, the author proposes to set the "Forum size" to "small"; Permission control is set to general; Feature preference "is set to" general "so that the established forum can run optimally (4).
Step Two: Set basic information for the forum
The items to be set up here include "forum name", "website name", "website url" Three items, these three items ' settings are not any difficulty, just fill in according to the actual situation.
Step Three: Forum classification initialization
The forum section will be set up, the method is very simple, in "Classification 1", "Category 2", "Category 3" will be filled in the forum section of the big class name, and each category under the "Forum 1", "Forum 2" and so on, is the specific forum section name.
For example, we fill in "Category 1" in the "version of the Processing", in the "Forum 1", "Forum 2" in the separate "forum rules", "violation treatment", confirm the operation, then refresh the Forum home page, you will see the "version of the processing" category, and "forum rules" and "violation of the treatment" is the two specific sections (5) under this category.
After completing the three steps above, the wizard will give you a confirmation page with all the items that have been set up, confirming that the above settings will take effect immediately after clicking the "OK" button. At this point, refresh the Forum home page, you will immediately see the corresponding changes.
Iv. in-depth discuz! forum settings
Through the wizard program, we completed the simple setting of the forum, but its limitations are also very obvious, such as can not modify the forum logo, the forum can set a limited number of forums, and in many cases, and can not meet our use needs. Therefore, it is necessary to further adjust the forum parameters.
1. Adjust Forum section
As the main body of the content of the forum, the setting of the Forum plays an important role in improving the popularity of the forums. However, in the Discuz! Setup Wizard, only 3 categories can be added and up to 9 sections, which clearly cannot be used in the actual usage requirements. Therefore, it is necessary to set up the Forum section in more detail.
Click the Forum Management tab in the top navigation bar in the background to switch to the feature page of the section settings. You can perform the corresponding operation by clicking the function buttons in the left function bar.
Add a forum: In addition, you can add "forum categories", "Forums", and "sub-forums" by setting them in different items. If you add a "forum" or "sub-forum", you also need to select "Parent category" or "Parent forum" in the drop-down menu.
Edit Forum: Users can Do "forum classification" and "forum" to Do "edit", "delete" and so on, because in this feature interface, each forum in the form of directory tree display, so the operation is very intuitive.
2. Set User rights
Bubble Forum experience of friends are aware that in the forum, each user will have the corresponding level, different levels of users, the operation of the permissions are not the same. The lowest level of registered members, often only have the basic browsing rights, and high above the "bamboo", is the envy of the object. So, how do you set these membership levels in discuz!?
Switch to the User Management tab in the top navigation bar and click the Edit user item in the left-hand feature bar. At this point, the "Search users" page will appear in the right window, and if you know the user's exact ID, you can enter it directly in the "username" field, if you need to modify the permissions of a certain class of users (for example, all users with less than 100 credits), then you need to tick "more options" and then set the search criteria
Once the search results are available, the user groups, permissions, points, and other settings links are provided in each user's row, and clicking on these links will allow you to perform the corresponding permission set action. For example, clicking the permissions link allows you to set permissions for the user's Browse, reply, and so on.
In addition, if you want to promote a user to a forum section of the moderator, it is necessary to switch to the above mentioned "edit Forum" feature interface, click on the "forum category" or "forum" corresponding to the "moderator" link, and then in the "new" column directly fill in the user's username.
3. Modify Forum Style
Discuz! is a blue style by default, although it is refreshing, but it does not fit the needs of all forums. In order to make the forum more suitable for the content style, it is necessary to modify the interface of the Forum, the general process is as follows:
The first step: Download or make a discuz! template, the author downloaded the "Imitation NTGBK" style as an example, the Imagse, Scripts, templates directory files are uploaded to discuz! corresponding directories, and copy all the code in the TXT file.
Tip: discuz! templates are relatively complex to make (see http://www.discuz.net/thread-459941-1-1.html), so you might want to choose one of your favorite templates on the website.
Second step: Enter the discuz! backstage, switch to the Forum Management tab in the top navigation bar, click the "interface Style" item in the left function bar, then paste all the copied code into the "Import interface scheme, paste the exported file contents as follows" box, click the "Submit" button to complete the new style of adding. At this point, the new style will also appear in the Style list.
Step three: In the top navigation bar to switch to the "Basic Settings" tab, click on the left side of the function bar "interface and display" Item, you can select a new style in the "Default forum Style" drop-down menu, confirmed that the entire forum style will change. If you just need to modify the display style of a section, you can switch to the Forum Management tab and then open the specific section of the Settings screen, you can change in the "style scheme" drop-down menu.
In addition, if you need to modify the forum logo, then hand in one of the simplest way. On the forum's original logo right-click, and select "Properties" to see its path and file name, and then the new logo to the original logo to the same name, upload to the same path and cover, refresh the forum, the logo is completed the replacement.
Summary: This article on the use of discuz! a simple introduction, it can be said that the use of discuz! to establish a forum is not difficult, but to make the forum full of personality, it is necessary to carry out some in-depth changes, settings. Of course, confined to space, this article can not be exhaustive, and only select a number of representative issues to explain, more in-depth application, it is waiting for friends to explore the netizen.
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.