On the transformation of dz! forum to Portal

Source: Internet
Author: User
Keywords Portals could at that time Discuz transform

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest stationmaster buy cloud host technology Hall

I don't know if I have the right to talk about this, but friends who know the www.jokcn.com framework should understand that this is a transition from discuz to portals. In fact, the whole transformation is only a way to achieve a content display update, after all, the contents of the Forum need to enter and re-enter to browse, The portal relative to the home page capacity larger, relatively intuitive.

Note two points:

1. This tutorial is not applicable to all discuz forums.
2. If you want real success, a mode of operation is more important than your program.

Body:

Contact Discuz is July 05, because of free space too much, so on a foreign free space shelves up the first edition of the Forum, at that time should be discuz 2.5F, mainly engaged in some free space application strategy, as to say popular, oh, the beginning of a week should be about 50IP every day, After all, there was not a lot of applicants for those freehosting, so I have a few introduction to the original, put this forum, the entire forum on more than 40 posts, the use of the Russian rice, in fact, built this station, is completely forced. One day, the website can not be visited, only to know that free space stopped, Friends who have used free space should know that stability is not much, especially in support of Chinese, so went to the domestic application of a space, remember is the Shandong Netcom Line, the site construction to the end of August, Powerdns.com stopped the free interpretation of the Russian rice. Therefore, reluctantly, applied for the international domain name. It's like off.

When using Discuz to 4.0, my IP has more than 5,000, at that time the traffic growth is very slow, but also once the flow back to 1500 per day, there is the idea is that the forum ladder can not meet the needs of the content of the browser, the same content, in the portal can get too much display, In the forum, only the ladder-like operation, if you look at a post, the forum needs more than 3 steps, the portal can be 1 steps in place, which was ready to enable the key to the portal.

Discuz's portal requires a relatively familiar understanding of discuz, occasionally in the background, to understand the API call, after the algorithm processing, found that Discuz API can give a portal to set an initial model, after the change page design and typesetting to complete the basic art operation, So after nearly two months of preparation, I developed the Discuz API portal and the first version of the model. This version of the API implementation from the forum to the portal transformation of the first process, through the call of some of the posts and pictures of the attachment call to form a portal forum, this version of the portal mode has been provided download, address is: http://www.im286.com/viewthread.php?tid=1819979 inside the relevant operation has been described.

Careful friend may find that this kind of call does not support the search engine included, and in the pagination, the jump is not convenient, then think, how can you do a normal procedure? At that time studied the Discuz archiver, Supsite, suddenly found Supsite There are a lot of ideas can be used for reference, in fact, after a slow understanding to feel, Discuz and supsite is a common thing processing platform, and there is no individual personality things, or many functions are not perfect, of course, there is no use of the function, if you want, Discuz will take these deficiencies in development or function to make up for shortcomings called "Plug-ins." With the initial idea, we have to look for a starting point. Supsite don't understand, after all, I did not PHP, a lot of things still can not operate, so, I started from the familiar API.

Design:

The design of the portal forum is divided into many aspects, but the most important one is the content architecture. Then consider the optimization, including search engines, so, referring to the most popular station mode at the time, followed the API style, began my portal creation road.

I. Content posts, all achieve static,

This point should be considered from two aspects, the first is the generation, and the second is the rewrite (is the heuristic of discuz pseudo Static). Later, considering the amount of task, I chose the former.

Convert viewthread.php?tid=1819979 to read/1819979.html form

Two. Static column

The operation steps are the same as the above conversion forumdisplay.php?fid=46 to list/46.html form.

Three. Add Picture column

Extracts the attachment to classify, make into the picture column. Based on each section, categorized as photo/46.html

After the design, the discovery function and the Discuz API simplification, hehe! So it is more lazy, in the writing program, the SQL sentence copy came over, Test finished.

Four. Backstage, cookies and others.

Here we alone to say the display of the post, after all, if we use it, the background requirements are not very strict, cookie processing has a Passport interface, have time friends to study first. However, the forum is different from the portal, some of the posts are pure water stickers, or discussion stickers, This content does not appear as a portal type of consultation, so it is important to filter this part of the content.

My way of doing this is to create a key, by the administrator control, this rule, we can according to their own type of site to set up, such as your site stable members more, it is set to the default home page does not extract the content of the forum, you need to recommend the owner or administrator, if your content is most suitable for the advisory class is the opposite, Proper air transfer can achieve the best results.

Summary. After my change, the site's traffic doubled, the current daily average of 1.5w IP. Basically the operation of the idea has been taken out, now included all normal, and I also according to the forum combined with the model, developed a second set of portal system, such as http://study.jokcn.com If you can find carefully, the content is the same, different just show the way, an excellent site is creative + adhere to the results, but also hope that this article can broaden your horizons, the establishment of their own portal forum.

Statement:

Original articles, reproduced at will.

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.