2017-7-30 aslronx
原文:https://mp.weixin.qq.com/debug/wxadoc/introduction/#填写主体信息并选择验证方式2017-7-23 aslronx
原文:http://www.sohu.com/a/192718170_999767932017-7-19 aslronx
原文:https://mp.weixin.qq.com/debug/wxagame/dev/index.html?t=20181152017-7-15 aslronx
原文:https://fir.im/ep1b2017-7-11 aslronx
原文:http://blog.csdn.net/u013172064/article/details/669712572017-7-8 aslronx
http://www.w3school.com.cn/sql/
SELECT * FROM dede_arctype WHERE id=2;
SELECT * FROM dede_arctype WHERE typeid=77;
select *from dede_sysconfig where varname=cfg_link;
UPDATE dede_arctype SET id = 2 WHERE id = 77;
UPDATE dede_addonarticle SET id = 2 WHERE id = 77;
DELETE FROM table_name WHERE column_name = some_value;
DELETE FROM sysconfig WHERE column_name = some_value;
DELETE FROM sysconfig WHERE varname= 'swt_link';
☆☆☆☆☆★★★★★
文章批量移动
UPDATE dede_addonarticle SET typeid = 9 WHERE typeid = 40;
UPDATE dede_archives SET typeid = 9 WHERE typeid = 40;
UPDATE dede_arctiny SET typeid = 9 WHERE typeid = 40;
UPDATE dede_arctype SET reid = 8 WHERE reid = 9;
2017-7-8 aslronx
//随机图片
var m=3;
var n=Math.floor(Math.random()*m+1)
document.write ("<img src='/images/nt"+n+".jpg' border=0 class='news-thumb'/>");
//php代码
[field:array runphp='yes']
@me = (strpos(@me['litpic'],'defaultpic') ? "
<script src='/images/road.js'></script>
" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'class='news-thumb'/></a>
");
[/field:array]
2017-7-8 aslronx
DELETE FROM dede_addonarticle WHERE aid >= 1 and aid <= 200000;
DELETE FROM dede_arctiny WHERE id >= 1 and id <= 200000;
DELETE FROM dede_archives WHERE id >= 1 and id <= 200000;
ALTER TABLE `dede_archives` AUTO_INCREMENT =1;
ALTER TABLE `dede_arctiny` AUTO_INCREMENT =1;
ALTER TABLE `dede_addonarticle` AUTO_INCREMENT =1;
TRUNCATE TABLE `dede_archives` ;
TRUNCATE TABLE `dede_arctiny` ;
TRUNCATE TABLE `dede_addonarticle` ;
2017-7-8 aslronx
头部引用css和js标签
{dede:global.cfg_templets_skin/}
网站标题: {dede:global.cfg_webname/}
网站描述: {dede:global.cfg_description/}
网站关键词:{dede:global.cfg_keywords/}
网站版权: {dede:global.cfg_powerby/}
网站备案号:{dede:global.cfg_beian/}
栏目的标签
当前位置的信息:{dede:field name='position'/}
当前栏目的id号:{dede:field.id/}
当前栏目的名称:{dede:field name='typename' /} {dede:field.title/}
当前栏目的内容:{dede:field.content/}
当前栏目seo标题:{dede:field.seotitle /}
当前栏目的关键字:{dede:field.keywords/}
当前栏目的描述:{dede:feild.description}
当前栏目左侧导航
<ul class="s_nav">
{dede:channel type='son' noself='no' currentstyle="<li class='now'><a href=''>~typename~</a></li>" }
<li><a href="[field:typeurl/]">[field:typename/]</a></li>
{/dede:channel}
</ul>
二级导航
{dede:channelartlist typeid='top' row='8'}
{dede:field name='typeurl} {dede:field name='typename'/} //一级栏目的信息
{dede:channel type='son' row='5'}
[field:typelink/] [field:typename/] 调用二级导航目录链接
{/dede:channel}
{/dede:channelartlist}
调用一个固定的栏目
{dede:type typeid='1'}<a href="[field:typeurl/]">[field:typename/]</a> {/dede:type}
展示分页列表
{dede:list pagesize='10'}
文章的图片:{field:litpic /}
判断图片是不是为空:
[field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
日期:[field:pubdate function="GetDateTimeMK(@me)"/]
点击:[field:click/]
好评:[field:scores/]
好评:[field:scores/]
文章的描述:[field:description/]
文章的标题:[field:title/]
文章的url:[field:arcurl/]
{/dede:list}
展示分页页码
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
根据指定的栏目id找到文章
h:热门
c:推荐
f:幻灯
{dede:arclist flag='c' typeid='4' titlelen=42 row=6 orderby=click }
文章的图片:{field:litpic /}
判断图片是不是为空:
[field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
日期:[field:pubdate function="GetDateTimeMK(@me)"/]
点击:[field:click/]
好评:[field:scores/]
好评:[field:scores/]
文章的描述:[field:description/]
文章的标题:[field:title/]
文章的url:[field:arcurl/]
[field:description function='cn_substr(@me,80)'/]
{/dede:arclist}
具体文章内容的一些标签
{dede:field.title/}
时间:{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}
来源:{dede:field.source/}
作者:{dede:field.writer/}
文章描述
{dede:field.description runphp='yes'}
if(@me<>'' )@me = '
<div class="intro">'.@me.'</div>
';
{/dede:field.description}
文章内容
{dede:field.body/}
责任编辑
{dede:adminname/}
{dede:include filename="header_m.htm"/}