三月282008

【轉貼】F2Blog 個性標題小日曆 增加方法

星期五, 三月 28, 2008 13:25 | 1,954位訪客跟1,123 Bot看過
分類於: F2blog

在標題的前面加入個性的小日曆,前面有人詢問過,我修改了幾個文件,沒有記下來,懶得去查了。今天花些時間對比文件搞出來了,希望對大家美化blog有些幫助。

顯示的結果

http://blog.fashion-style.com.tw/attachments/200803/9481852147.jpg

或請參考作者的blog: www.zjfstar.cn

1.打開 include/content.inc.php 文件,找到79行,也就是

<?php
<
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 .":".." "..":".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;}

5.下載 date-bg.gif 到正在使用的skins目錄中,這個小日曆標題圖片你可以自己用photoshop設計,以適合你的blog風格。

http://blog.fashion-style.com.tw/attachments/200803/4850752708.gif

轉貼自http://forum.f2blog.com/thread-3963-1-2.html

歷史上的今天

Related Posts with Thumbnails

加入書籤:

  • del.icio.us
  • Facebook
  • Google Bookmarks
  • fiigo
  • funP
  • Hemidemi
  • MyShare
  • MySpace
  • push
  • Twitter
  • Twitthis
  • udn
  • YahooMyWeb

相關文章

Tags:

BlogAD部落格廣告行銷

 

發表您的評論

本站支援 Gravatar 大頭貼,您可於「Gravatar官方網站」免費取得專屬大頭貼。

防止垃圾訊息: