- 追加された行はこの色です。
- 削除された行はこの色です。
*xpwiki [#aa44a4a0]
[[xpwiki>+http://xoops.hypweb.net/modules/xpwiki/]]
~
*前提条件 [#occ5909f]
-&size(16){&font(b){※CentOS 6.0での構築を前提に解説を行います。};};
*xpwiki別窓リンク [#wf899f8e]
ファイルの編集箇所は[[PukiWikiでの別窓リンク方法>PukiWiki/改良/別窓リンク]]と似ているのだが、編集箇所の一部が違うのでメモ
使い方はPukiWikiでの場合と同じでURLの先頭に”+”を付加する
# cd [XOOPS_TRUST_PATH]/modules/xpwiki/class
# cp make_link.php make_link.php-
# chown root.root make_link.php-
# chmod 400 make_link.php-
# vi make_link.php
Linux上にてPT2が動作する様にしておいてください。
[[ググれ>+https://www.google.co.jp/search?q=PT2+Linux&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:official&hl=ja&client=firefox-a]]ばすぐに出てくるので、recpt1コマンドを使用して録画ができる様に構築をして下さい。
~
以後の書き換える場所は、xpwikiのバージョンによって変化
[[ver 4.x>#vc76c24f]]
[[ver 5.x>#g5d8add3]]
~
*必須環境のインストール [#ab88638f]
recchal-serverの動作には以下のコマンドが必要になります。
-[[recpt1>+https://github.com/stz2012/recpt1]]
-[[mono>+http://www.mono-project.com/Main_Page]]
-[[screen>+http://www.icewalkers.com/Linux/Software/515080/Screen.html]]
*xpwiki別窓リンク - ver 4.x [#gdf3c384]
一番楽な方法はパッケージ管理システムを使用する方法です。
-&size(16){&font(b){クラス名:XpWikiLink_url extends XpWikiLink};};
-メソッド名:function get_pattern()
-( # (3) url
- (?:(?:https?|ftp|news):\/\/|mailto:)[\w\/\@\$()!?&%#:;.,~'=*+-]+
-)
_/_/_/_/_/
+( # (3) url
+ (?:(?:\+?https?|\+?ftp|\+?news):\/\/|mailto:)[\w\/\@\$()!?&%#:;.,~'=*+-]+
+)
~
-メソッド名:function toString()
- $img = ($this->is_image)? ' type="img"' : '';
- return '<a href="'.$this->name.'"'.$title.$rel.$class.$img.$target.'>'.$this->alias.'</a>';
_/_/_/_/_/
+ $img = ($this->is_image)? ' type="img"' : '';
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_blank" ' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>';
+ }else{
+ return '<a href="' . $this->name . '"' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>';
+ }
----
-&size(16){&font(b){クラス名:XpWikiLink_url_i18n extends XpWikiLink};};
-メソッド名:function get_pattern()
-( # (3) scheme
- (?:(?:https?|ftp|news):\/\/|mailto:)
-)
_/_/_/_/_/
+( # (3) scheme
+ (?:(?:\+?https?|\+?ftp|\+?news):\/\/|mailto:)
+)
~
-メソッド名:function toString()
- return '<a href="'.$this->name.'"'.$title.$rel.$class.$img.$target.'>'.$this->alias.'</a>'.$host;
_/_/_/_/_/
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_blank" ' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>' . $host;
+ }else{
+ return '<a href="' . $this->name . '"' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>' . $host;
+ }
~
*xpwiki別窓リンク - ver 5.x [#l50918c5]
-&size(16){&font(b){クラス名:XpWikiLink_url extends XpWikiLink};};
-メソッド名:function get_pattern()
-( # (3) url
- (?:(?:https?|ftp|news|site):\/\/|mailto:)[\w\/\@\$()!?&%#:;.,~'=*+-]+
-)
_/_/_/_/_/
+( # (3) url
+ (?:(?:\+?https?|\+?ftp|\+?news|\+?site):\/\/|mailto:)[\w\/\@\$()!?&%#:;.,~'=*+-]+
+)
~
-メソッド名:function toString()
- $img = ($this->is_image)? ' type="img"' : '';
- return '<a href="'.$this->name.'"'.$title.$rel.$class.$img.$target.'>'.$this->alias.'</a>';
_/_/_/_/_/
+ $img = ($this->is_image)? ' type="img"' : '';
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_blank" ' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>';
+ }else{
+ return '<a href="' . $this->name . '"' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>';
+ }
----
-&size(16){&font(b){クラス名:XpWikiLink_url_i18n extends XpWikiLink};};
-メソッド名:function get_pattern()
-( # (3) scheme
- (?:(?:https?|ftp|news|site):\/\/|mailto:)
-)
_/_/_/_/_/
+( # (3) scheme
+ (?:(?:\+?https?|\+?ftp|\+?news|\+?site):\/\/|mailto:)
+)
~
-メソッド名:function toString()
- return '<a href="'.$this->name.'"'.$title.$rel.$class.$img.$target.'>'.$this->alias.'</a>'.$host;
_/_/_/_/_/
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_blank" ' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>' . $host;
+ }else{
+ return '<a href="' . $this->name . '"' . $title.$rel.$class.$img.$target . '>' . $this->alias . '</a>' . $host;
+ }
~