三月282008
【轉貼】F2Blog 個性標題小日曆 增加方法
分類於: F2blog
No Comments
->
在標題的前面加入個性的小日曆,前面有人詢問過,我修改了幾個文件,沒有記下來,懶得去查了。今天花些時間對比文件搞出來了,希望對大家美化blog有些幫助。
或請參考作者的blog: www.zjfstar.cn
1.打開 include/content.inc.php 文件,找到79行,也就是
<?php
<div class="ContentRight"></div>
<div class="ContentRight"></div>
在下面加入
<div style="margin:0px 2px -4px 0px;" alt="" class="CateIconSP"><div class="DateYM"><?php echo substr(format_time([\'currFormatDate\'],[\'postTime\']),2,5)?></div><div class="DateDay"><?php echo substr(format_time([\'currFormatDate\'],[\'postTime\']),8,2)?></div></div>
2.在下面大概4,5行處找到
複製內容到剪貼板
代碼:
代碼:
<?php echo .":".." "..":".format_time([\'currFormatDate\'],[\'postTime\'])?>
<?php echo .":".." "..":".format_time([\'currFormatDate\'],[\'postTime\'])?>
替換為
複製內容到剪貼板
代碼:
代碼:
<?php echo .":".." "..":".substr(format_time([\'currFormatDate\'],[\'postTime\']),11,5)?>
<?php echo .":".." "..":".substr(format_time([\'currFormatDate\'],[\'postTime\']),11,5)?>
3.這個 你可以打開 include/language/home zh_cn.php
或者打開 include/language/zh_tw.php
複製內容到剪貼板
代碼:
代碼:
= "時間";
= "時間";
如果你像我這麼懶的話,你可以在上面替換中直接把 改為 "時間"(注意帶上兩個雙引號)
4.打開自己正在使用的skins目錄裡面的 typography.css 文件,在最後添加
複製內容到剪貼板
代碼:
代碼:
.CateIconSP {background:url(\'date-bg.gif\');float:left; width:43px; height:45px; margin-right:80px;}.DateYM {text-align:center;font-size:11px;color:#fff; font-family:"Courier New", Courier;}.DateDay {text-align:center;font-size:16px;color:#999;line-height:30px;font-family:Verdana; font-weight:bold;}
.CateIconSP {background:url(\'date-bg.gif\');float:left; width:43px; height:45px; margin-right:80px;}.DateYM {text-align:center;font-size:11px;color:#fff; font-family:"Courier New", Courier;}.DateDay {text-align:center;font-size:16px;color:#999;line-height:30px;font-family:Verdana; font-weight:bold;}
5.下載 date-bg.gif 到正在使用的skins目錄中,這個小日曆標題圖片你可以自己用photoshop設計,以適合你的blog風格。
轉貼自http://forum.f2blog.com/thread-3963-1-2.html

















