Linux/xoops/xpwiki
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
ns-lab
nowsky system-lab
DigiLoog
Linux
Windows
開始行:
*xpwiki [#wb9e21fd]
[[xpwiki>+http://xoops.hypweb.net/modules/xpwiki/]]
~
*xpwiki別窓リンク [#sd2a65bb]
ファイルの編集箇所は[[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
~
以後の書き換える場所は、xpwikiのバージョンによって変化
[[ver 4.x>#vc76c24f]]
[[ver 5.x>#g5d8add3]]
~
*xpwiki別窓リンク - ver 4.x [#vc76c24f]
-&size(16){&font(b){クラス名:XpWikiLink_url extends XpWi...
-メソッド名: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.$cla...
_/_/_/_/_/
+ $img = ($this->is_image)? ' type="img"' : '';
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_bla...
+ }else{
+ return '<a href="' . $this->name . '"' . $title...
+ }
----
-&size(16){&font(b){クラス名:XpWikiLink_url_i18n extends...
-メソッド名:function get_pattern()
-( # (3) scheme
- (?:(?:https?|ftp|news):\/\/|mailto:)
-)
_/_/_/_/_/
+( # (3) scheme
+ (?:(?:\+?https?|\+?ftp|\+?news):\/\/|mailto:)
+)
~
-メソッド名:function toString()
- return '<a href="'.$this->name.'"'.$title.$rel....
_/_/_/_/_/
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="...
+ }else{
+ return '<a href="' . $this->name . '"' . $t...
+ }
~
*xpwiki別窓リンク - ver 5.x [#g5d8add3]
-&size(16){&font(b){クラス名:XpWikiLink_url extends XpWi...
-メソッド名:function get_pattern()
-( # (3) url
- (?:(?:https?|ftp|news|site):\/\/|mailto:)[\w\/\@\$()!?...
-)
_/_/_/_/_/
+( # (3) url
+ (?:(?:\+?https?|\+?ftp|\+?news|\+?site):\/\/|mailto:)[...
+)
~
-メソッド名:function toString()
- $img = ($this->is_image)? ' type="img"' : '';
- return '<a href="'.$this->name.'"'.$title.$rel.$cla...
_/_/_/_/_/
+ $img = ($this->is_image)? ' type="img"' : '';
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_bla...
+ }else{
+ return '<a href="' . $this->name . '"' . $title...
+ }
----
-&size(16){&font(b){クラス名:XpWikiLink_url_i18n extends...
-メソッド名: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....
_/_/_/_/_/
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="...
+ }else{
+ return '<a href="' . $this->name . '"' . $t...
+ }
~
終了行:
*xpwiki [#wb9e21fd]
[[xpwiki>+http://xoops.hypweb.net/modules/xpwiki/]]
~
*xpwiki別窓リンク [#sd2a65bb]
ファイルの編集箇所は[[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
~
以後の書き換える場所は、xpwikiのバージョンによって変化
[[ver 4.x>#vc76c24f]]
[[ver 5.x>#g5d8add3]]
~
*xpwiki別窓リンク - ver 4.x [#vc76c24f]
-&size(16){&font(b){クラス名:XpWikiLink_url extends XpWi...
-メソッド名: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.$cla...
_/_/_/_/_/
+ $img = ($this->is_image)? ' type="img"' : '';
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_bla...
+ }else{
+ return '<a href="' . $this->name . '"' . $title...
+ }
----
-&size(16){&font(b){クラス名:XpWikiLink_url_i18n extends...
-メソッド名:function get_pattern()
-( # (3) scheme
- (?:(?:https?|ftp|news):\/\/|mailto:)
-)
_/_/_/_/_/
+( # (3) scheme
+ (?:(?:\+?https?|\+?ftp|\+?news):\/\/|mailto:)
+)
~
-メソッド名:function toString()
- return '<a href="'.$this->name.'"'.$title.$rel....
_/_/_/_/_/
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="...
+ }else{
+ return '<a href="' . $this->name . '"' . $t...
+ }
~
*xpwiki別窓リンク - ver 5.x [#g5d8add3]
-&size(16){&font(b){クラス名:XpWikiLink_url extends XpWi...
-メソッド名:function get_pattern()
-( # (3) url
- (?:(?:https?|ftp|news|site):\/\/|mailto:)[\w\/\@\$()!?...
-)
_/_/_/_/_/
+( # (3) url
+ (?:(?:\+?https?|\+?ftp|\+?news|\+?site):\/\/|mailto:)[...
+)
~
-メソッド名:function toString()
- $img = ($this->is_image)? ' type="img"' : '';
- return '<a href="'.$this->name.'"'.$title.$rel.$cla...
_/_/_/_/_/
+ $img = ($this->is_image)? ' type="img"' : '';
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="_bla...
+ }else{
+ return '<a href="' . $this->name . '"' . $title...
+ }
----
-&size(16){&font(b){クラス名:XpWikiLink_url_i18n extends...
-メソッド名: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....
_/_/_/_/_/
+ if (ereg("^(\+)(.*)", $this->name, $regs)) {
+ return '<a href="' . $regs[2] . '" target="...
+ }else{
+ return '<a href="' . $this->name . '"' . $t...
+ }
~
ページ名: