Pages

Subscribe:

Labels

2014年7月20日 星期日

怎麼開啟Blogger的嵌套式留言(threaded comments)? (包含自訂版型怎麼安裝)



嵌套式留言也有人叫階層式留言,總之就是可以回覆留言的功能。
#more#
進入Blogger的後台,到你要開啟嵌套式留言的網誌的「設定」中的「其他」裡「允許網誌資訊提供」改成「完整」,然後再把「文章和留言」裡的「留言位置」改成「嵌入」

如果你使用的是預設版型,一定會出現嵌套式留言,但如果是自訂版型,而且沒有出現的話,必須到後台的「範本」「編輯HTML」修改html。
用搜尋去找到這段
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comments'/>
</b:if>

並且替換成下面這段
<b:if cond='data:blog.pageType == "static_page"'>
<b:if cond='data:post.showThreadedComments'>
<b:include data='post' name='threaded_comments'/>
<b:else/>
<b:include data='post' name='comments'/>
</b:if>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:post.showThreadedComments'>
<b:include data='post' name='threaded_comments'/>
<b:else/>
<b:include data='post' name='comments'/>
</b:if>
</b:if>

然後「儲存範本」就完成了。
留言的樣式用CSS修改,可以從進入後台的「範本」「自訂」「進階」的「新增CSS」覆寫或加入新的CSS,或是直接在「編輯HTML」增修。
我的CSS是這樣
.comments {
  clear: both;
  margin : auto;
  margin-top: 10px;
  margin-bottom: 0px;
  line-height: 1em;
  width: 570px;

 text-align:left;
}
.comments .comments-content {
  font-size: 12px;
  margin-bottom: 16px;
  font-family: Verdana;
  font-weight: normal;
  text-align:left;
  line-height: 1.4em;
}
.comments .comment .comment-actions a {
  cursor:pointer;
  color:#3366d5;
  padding:2px 3px; margin-right:10px;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  border-radius:6px;
  font:9px sans-serif;

}
.comments .comment .comment-actions a:hover {
  text-decoration: none;
  color: #cc6600;
  text-decoration:underline;
}
.comments .comments-content .comment-thread ol {
  list-style-type: none;
  padding: 0;
  text-align: none;
}
.comments .comments-content .inline-thread {
  padding: 0.5em 1em;
}
.comments .comments-content .comment-thread {
  margin: 8px 0px;
}
.comments .comments-content .comment-thread:empty {
  display: none;
}
.comments .comments-content .comment-replies {
  margin-top: 1em;
  margin-left: 40px;
  font-size:12px;
  background:#eeeeee;
}
.comments .comments-content .comment {
  margin-bottom:16px;
  padding: 5px 10px 8px 5px;
  background:#eeeeee;

}
.comments .comments-content .comment:first-child {
  padding-top:16px;
}
.comments .comments-content .comment:last-child {
  border-bottom:0;
  padding-bottom:0;
}
.comments .comments-content .comment-body {
  position:relative;
}
.comments .comments-content .user {
  font-style:normal;
  font-weight:bold;
}
.comments .comments-content .icon.blog-author {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin: 0 0 -4px 6px;
}
.comments .comments-content .datetime {
  margin-left:6px;
}
.comments .comments-content .comment-header,
.comments .comments-content .comment-content {
  margin:0 0 8px;
}
.comments .comments-content .comment-content {
  text-align:none;
}
.comments .comments-content .owner-actions {
  position:absolute;
  right:0;
  top:0;
}
.comments .comments-replybox {
  border: none;
  height: 250px;
  width: 100%;
}
.comments .comment-replybox-single {
  margin-top: 5px;
  margin-left: 48px;
}
.comments .comment-replybox-thread {
  margin-top: 5px;
}
.comments .comments-content .loadmore a {
  display: block;
  padding: 10px 16px;
  text-align: center;
}
.comments .thread-toggle {
  cursor: pointer;
  display: inline-block;
}
.comments .continue {
  cursor: pointer;
}
.comments .continue a {
  display: block;
  padding: 0.5em;
  font-weight: bold;
}
.comments .comments-content .loadmore {
  cursor: pointer;
  max-height: 3em;
  margin-top: 3em;
}
.comments .comments-content .loadmore.loaded {
  max-height: 0px;
  opacity: 0;
  overflow: hidden;
}
.comments .thread-chrome.thread-collapsed {
  display: none;
}
.comments .thread-toggle {
  display: inline-block;
}
.comments .thread-toggle .thread-arrow {
  display: inline-block;
  height: 6px;
  width: 7px;
  overflow: visible;
  margin: 0.3em;
  padding-right: 4px;
}
.comments .thread-expanded .thread-arrow {
  no-repeat scroll 0 0 transparent;
}
.comments .thread-collapsed .thread-arrow {
  no-repeat scroll 0 0 transparent;
}
.comments .avatar-image-container {
  float: left;
  width: 36px;
  max-height: 36px;
  overflow: hidden;
}
.comments .avatar-image-container img {
  width: 36px;
}
.comments .comment-block {
  margin-left: 48px;
  position: relative;
}

