关于百度《网页标题作弊详解》提供的标题写法,wecenter修改指南

it小博士 回复了问题 • 2 人关注 • 1 个回复 • 77 次浏览 • 2017-09-18 22:19 • 来自相关话题

wecenter的sitemap功能和百度主动推送功能完工,可以使用了

回复

fesiong 发起了问题 • 1 人关注 • 0 个回复 • 163 次浏览 • 2017-09-18 21:39 • 来自相关话题

wecenter的图片和文字不能居中

senlo 回复了问题 • 3 人关注 • 2 个回复 • 67 次浏览 • 2017-09-16 19:47 • 来自相关话题

想做一个签到功能

fesiong 回复了问题 • 2 人关注 • 1 个回复 • 85 次浏览 • 2017-09-14 16:42 • 来自相关话题

各位有没有碰到这种问题,手机版上传图片100%但没有反应

wetogether 回复了问题 • 3 人关注 • 2 个回复 • 65 次浏览 • 2017-09-14 16:34 • 来自相关话题

wecenter随机文章的实现

fesiong 发表了文章 • 1 个评论 • 87 次浏览 • 2017-09-14 09:54 • 来自相关话题

首先在/models/article.php里增加方法public function get_radom_article(){
$table1 = $this->get_table('article') ;
$sql = 'SELECT * FROM `'.$table1 .'` AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `'.$table1 .'`)-(SELECT MIN(id) FROM `'.$table1 .'`))+(SELECT MIN(id) FROM `'.$table1 .'`)) AS id) AS t2 WHERE t1.id >= t2.id ORDER BY t1.id LIMIT 10';//效率比order by radom高
return $this->query_all($sql);
}
然后在要显示随机文章页面的app下的模块的main函数的方法里加入TPL::assign('radom_articles', $this->model('article')->get_radom_article());
然后写一个页面 建议这个路径 views/default/block/sider_radom_post.tpl.htm 里写上<?php if ($this->radom_articles) { ?>
<!-- 相关问题 -->
<div class="aw-mod aw-text-align-justify question-related-list" style="padding:10px;">
<div class="mod-head">
<h3>随机文章</h3>
</div>
<div class="mod-body">
<ul style="font-size:12px; color:#999;">
<?php $indx = 1; foreach($this->radom_articles AS $key => $val) { ?>
<li>
<span class='artLi artLi<?php echo $indx; ?>'><?php echo $indx++; ?></span>
<a href="a/<?php echo $val['id']; ?>.html" title="<?php echo $val['title']; ?>"><?php echo $val['title']; ?></a>

</li>
<?php } ?>
</ul>
</div>
</div>
<!-- end 相关问题 -->
<?php } ?> 
最后就可以啦。 查看全部
首先在/models/article.php里增加方法
public function get_radom_article(){
$table1 = $this->get_table('article') ;
$sql = 'SELECT * FROM `'.$table1 .'` AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `'.$table1 .'`)-(SELECT MIN(id) FROM `'.$table1 .'`))+(SELECT MIN(id) FROM `'.$table1 .'`)) AS id) AS t2 WHERE t1.id >= t2.id ORDER BY t1.id LIMIT 10';//效率比order by radom高
return $this->query_all($sql);
}

然后在要显示随机文章页面的app下的模块的main函数的方法里加入
TPL::assign('radom_articles', $this->model('article')->get_radom_article());

然后写一个页面 建议这个路径 views/default/block/sider_radom_post.tpl.htm 里写上
<?php if ($this->radom_articles) { ?>
<!-- 相关问题 -->
<div class="aw-mod aw-text-align-justify question-related-list" style="padding:10px;">
<div class="mod-head">
<h3>随机文章</h3>
</div>
<div class="mod-body">
<ul style="font-size:12px; color:#999;">
<?php $indx = 1; foreach($this->radom_articles AS $key => $val) { ?>
<li>
<span class='artLi artLi<?php echo $indx; ?>'><?php echo $indx++; ?></span>
<a href="a/<?php echo $val['id']; ?>.html" title="<?php echo $val['title']; ?>"><?php echo $val['title']; ?></a>

</li>
<?php } ?>
</ul>
</div>
</div>
<!-- end 相关问题 -->
<?php } ?>
 
最后就可以啦。

wecenter的win2003,II6伪静态分享

fesiong 发表了文章 • 0 个评论 • 53 次浏览 • 2017-09-14 09:50 • 来自相关话题

这也是一个网友分享的,保证能用,现在分享给大家!
解压文件包,上传httpd.ini到根目录,然后后台开启伪静态即可![ISAPI_Rewrite]

