/*
About
-----
This directory contains extra files to make the 'fancy urls' feature even more
fancier, by eliminating the 'index.php'-part of the URL
Installation
------------
1. Copy all files in this directory (except for index.html) to your main nucleus dir
(where your index.php and action.php file are)
If you have an already existing .htaccess file (most ftp-programs don't show hidden files
by default, so don't start uploading it without checking your server). If you do, download
that old one first, and copy the contents of the new .htaccess file (from the fancyurls
folder) in your old one, and upload that...
2. Edit this file so that $CONF['Self'] points to your main directory.
NOTE: this time, and only this time, the URL should NOT end in a slash
3. Also edit the $CONF['Self'] variable in your index.php, if you don't want to
end up with index.php/item/1234 urls when people come via that way
4. Enable 'Fancy URLs' in the Nucleus admin area (nucleus management / edit settings)
5. Off you go!
If it doesn't work:
-------------------
Remove the files again (don't forget the hidden file .htaccess). Voila.
*/
// remember: this URL should _NOT_ end with a slash.
$CONF['Self'] = 'http://www.momoso-net.com/~ms08';
?>
2005-02-23: NP_Mobileを変更
財団法人サークルクラブ協会さんのNP_Mobile 0.2ちょっと変更ということで の入ったアイテムが携帯サイトで画像を表示するように修正しました。変更に関する使用上の注意
画像のアップロードは必ずPrivate Collectionに行いアップロードした画像を使用しましょう。
変更内容
.--- NP_Mobile.php.org 2004-11-10 16:52:00.000000000 +0900
.+++ NP_Mobile.php 2005-02-23 15:45:20.000000000 +0900
@@ -17,10 +17,13 @@
}
}
function doTemplateVar(&$item, $maxLength = 1000) {
.+ global $CONF;
$data = $item -> body.$item -< more;
// ■不要な文字列の除去&変換
$data = str_replace('"', '', $data);
.- $data = ereg_replace('a href=https*://', 'a class=', $data);
.+ $fileurl = $CONF['MediaURL'].$item -< authorid."/";
.+ $data = ereg_replace('<%image\(([[:alnum:][:space:]\+\$\;\?\.\W\w%,!#~*/:@&=_-]+)\|
([0-9]{1,})\|([0-9]{1,})\|([[:alnum:][:space:]\+\$\;\?\.\W\w%,!#~*/:@&=_-]+)\)
%>',"<img src=".$fileurl."\\1 width=\\2 height=\\3alt=\"\\4\" />",$data);
.+ //$data = ereg_replace('a href=https*://', 'a class=', $data);
$data = ereg_replace(' (id|class|target|title|style|name)=[[:alnum:][:space:]\+\$\;\?\.\W\w%,!#~*/:@&=_-]+', '', $data);
$data = ereg_replace('<(/*ul|/*ol|h[0-9])>', '', $data);
$data = ereg_replace('<(/*div|/*p|hr /|br /|/li|/h[0-9])>', '<br>', $data);
@@ -49,4 +52,4 @@
}
}
}
.-?>
\ ファイル末尾に改行がありません
.+?>
ついでにハイパーリンク削除もはずしました。
パッチはここから!
Category: BLOG/Nucleus No Trackbacks