当前位置 : dotclear

标签 dotclear 下的文章

Dotclear 2.6-RC — codename: Traviata

    <p>
        It is not without emotion, as Violetta would say, that we are getting ready to unveil before your astonished eyes the candidate release of the next version of Dotclear. This version precedes the final one by a few weeks. We were so eager to expose it to your rigorous and nevertheless gracious testing that we indeed decided not to wait until the final version to make it public. Ladies and gentlemen, let me introduce to you Dotclear 2.6-RC.
    </p>

    <h3 style="font-family:Arial, Helvetica, sans-serif;color:#030E1A;font-size:1.2em;">
        The set
    </h3>
    <p>
        Because every show needs an appropriate set, we have entirely repainted the stage. We therefore present you with a new visual identity, together with a set of icons that match the new color scheme:
    </p>
    <p>
        <img src="http://dotclear.org/public/images/2.6/palette-traviata.png" alt="palette-traviata.png" title="palette-traviata.png, Oct 2013" />
    </p>

- 阅读剩余部分 -

Dotclear发布2.5.3版

9月13日,dotclear 2.5.3版发布

And, once again, a new version! This one is slightly ahead of plan—a good sign of sustained development activity—and arrives before the upcoming meeting at Mozilla Paris on September 21st.

It features bug fixes, improved antispam filter management (to better address the ongoing plague polluting our favorite blogs), and a few minor improvements here and there, such as the newly implemented transparency for the thumbnails of PNG images.

Your dashboard should offer you to upgrade your installation today or tomorrow (depending on your settings). There's also a patchfor the developers who prefer this method.

This branch of Dotclear, containing all versions from 2.5 to 2.5.3, will from now on be under maintenance only, mostly to fix critical errors should there be any. Indeed, we are now focusing our efforts on the next "major" version, 2.6, which we plan to release in the coming weeks (ideally in October, but time does fly...).

Regarding this future version, let's just say that we're very impatient to have it out, because it's much sexier than the current one!

Finally, let's all congratulate JcDenis (and the mother!), esteemed long-term contributor, for the birth of his little boy \o/ Welcome to the baby and best wishes to his parents!

下载:

http://download.dotclear.org/latest.zip

http://download.dotclear.org/latest.tar.gz

Dotclear修改上传文件名称

编辑

adminmedia_item.php

找到
 

# Upload a new fileif ($file && !empty($_FILES['upfile']) && $file->editable && $core_media_writable)
{
try {
files::uploadStatus($_FILES['upfile']);
$core->media->uploadFile($_FILES['upfile']['tmp_name'],$file->basename,null,false,true);
http::redirect($page_url.'&id='.$id.'&fupl=1');
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}

 

修改为

- 阅读剩余部分 -

dotclear头像插件

一个是Noodles,一个是Gravatar,通过对比还是Noodles更好用,配置丰富,可以定义显示页面,显示位置。

截取dotclear文章的前200字显示在列表中

     <!-- # Entry with an excerpt -->
     <tpl:EntryIf extended="1">
       <div class="post-content">{{tpl:EntryFirstImage size="sq" class="left"}} {{tpl:EntryExcerpt encode_html="1" remove_html="1" cut_string="200"}} [...]</div>
     </tpl:EntryIf>
     
     <!-- # Entry without excerpt -->
     <tpl:EntryIf extended="0">
       <div class="post-content">{{tpl:EntryFirstImage size="sq" class="left"}} {{tpl:EntryContent encode_html="1" remove_html="1" cut_string="200"}} [...]</div>
     </tpl:EntryIf>
     
     <!-- # --BEHAVIOR-- publicEntryAfterContent -->
     {{tpl:SysBehavior behavior="publicEntryAfterContent"}}

dotclear默认模板结构

[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh">
<head>
  
</head>

<body class="dc-home">
    <div id="page">
        <div id="top"></div>
        <div id="wrapper">
            <div id="main">
                <div id="content"></div>
            </div> <!-- End #main -->

            <div id="sidebar"></div>
        </div> <!-- End #wrapper -->
        <div id="footer"></div>
    </div> <!-- End #page -->
</body>
</html>

终于把Dotclear的中文语言包安装上了

下载的语言包里面为zh-cn,通过FTP修改为zh就行了,现在后台为中文(从用户偏好admin/preferences.php设置),前台显示为英文(从博客设置admin/blog_pref.php设置)。