2014年7月3日 星期四

用PS做GIF[Photoshop]

以前有發過用免費軟體AVD Video ProcessoreUlead GIF Animator製作GIF的教學,後來我發現PS一套就能一次解決影格轉gif跟gif製作。

教學示範的Photoshop版本是CS6的,PS的讀入視訊功能是從Photoshop Extended CS5新增的,Adobe官方手冊的資料-讀入視訊檔案與影像順序
能夠將影片製成圖層的只有Photoshop的32bit版本,如果你是安裝64bit的,就沒辦法製作了,右邊沒有標示「(64 Bit)」的就是32 Bit的PS。(下圖)
PSgif00
PS支援的影片格式只有mov, avi, mpg, mpeg, mp4,剛好QuickTime都支援這些格式(沒錯 反正PS跟QT有掛勾),如果出現格式正確仍無法讀入,建議安裝QuickTime,不管Free版或Pro版都可以,Pro版還能順便剪影片剪影片[QuickTime Pro]
PSgif01
進入PS,選擇「檔案」「讀入」「視訊影格到圖層」。
PSgif02
讀入成功會彈出視窗,「僅限選取的範圍」能夠調整要修改的範圍,之後按「確定」

PSgif03
要修改影格,必須開啟「時間軸」,從「視窗」裡打開。讀入後的影格會轉成圖層,在「圖層」中可以看到所有的影格的圖層。
PSgif03-2
但是存檔跟平面圖不一樣,選擇「儲存為網頁用...」儲存成gif,如果選「另存新檔」只會存到當前的平面圖。
PSgif04
選擇「儲存...」才能存成gif,完成只會是平面圖。

※補充※「時間軸」播放的速度跟實際gif的速度差很多,「儲存為網頁用」的視窗中播放的速度比較接近實際gif的速度,這是因為PS讀取圖層的關係。

PSgif_ACU 
感謝大家閱讀<3

剪影片[QuickTime Pro]

QuickTime剪影片的功能只有Pro才有,支援的格式有mov, mp4, m4v, mpeg, 3gp, avi,但是輸出只能是mov檔,轉檔建議使用格式工廠。其他簡單的剪輯軟體參考Free Video Dub
[軟體名稱]QuickTime
[軟體版本]v7.7.4
[軟體性質]Pro須付費,Free為免費
[軟體語言]多國語言
[官方網站]https://www.apple.com/
[軟體下載]https://www.apple.com/tw/quicktime/extending/
#more#
QTcut

更新"PttChrome"[Chrome瀏覽BBS的擴充原件]

Chrome修改擴充原件的認證設定之後,現在改用PttChrome
#more#
[名稱]PttChrome
[下載]https://chrome.google.com/webstore/detail/pttchrome/hhnlfapopmaimdlldbknjdgekpgffmbo
啟動後會開啟一個批踢踢站的分頁,直接使用就可以了,將這頁分頁加入書籤,下次開啟就從書籤開啟。對畫面右鍵會出現擴充元件的設定,包括前往其他BBS站也是從這裡設定,還能夠設定瀏覽操作(例如滑鼠瀏覽)

[名稱]ZTerm Applet
[安裝]直接在網址列輸入chrometerm.appspot.com

[名稱]BBSFOX
[下載]https://bitbucket.org/bbsfox/bbsfox-for-google-chrome/downloads
兩個crx都要安裝,下載後,打開Chrome的擴充原件頁面,直接拖拉進去安裝

[名稱]Pcmanfx
[下載]https://docs.google.com/file/d/0B-K9h3GKW2VGZjBiNzE3ZmQtZGZkNi00MzAzLTk4NjktOTUxOTQ3ZGU1NGYz/edit
下載後,打開Chrome的擴充原件頁面,直接拖拉進去安裝