3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^/$ /? [L]
RewriteRule ^/aws_external/(.*)$ /\?\/aws_external/$1 [L]
RewriteRule ^/topic/(.*)$ /\?\/topic/$1 [L]
RewriteRule ^/article/(.*)$ /\?\/article/$1 [L]
RewriteRule ^/upgrade/(.*)$ /\?\/upgrade/$1 [L]
RewriteRule ^/page/(.*)$ /\?\/page/$1 [L]
RewriteRule ^/users/(.*)$ /\?\/users/$1 [L]
RewriteRule ^/favorite/(.*)$ /\?\/favorite/$1 [L]
RewriteRule ^/explore/(.*)$ /\?\/explore/$1 [L]
RewriteRule ^/notifications/(.*)$ /\?\/notifications/$1 [L]
RewriteRule ^/inbox/(.*)$ /\?\/inbox/$1 [L]
RewriteRule ^/people/(.*)$ /\?\/people/$1 [L]
RewriteRule ^/setting/(.*)$ /\?\/setting/$1 [L]
RewriteRule ^/logout/(.*)$ /\?\/logout/$1 [L]
RewriteRule ^/publish/(.*)$ /\?\/publish/$1 [L]
RewriteRule ^/feature/(.*)$ /\?\/feature/$1 [L]
RewriteRule ^/home/(.*)$ /\?\/home/$1 [L]
RewriteRule ^/file/(.*)$ /\?\/file/$1 [L]
RewriteRule ^/account/(.*)$ /\?\/account/$1 [L]
RewriteRule ^/login/(.*)$ /\?\/login/$1 [L]
RewriteRule ^/reader/(.*)$ /\?\/reader/$1 [L]
RewriteRule ^/search/(.*)$ /\?\/search/$1 [L]
RewriteRule ^/crond/(.*)$ /\?\/crond/$1 [L]
RewriteRule ^/invitation/(.*)$ /\?\/invitation/$1 [L]
RewriteRule ^/admin/(.*)$ /\?\/admin/$1 [L]
RewriteRule ^/m/(.*)$ /\?\/m/$1 [L]
RewriteRule ^/question/(.*)$ /\?\/question/$1 [L]
RewriteRule ^/category/(.*)$ /\?\/home/explore/category/$1 [L]
RewriteRule ^/feed/(.*)$ /\?\/feed/$1 [L]
RewriteRule ^/first_(.*)$ /\?\/first_(.*)/$1 [L]
RewriteRule ^/follow/(.*)$ /\?\/follow/$1 [L]
RewriteRule ^/weixin/(.*)$ /\?\/weixin/$1 [L] 查看全部
这也是一个网友分享的,保证能用,现在分享给大家!
解压文件包,上传httpd.ini到根目录,然后后台开启伪静态即可!
[ISAPI_Rewrite]

3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^/$ /? [L]
RewriteRule ^/aws_external/(.*)$ /\?\/aws_external/$1 [L]
RewriteRule ^/topic/(.*)$ /\?\/topic/$1 [L]
RewriteRule ^/article/(.*)$ /\?\/article/$1 [L]
RewriteRule ^/upgrade/(.*)$ /\?\/upgrade/$1 [L]
RewriteRule ^/page/(.*)$ /\?\/page/$1 [L]
RewriteRule ^/users/(.*)$ /\?\/users/$1 [L]
RewriteRule ^/favorite/(.*)$ /\?\/favorite/$1 [L]
RewriteRule ^/explore/(.*)$ /\?\/explore/$1 [L]
RewriteRule ^/notifications/(.*)$ /\?\/notifications/$1 [L]
RewriteRule ^/inbox/(.*)$ /\?\/inbox/$1 [L]
RewriteRule ^/people/(.*)$ /\?\/people/$1 [L]
RewriteRule ^/setting/(.*)$ /\?\/setting/$1 [L]
RewriteRule ^/logout/(.*)$ /\?\/logout/$1 [L]
RewriteRule ^/publish/(.*)$ /\?\/publish/$1 [L]
RewriteRule ^/feature/(.*)$ /\?\/feature/$1 [L]
RewriteRule ^/home/(.*)$ /\?\/home/$1 [L]
RewriteRule ^/file/(.*)$ /\?\/file/$1 [L]
RewriteRule ^/account/(.*)$ /\?\/account/$1 [L]
RewriteRule ^/login/(.*)$ /\?\/login/$1 [L]
RewriteRule ^/reader/(.*)$ /\?\/reader/$1 [L]
RewriteRule ^/search/(.*)$ /\?\/search/$1 [L]
RewriteRule ^/crond/(.*)$ /\?\/crond/$1 [L]
RewriteRule ^/invitation/(.*)$ /\?\/invitation/$1 [L]
RewriteRule ^/admin/(.*)$ /\?\/admin/$1 [L]
RewriteRule ^/m/(.*)$ /\?\/m/$1 [L]
RewriteRule ^/question/(.*)$ /\?\/question/$1 [L]
RewriteRule ^/category/(.*)$ /\?\/home/explore/category/$1 [L]
RewriteRule ^/feed/(.*)$ /\?\/feed/$1 [L]
RewriteRule ^/first_(.*)$ /\?\/first_(.*)/$1 [L]
RewriteRule ^/follow/(.*)$ /\?\/follow/$1 [L]
RewriteRule ^/weixin/(.*)$ /\?\/weixin/$1 [L]

打赏加悬赏功能插件,重新整理发布,献给有需要的用户

茶小白 回复了问题 • 3 人关注 • 1 个回复 • 146 次浏览 • 2017-09-14 09:10 • 来自相关话题

后台显示编辑器还是 Markdown 编辑器和纯文本选项

回复

fesiong 回复了问题 • 1 人关注 • 2 个回复 • 69 次浏览 • 2017-09-13 21:28 • 来自相关话题

WeCenter支持php 5.5吗?兼容性如何?

回复

fesiong 回复了问题 • 1 人关注 • 2 个回复 • 53 次浏览 • 2017-09-13 21:26 • 来自相关话题