摘要: {dede:field name='position'/}替换为{dede:field name='position' runphp='yes'}$b = array("主页");$c = array("home");@me=str_replace($b,$c,@me);{/dede:field}英... 阅读全文
posted @ 2014-11-10 09:42 念雷星 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 不得不感叹DedeCMS的强大,可定制性和扩展性太强了,就算不懂php也可以很轻松的修改源码。今天碰到个新问题,用DedeCMS搞了个中英双语的网站,其他的都修改好了,上线之前发现分页条中英文版中都是中文的,于是自己动手DIY了一下。1、打开include/arc.listview.class.ph... 阅读全文
posted @ 2014-11-04 16:12 念雷星 阅读(675) 评论(0) 推荐(0) 编辑
摘要: dedecms缩略图模糊终极完美解决办法1、打开include/extend.func.php,增加函数function thumb($imgurl, $width, $height, $bg = true){global $cfg_mainsite,$cfg_multi_site;$thumb =... 阅读全文
posted @ 2014-07-31 17:03 念雷星 阅读(278) 评论(0) 推荐(0) 编辑
摘要: {dede:arclist row='10'}[field:fulltitle runphp='yes']$titlefull = @me;$titleshow =cn_substr($titlefull,90);if($titlefull!=$titleshow){$dot = "…";}else... 阅读全文
posted @ 2014-07-24 09:43 念雷星 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 如果你是dedecms作为主站,论坛作为辅助站,那么这个方法比较适合你。一般dedecms整合discuz之后有个问题,就是在dedecms端注册的用户需要在discuz登陆一次才可以在论坛激活,当然激活以后就可以同步登陆推出了,但是这个步骤会给用户带来一些困惑和不便。本方法目的就是去掉这个激活步骤... 阅读全文
posted @ 2014-07-23 20:28 念雷星 阅读(788) 评论(2) 推荐(0) 编辑
摘要: 使用arclist标签调用文章的时候才发现,根本无法调用相关文章。下面给出解决办法,希望帮到需要的人。找到/include/taglib/arclist.lib.php文件然后打开。然后在大约300行代码的位置。将下面的代码 if($CrossID=='') $orwheres[] = ' arc.... 阅读全文
posted @ 2014-07-18 09:10 念雷星 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.概述 织梦的模板标签类似于XML格式,所有的模板都含有定界符,默认情况下是{dede:*}和{/dede:*},“*”代表模板标记名称。一般情况下{dede:*}和{/dede:*}是成对出现的。 每个模板都会生成一个模板缓存文件,默认是在站点根目录data/tplcache目录。在模板调试的时... 阅读全文
posted @ 2014-05-29 23:10 念雷星 阅读(187) 评论(0) 推荐(0) 编辑
摘要: {dede:arclistaddfields='trueprice,price'channelid='6' typeid=8 row=10orderby='pubdate' }本站价格:[field:trueprice/]市场价格:[field:price/]{/dede:arclist}注:途中红... 阅读全文
posted @ 2014-05-20 22:31 念雷星 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 我们有时需要一些带数字递增的列表,如文章排行、推荐排行等等,这就需要在列表文章前显示递增的数字了。对此官方给出了方法。这个标签:[field:autoindexrunphp='yes']@me=$GLOBALS['autoindex'];[/field:autoindex]你可以这样使用:{dede... 阅读全文
posted @ 2014-05-20 17:33 念雷星 阅读(874) 评论(0) 推荐(0) 编辑
摘要: 1,用户登录bbs,通过logging.php文件中,使用函数uc_user_login验证,如果验证成功,将调用函数uc_user_synlogin(位于uc_client下的client.php文件中),在这个函数中调用 uc_api_post('user', 'synlogin', array... 阅读全文
posted @ 2014-05-17 13:01 念雷星 阅读(1811) 评论(0) 推荐(0) 编辑