Comments (8)
3.controller\home.php 249-250行,published 应为 publish
$this->_posts = $this->posts_mdl->get_posts('post', 'published', NULL,
$this->_limit, $this->_offset)->result();
$this->_total_count = $this->posts_mdl->get_posts('post', 'published',
NULL, 10000, 0)->num_rows();
Original comment by [email protected]
on 12 Apr 2010 at 3:59
from stblog.
4.附件没有删除但显示‘成功删除附件’
controllers/admin/medias.php
244-253行
if($attachment && $this->_is_writable($attachment))
{
$info = unserialize($attachment->text);
@unlink($info['path']);
$this->posts_mdl->remove_post($pid);
}
return TRUE;
应为
if($attachment && $this->_is_writable($attachment))
{
$info = unserialize($attachment->text);
@unlink($info['path']);
$this->posts_mdl->remove_post($pid);
return TRUE;
}
return FALSE;
Original comment by [email protected]
on 13 Apr 2010 at 3:13
from stblog.
5.1024*768分辨率下 blog内大图出界
themes/default/js/common.js
9-24行
if (document.images[i].width>600)
...
600可考虑改为550
Original comment by [email protected]
on 13 Apr 2010 at 1:37
from stblog.
6.没有实现管理员审核其他作者发布的“待审核”的文章的功
能
可以参考审核留言的代码段
修改
controllers/admin/posts.php
views/admin/manage_posts.php
models/posts_mdl.php
等三个文件
Original comment by [email protected]
on 15 Apr 2010 at 2:09
from stblog.
感谢提交bug和修改意见,会在近期修改并发布。
Live development也可以关注 github.com/stblog/Stblog
Original comment by huyanggang
on 15 Apr 2010 at 7:08
from stblog.
7.static function dateWord($from, $now),类似如果9:56 到
9:59显示若干分钟前,如果到了
10:01,则显示1小时前等问题
application/libraries/Common.php
可考虑将dateWord方法代码修改为
/**
* 词义化时间
*
* @access public
* @param string $from 起始时间
* @param string $now 终止时间
* @return string
*/
public static function dateWord($from, $now) {
$seconds = $now - $from;
$days = idate('z', $now) - idate('z', $from);
/** 如果不是同一年 */
if (idate('Y', $now) != idate('Y', $from)) {
return date('Y年m月d日', $from);
}
/** 如果是同一天 */
if ($days == 0) {
/** 如果是一小时内 */
if ($seconds < 3600) {
/** 如果是一分钟内 */
if ($seconds < 60) {
return sprintf('%d秒前', $seconds);
}
$minutes = intval($seconds / 60);
return sprintf('%d分钟前', $minutes);
}
$hours = idate('H', $now) - idate('H', $from);
return sprintf('%d小时前', $hours);
}
/** 如果是昨天 */
if ($days == 1) {
return sprintf('昨天 %s', date('H:i', $from));
}
/** 如果是7天内 */
if ($days < 7) {
return sprintf('%d天前', $days);
}
/** 如果是同一年内 */
return date('n月j日', $from);
}
Original comment by [email protected]
on 16 Apr 2010 at 3:01
from stblog.
感谢提交,会在下个小版本中更正.
Original comment by huyanggang
on 16 Apr 2010 at 10:37
- Changed state: Started
from stblog.
除了“用wysiwyg编辑器给语法高亮的代码添加摘要break,显示��
�有问题”这个问题没有修正,其
他问题均已修正。
这个提交我没看懂,我做了测试,一切比较正常。
Original comment by huyanggang
on 18 Apr 2010 at 2:12
- Changed state: Fixed
from stblog.
Related Issues (17)
- 建议: HOT 1
- 后台-设置 IE8下无提交按钮
- 后台分类与标签管理bug HOT 1
- 比较关注的几个问题
- 一些BUG与建议~
- IE浏览器兼容问题
- 引用问题
- 管理:“基本设置”页中无法保存设置
- 后台一点登陆就出现404? HOT 2
- 用户注册验证有2个bug HOT 4
- 当前发布版本的一个问题 HOT 5
- 同一用户同时多次登录会导致错误 HOT 4
- 在线编辑主题存在的BUG HOT 1
- 首页显示的文章没有阅读全文? HOT 2
- C++代码的%后面紧跟数字会被过滤 HOT 3
- 后台评论管理,分页出现BUG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stblog.