アップデート時に修正必要なのでメモ。


・通知メールから「Powered by Nucleus CMS」の記載や無駄な改行を削除(MLで設定しているフッターが深くなってしまうので)
BLOG.php 350行目辺
$mailto_msg .= getMailFooter();
をコメントアウト
globalfunction.php 1367行目辺 getMailFooter()の内容下記3つをコメントアウト
$message = "\n\n-----------------------------";
$message .= "\n Powered by Nucleus CMS";
$message .= "\n(http://www.nucleuscms.org/)";
同 2040行目辺
$ascii .= "\n\n" . _links_list();

$ascii .= _links_list();

・通知メールの件名をアイテムのタイトルに
BLOG.php 352行目辺
$mailto_title = $this->getName() . ': ' . _NOTIFY_NI_TITLE;
↓に修正
$mailto_title = strip_tags($title);

・携帯電話からのコメント投稿を可能に(Nucleus3.7では2014/12/24現在不要な改造)
vars4.1.0.php function postVar($name)の内容を下記に
$_POST[$name] = mb_convert_encoding($_POST[$name], "EUC-JP", "auto");
return undoMagic($_POST[$name]);

・commenttreeのリンクで該当コメントへ遷移
テンプレート編集-default/item-コメントの本体
<a name="c<%commentid%>"></a>
※<>が2バイト文字になってるのでコピペする時は直すこと

・Nucleus3.7でメンバー追加ができなかったので修正(2015/1/13現在)
ADMIN.phpに下記追加
function ADMIN() {
global $DIR_LIBS;
include_once("{$DIR_LIBS}phpass.class.inc.php");
$this->hasher = new PasswordHash();
}

function setPassword($pwd) {
$this->password = $this->hasher->HashPassword($pwd);
}

function getPassword() {
return $this->password;
}

・検索結果を日時降順に
BLOG.phpの下記をコメントアウト
if ($mode == '')
{
//if ($select)
// $query .= ' ORDER BY score DESC';
//else
$query .= ' ORDER BY i.itime DESC ';
}

・月別アーカイブの文字化け対応
スキン編集-月別アーカイブページの下記を変更
You are currently viewing archive for <%archivedate(ja_JP.UTF-8,%Y/%m)%>
※<>が2バイト文字になってるのでコピペする時は直すこと

テンプレート編集-default/index
テンプレート編集-default/item
の下記を変更
ロケール→ja_JP.UTF-8

■PHP5.4.4対応
・参考:http://japan.nucleuscms.org/forum/viewtopic.php?id=5904
/nucleus/libs/MANAGER.php
call_user_func(array(&$this->plugins[$listener], 'event_' . $eventName), &$data);

call_user_func(array(&$this->plugins[$listener], 'event_' . $eventName), array(&$data));

・全般
&$を$に

・NP_StripBR
$this->currentItem = $data["item"];

$this->currentItem = $data[0]["item"];

・NP_MutlipleCategories.php
下記の[0]が追加部分。
function event_AddItemFormExtras($data) {
$aCategories = $this->_getCategories($data[0]['blog']->blogid);
if(count($aCategories) > 1) {
$this->showForm($aCategories,$data[0]['itemid']);
} elseif (count($aCategories) > 0) {
$this->showSubForm($aCategories,$data[0]['itemid']);
}
}

function event_EditItemFormExtras($data) {
$aCategories = $this->_getCategories($data[0]['blog']->blogid);
if(count($aCategories) > 1) {
$this->showForm($aCategories,$data[0]['itemid']);
} elseif (count($aCategories) > 0) {
$this->showSubForm($aCategories,$data[0]['itemid']);
}
}

function event_PostAddItem($data) {
$selected = requestIntArray('npmc_cat');
$s_selected = requestIntArray('npmc_scat');
if (count($selected) == 0 && count($s_selected) == 0) return;

$pcatid = quickQuery("SELECT icat as result FROM ".sql_table('item')." WHERE inumber=".intval($data['itemid']));

$this->updateData($data[0]['itemid'], $pcatid, $selected, $s_selected);
}

function event_PreUpdateItem($data) {
$selected = requestIntArray('npmc_cat');
$s_selected = requestIntArray('npmc_scat');

if(($this->_getMultiCategories($data['itemid']) || $this->_getSubCategories($data['itemid'])) && count($selected) == 0 && count($s_selected) == 0 ){
sql_query('DELETE FROM ' . sql_table('plug_multiple_categories') . ' WHERE item_id=' . intval($data['itemid']));
return;
} elseif (count($selected) == 0 && count($s_selected) == 0) {
return;
}

$this->updateData($data[0]['itemid'],$data[0]['catid'],$selected,$s_selected);
}