2012年2月29日 星期三

photoshop圖層特效只影響下一個圖層

圖層特效只影響下一個圖層
在特效圖層上按alt一下,然後不要壓住滑鼠左鍵,直接滑到欲影響的圖層會有兩個圈

2012年2月22日 星期三

FB讚要正常顯示人數

目前測試用舊方法比較OK
//STEP1<html xmlns="http://www.w3.org/1999/xhtml" >
//加上
xmlns:fb=http://www.facebook.com/2008/fbml
//STEP2重點來了 app_id要寫啊fb:admins要寫啊head裡
<meta property="fb:admins" content="1631065163" />
<meta property="fb:app_id" content="336316793079458" />
//沒有app_id或fb:admins來這裡創一個取得
https://developers.facebook.com/apps
//STEP3在body裡加
<div id="fb-root"></div>
<script src="http://connect.facebook.net/zh_TW/all.js"></script>
<script>
FB.init({
appId : '336316793079458(填上你的APP_ID)',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
<fb:like href="<?php the_permalink(); ?>" layout="button_count" show_faces="false" action="like" colorscheme="light"></fb:like>

//FB被快取(CATCH)住了來這裡按偵錯即可取消快取
https://developers.facebook.com/tools/debug

自訂義英文標題欄位在編輯文章時出現

//找到佈景裡的function.php
//加上底下

//Custom EnglishTitle Widget
add_action('admin_menu', 'custom_EnTitle_hooks');
add_action('save_post', 'save_custom_EnTitle');
add_action('wp_head','insert_custom_EnTitle');
function custom_EnTitle_hooks() {
  add_meta_box('custom_EnTitle', '自訂英文標題', 'custom_EnTitle_input', 'post', 'normal', 'high');
  add_meta_box('custom_EnTitle', '自訂英文標題', 'custom_EnTitle_input', 'page', 'normal', 'high');
}
function custom_EnTitle_input() {
  global $post;
  echo '';
  echo '';
}
function save_custom_EnTitle($post_id) {
  if (!wp_verify_nonce($_POST['custom_EnTitle_noncename'], 'custom-EnTitle')) return $post_id;
  if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id;
  $custom_EnTitle = $_POST['custom_EnTitle'];
  update_post_meta($post_id, '_custom_EnTitle', $custom_EnTitle);
}
function insert_custom_EnTitle() {
  if (is_page() || is_single()) {
    if (have_posts()) : while (have_posts()) : the_post();
      endwhile; endif;
      rewind_posts();
  }
}

//在要使用的地方加上

2012年2月20日 星期一

影片心得

假設做720X480
圖片就至少要1024X683
這樣縮放才不會馬賽克,有空間縮放
premiere匯出的
H.264檔案品質720x480勝過microsoft AVI 的720x480
300MB檔案勝過3GB

2012年2月14日 星期二

favicon_在IE9





最後把做好的圖丟去http://www.favicon.cc/
生成.ico然後放上去IE要刪除快取一直重整吧

目前得知safari在中文網址後面無法出現圖示

2012年2月12日 星期日

size of 33554432

size of 33554432 bytes exhausted wp-admin/includes/media.php on line 502

改空間商的php.ini
memory_limit = 16M(系統預設值) 32M 72M

或是在wp-config.php裡新增一條
define('WP_MEMORY_LIMIT', '64M');
任何位置

Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@goodsdesign.liuhder.com.tw and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

搬移主機後如果這樣就改權限755

不要或排除該分類的文章出現在網頁上

query_posts('cat=-6')
使用負數即是不要該分類的文章出現在網頁上
也可以這樣
query_posts( 'cat=-1,-2,-3' );