Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
DEDECMS is the webmaster use a more CMS system, of course, although the DEDECMS function is powerful, but in the webmaster's own use of the process, or need to do some personalized changes, such as jump tip information, the use of short titles, and so on, but also encountered some common problems, such as unable to generate, After the installation of permissions, and so on, the article on the personal use of Dedecms encountered some of the problems and common settings to do a share, after the new situation to continue to share, but also welcome the exchanges, common use of good dedecms for our services.
1, Jump Prompt modification
The jump information here is the change in the file or other circumstances need to turn when the "dedecms hint", what needs to be done here is to change this dedecms hint information to your own "* * * message", this is not more friendly. Specific modifications, is in the Dede file in the include/common.func.php file, with Notepad or other software to open the file, find the file page of the two words, have to modify, save after the change, so that the next jump information will show your own.
2, about the time display format
A lot of people just start to use Dede friend asked me, that title after the date format how to modify. The date modification in the Dede system can be done in the template, Dede template modification is very simple, and Dede also provides a number of date formats (others are the same), can be arbitrarily modified. The most common time calls have two states: Function= "MyDate" (' m-d ', @me) "/and" function= "Getdatetimemk (@me)"/", in both formats, the latter call out the detailed time, including minutes and seconds, And the former has a lot of DIY methods, now write this is similar to 03-27 of this, can also be modified into 12-03-27 (y-m-d), 2012-03-27 (y-m-d) and so on, if the-to change to the corresponding date, is also very good, personal preferences, we can change. Modifications can be entered into the corresponding template.
3, short title use
Dedecms Short caption function is a very powerful and easy to use function. A friend may find that some sites in the first page to display the title and open the article displayed in the title is not the same, how to achieve this? In fact, in the Dede is very easy, as long as the corresponding code can be modified to achieve the purpose. Specifically as follows:
①.{dede:field name= ' array ' runphp= ' yes '} if (@me [' Shorttitle ']== ') @me = @me [' title '];else @me = @me [' Shorttitle ']; {/dede:field}
This can not be applied in the {dede:arclist} label, generally placed in the Web page Titile place;
②.[field:array runphp= ' yes ' if (@me [' Shorttitle ']== ') @me = @me [' title '];else @me = @me [' Shorttitle ']; [/field:array]
The most commonly used, that is, the following this, your site template [Field:title] to replace the above code can be implemented when the short title when writing a short title, did not write a short title to show the effect of the full title. This is particularly useful when displaying pictures and columns, or it may be because the title of the article is too long or too short to show.
4. Post-loading settings for ads
Here's what the ad-loading means, open the Web page, so that the ads in all Web pages after the download display, because sometimes the ads may be a larger picture, or the advertising federation to display the speed of general, so often caused by the page after a half-day does not display content and card there, resulting in a very bad user experience, Even lose potential customers. Therefore, it is necessary to post the advertisement, in fact, the member Center, the content page of the traffic statistics can be this operation. Here's how it's implemented (illustrated in one example):
① Remove existing code, add ID number to tag:< div class= "mid" id= "Upads" >loading</div >,loading are optional parts that can be replaced with icons or other content.
② add code before the HTML tag at the bottom of the page:
< span style= "Display:none" >
< div id= "span_upads" ><script type= "Text/javascript" src= "/img/ibanner.js" ></div >
<script type= "Text/javascript" >document.getelementbyid ("Upads"). InnerHTML = document.getElementById ("Span_ Upads "). InnerHTML; document.getElementById ("Span_upads"). InnerHTML = "";
< span >
Or:
< div id= "Upads_data" style= "Display:none" >
<script src= ' {dede:field name= ' phpurl '/}/count.php?view=yes&aid={dede:field name= ' id '/}&mid={dede: Field name= ' mid '/} ' type= ' Text/javascript ' language= ' javascript ' ></div >
< script type= "Text/javascript" >
document.getElementById (' upads '). InnerHTML = document.getElementById (' Upads_data '). InnerHTML;
The above two codes are similar and feature the same. The content in SRC is the content between the original Div. For advertising, the middle of SRC only keep the original JS AD code src part. "Here's another common problem-handling method.
5, background Verification code does not show
This situation mostly appears in their own configuration of the VPS host, because the virtual host generally have sufficient permissions. Install the system into the background found that the verification code can not be displayed, of course, the cause of this situation may be many, but the simplest and most common is the data directory of the session document does not write permission, at this time, you need to give this directory write permission, you can. Specifically in the corresponding Web site in IIS right-click, and then click the right, give the corresponding user name to write permission.
This article to share from: Home circle Information Network Www.jqqnet.com, reproduced please retain the source, thank you!