上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 64 下一页
摘要: 为了加速搜索引擎的收录和用户的友好度,今天在资讯内容页面加入tags进行聚合优化,这样大大提高相关度,有利于词库的增加。 附上代码: {if $tag} <p class="post-tag"> <i class="dt-iconfont dt-icon-pricetag aui-font-size 阅读全文
posted @ 2020-02-06 17:32 圆柱模板 阅读(213) 评论(0) 推荐(0)
摘要: 为了更好的迎合seo,在移动端方面进行改进,今天给大家分享关于7.0移动手机端列表资讯,调取tag关键词 附上代码: {if $v[tag]} {php $tag = str_replace(',', ' ', $v[tag]);} {php $news_tags = explode(' ', $v 阅读全文
posted @ 2020-02-06 17:19 圆柱模板 阅读(162) 评论(0) 推荐(0)
摘要: 分享一个纯php分词封装的类 <?php /* * 本插件非成品插件,只是封装的一个底层类,可用于各种需要分词的,同义词替换的场合 */ class trie { protected $dict; protected $dictFile; protected $specSymbol; //规格常见符 阅读全文
posted @ 2020-02-05 20:05 圆柱模板 阅读(226) 评论(0) 推荐(0)
摘要: 因为seo需要,写了一个脚本,一键提交企业会员商铺地址到熊掌号+mip推送,希望对大家有用! 使用方法,在根目录新建一个tijiao.php文件 <?php /* 百度主动推送三项合一功能 作者:68喜科技 用于:DT7.0 功能模块:提交企业会员 */ //引入错误显示 error_reporti 阅读全文
posted @ 2020-02-04 23:36 圆柱模板 阅读(180) 评论(0) 推荐(0)
摘要: 代码分三部分进行,第一部分是C层(Controller),第二部分是M层(Model),第三部分是V层(View) 1.控制器层WeixinController $data = array( 'pic'=>'',//图片地址 'title'=>'',//标题 'description'=>''//描 阅读全文
posted @ 2020-02-04 16:24 圆柱模板 阅读(577) 评论(0) 推荐(0)
摘要: 新增一个destoon7.0中sitemap.xml把archiver地址输出到里面,这样有利于蜘蛛到抓取,添加到小功能,给自己做个笔记,希望也能帮助到大家! 首先找到 /module/extend/sitemaps.htm.php文件,在 $today = timetodate($DT_TIME, 阅读全文
posted @ 2020-02-04 15:23 圆柱模板 阅读(261) 评论(0) 推荐(0)
摘要: 手机号码归属地查询php函数 function tel_location($ip) { $u = “https://www.youdao.com/smartresult-xml/search.s?type=mobile&q=$ip”; $r = HttpRequest($u); preg_match 阅读全文
posted @ 2020-02-03 17:16 圆柱模板 阅读(366) 评论(0) 推荐(0)
摘要: php进行过滤用户名、邮箱、手机账号中间字符串以*隐藏 在自定义函数文件中加入(网站根目录api/extend.func.php) //用户名、邮箱、手机账号中间字符串以*隐藏 function xhdestar($str) { if (strpos($str, '@')) { $email_arr 阅读全文
posted @ 2020-02-03 17:11 圆柱模板 阅读(447) 评论(0) 推荐(0)
摘要: php去除html代码中img图片标签宽高函数,应对采集数据出现图片大小限制问题。 function content_strip($content){ $content = preg_replace('/<img[^>]*src=[\'"]?([^>\'"\s]*)[\'"]?[^>]*>/ie', 阅读全文
posted @ 2020-02-03 17:07 圆柱模板 阅读(666) 评论(0) 推荐(0)
摘要: 因为运营需要,有些模块是批量生成的内容,图片地址都是一样的,如果不小心删除一篇内容,会导致批量生成的其他内容图片都丢失,这样很苦恼,今天就给大家带来这个,去除:删除信息删除相关图片功能 对应模块class.php 如:article.class.php if($this->itemid) { $po 阅读全文
posted @ 2020-02-03 15:51 圆柱模板 阅读(227) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 64 下一页