Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
dedecms weaving Dream Article management system of the use of the function of the part of the adjustment, the use of skills, SEO optimization, functional expansion is very effective, have the use of weaving a dream friend, you can see, I in Suzhou seo using a Dream dedecms system, the effect is not bad. It is also a collection of some of the online published features of the adjustment tips to share with you.
1. Change the display format of time from 0000-00-00 to other formats in {dede:artlist}{/dede:artlist}
[Field:pubdate function= ' strftime ("%m-%d", @me) '/] format 00-00
[Field:pubdate function= ' strftime ("%m/%d", @me) '/] format 00/00
[Field:pubdate function= ' strftime ("%y/%m/%d", @me) '/] 0000/00/00
2, Column name Edge Plus (article number) function
Method: Open \include\inc_arcpart_view.php below "//Get a class purpose link information" to find
if (!is_array ($row)) return "";
Add two lines to it:
$countarc = $this->dsql->getone ("SELECT count (ID) as DD from #@__archives where typeid= ' $typeid '");
$row [' Totalarc ']= $countarc [' DD '];
Then add ([Field:totalarc/]) to the template after [Field:typename/]!
3, related articles more relevant modification method
The related meaning is: the keyword of the article and other articles keyword same or article keyword in other article topic.
You can see it in the inc_fun_spgetarclist.php.
$orwhere. = "and CONCAT (arc.title,arc.keywords) REGEXP ' $rstr '";
The original post mylove2046 wrote:
The correct way to modify "related articles"
Whether the V3 version or the V4 version, "related articles" are not relevant, the modified method is as follows:
includeinc_archives_view.php
Find it near line No. 330.
if ($tagname = = "Likeart") $keywords = ""; Str_replace ("", ",", Trim ($this->fields[' keywords '));
To
if ($tagname = = "Likeart") $keywords = Str_replace ("", ",", Trim ($this->fields[' keywords '));
Find it near line 335.
else if ($tagname = = "Likeart") $orderby = "near";
To
else if ($tagname = = "Likeart") $orderby = "id";
In fact, change the code and system configuration, other configuration inside the system variables, the use of keywords related articles:
if ($tagname = = "Likeart") $keywords = ""; Str_replace ("", ",", Trim ($this->fields[' keywords '));
To
if ($tagname = = "Likeart") $keywords = Str_replace ("", ",", Trim ($this->fields[' keywords '));
4, DEDECMS member to modify the personal data error
Phenomenon
member\index_do.php on line 262
Solutions
In the $dsql->setquery ($query);
$dsql = new Dedesql ();
5, Tag plus link
{Dede:field name= ' keywords ' runphp= ' yes '}
if (!empty (@me)) {
$KWS = Explode (", @me);
@me = "";
foreach ($kws as $k) {
@me. = "<a href= '/plus/search.php?keyword= $k ' target= ' blank ' > $k </a>";
}
@me = str_replace (' + ', ' ", Trim (@me));
}
{/dede:field}
6, column Merge:
Update dede_archives set typeid= new ID where typeid= original ID
Update dede_addonarticle set typeid= new ID where typeid= original ID
6. New article
[Field:senddate runphp= ' yes ']
$ntime = time ();
$oneday = 3600 * 24;
if ($ntime-@me) < $oneday) @me = "<font color= ' red ' >[new]</font>";
else @me = "";
[/field:senddate]
7. Loop Tag Call latest comment
{dede:loop table= "dede_feedback" sort= "Dtime" row= "5"}
<a href= ' http://xxxxx/plus/view.php?aid=[field:aid/] ' target= ' _blank ' title= ' article title: [field:arctitle/]
Comment Time: [Field:dtime function= "Getdatemk (' @me ')"/]
Published by: [Field:username/] ' >
[Field:msg function= "cn_substr (' @me ', 50)"/]
</a>
<br>
{/dede:loop}
Source: Demoseo