GithubHelp home page GithubHelp logo

小问题 about stblog HOT 8 CLOSED

wshero avatar wshero commented on July 19, 2024
小问题

from stblog.

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
感谢提交bug和修改意见,会在近期修改并发布。

Live development也可以关注 github.com/stblog/Stblog

Original comment by huyanggang on 15 Apr 2010 at 7:08

from stblog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
感谢提交,会在下个小版本中更正.

Original comment by huyanggang on 16 Apr 2010 at 10:37

  • Changed state: Started

from stblog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
除了“用wysiwyg编辑器给语法高亮的代码添加摘要break,显示��
�有问题”这个问题没有修正,其
他问题均已修正。

这个提交我没看懂,我做了测试,一切比较正常。

Original comment by huyanggang on 18 Apr 2010 at 2:12

  • Changed state: Fixed

from stblog.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.