Nextgen Gallery 支援中文目錄以及檔案
Nextgen Gallery 會將中文名稱自動變成目錄名稱,導致目錄路徑變成亂碼如%4%5%3%5%78%5465 等形式,造成目錄名稱與資料庫的名稱不符,會找不到圖片!
最裡想的方式還是目錄檔名以時間日期來建立資料夾,目錄名稱規目錄名稱
1. 支援中文目錄
修改 functions.php 內的 create_gallery
Nextgen Gallery 會將中文名稱自動變成目錄名稱,導致目錄路徑變成亂碼如%4%5%3%5%78%5465 等形式,造成目錄名稱與資料庫的名稱不符,會找不到圖片!
最裡想的方式還是目錄檔名以時間日期來建立資料夾,目錄名稱規目錄名稱
修改 functions.php 內的 create_gallery
Do not update nextgen gallery to 2.x !!!
最近一直在找好用的WP相簿外掛,發現最強的還是nextgen gallery,
但自從更新到2.0以上後,哀嚎遍野,不管是中文化程度不夠,還會消失字定義的CSS樣式,
BUG一大堆,而作者又開發了PRO的付費版,整個 2.X 版本後給他擺爛!
因此建議大家還是安裝最經典穩定的1.9.13版!
====================================================
Recently been looking for an easy to use plugin of WP album, I found the name call ” NextGen gallery”,
However, since the update to 2.0 or more, screams everywhere, whether in education is not enough,
the word will disappear defined CSS styles,
SO many bug in this version, and the author developed after paying PRO version 2.x version of the overall conversion,
his would not debug for 2.x free version.
Therefore, we recommend that you install the most stable 1.9.13 version of the classic!
//修改編輯頁面
檔名:wp-admin/edit-form-advanced.php
//修改快速編輯條內的項目
檔名:wp-admin/includes/class-wp-posts-list-table.php
//修改刪除的SQL ACTION動作
檔名:wp-admin/includes/post.php
今天意外發現,網站的PR上升成為2了!
原來是Google更新了阿,繼上一次更新是2013/02/05,這次等了十個月之久,終於更新了。
發現其他的站PR也上升了,不錯不錯!
繼續努力。
============================
Google PageRank was updated today, my blog PR has been grwoing to PR2.
The last time Google Page Rank updated was in 2013/02/05.
keep going.
tinyMCE remove <P> and use <br> to break, also can remove &nbps tag.
很不喜歡tinymce內建的語法格式,尤其是為自動加上<P>或是<span>,
解決辦法如下!
tinyMCE.init({
entity_encoding: ‘raw’, //解決&nbps的;this for remove &nbps tag.
force_br_newlines : true,//啟用BR換行;use <br> to break;
force_p_newlines : false, //停用P換行, disable <P> to break;
forced_root_block : false, //移除開頭的<P>和<span>; romove the frist <P> and disable <span> tag
})
這樣就OK!
至今為止網路上說的方法都沒用!
直到我自己試了一下,發現正確的修改方式,修改如下:
1.wp-config.php檔先把兩個值改掉
define(‘WP_POST_REVISIONS’, false); //這個數值根本虎爛的,我改了False後 一樣還是給我自動儲存
define(‘AUTOSAVE_INTERVAL’, 86400 ); // 單位:秒 ,同上,這個值也是唬爛
上面兩個虎爛歸唬爛但我還是照改了。但最關鍵的是下面這個
2. wp-admin/post-new.php
把 wp_enqueue_script( ‘autosave’ ); 改成
//wp_enqueue_script( ‘autosave’ );
搞定收工!
以上成功在Wordpress 3.6版停用自動儲存
===============================
WordPress version 3.6 to disable autosave
So far the network said the method useless!
Until I tried it and found the correct way to modify, amend as follows:
1.wp-config.php file to first get rid of the two values
define (‘WP_POST_REVISIONS’, false); / / This value is simply rotten tiger, after I changed False or give me automatically saved as
define (‘AUTOSAVE_INTERVAL’, 86400); / / unit: seconds, supra, this value is also a fool rotten
The above two tiger rotten rotten but I still go fool according changed. But the most critical is the following
2. Wp-admin/post-new.php
The wp_enqueue_script (‘autosave’); into
/ / wp_enqueue_script (‘autosave’);
Get knock off!
More success in the WordPress version 3.6 to disable automatic storage