ページへ戻る

− Links

 印刷 

Ver 3.28 (ページポップアップ機能など) :: XOOPS マニア

xpwiki:xpWiki開発日記/2007-10-12


Tag: ini設定[4] JavaScript[5] オートリンク[6] Wikiレンダラー[7] プラグイン[8]
2007 10月 12 (金)
 
ページ内コンテンツ
  • Ver 3.28 (ページポップアップ機能など)
    • JavaScript によるページポップアップ機能
    • オートリンクの適用を英単語単位に
    • 主な更新内容
    • CVS 更新内容
  • 一行コメント

Ver 3.28 (ページポップアップ機能など) anchor.png[9] Edit [10]

Page Top

JavaScript によるページポップアップ機能 anchor.png[11] Edit [12]

JavaScript によるページポップアップ機能を追加しました。ページ編集時の「テキスト整形のルールを表示する」リンクに適用されています。

また、この機能の動作サンプルとして、pagepopup (インライン)プラグインを新規追加しました。

&pagepopup([ページ名]); と記述すると、そのリンクは JavaScript を利用したページポップアップになります。JavaScript が無効のクライアントは通常のリンクとして機能します。

例) &pagepopup(Help); -> Help[13]

また、Wikiレンダラーモードにて、すべてのページリンクをポップアップリンクとする設定を pukiwiki[14].ini.php に追加しました。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
// ページリンクをポップアップにする
// All page link uses popup.
$root->render_popuplink = 0;
 
$root->render_popuplink_position = array(
    // Array values are value of the CSS.
    'top'    => '',
    'bottom' => '',
    'left'   => '',
    'right'  => '',
    'width'  => '',
    'height' => ''
);
Page Top

オートリンクの適用を英単語単位に anchor.png[15] Edit [16]

英単語途中の文字列には、オートリンクが効かないようにしました。

例えば、この xpWiki[17] には、Help[13] というページがあるので、Help[13] という文字列にオートリンクされます。これまでは、Helper という文字列中の Help[13] にもマッチしてオートリンクされていましたが、今回のバージョンからは、単語中の文字列にはマッチしないようになりました。

ただし、日本語は単語としての区切りの判定が困難なため、この限りではありません。

Page Top

主な更新内容 anchor.png[18] Edit [19]

  • 英単語単位のオートリンクに変更
  • キャッシュファイル名の生成を MD5 から SHA1 に変更
  • JavaScript によるページポップアップ機能を追加
  • resizable.js のメンテナンス
  • EncodeHint をシステムの文字エンコーディングにより設定するようにした。
  • CSS を JavaScript より先に読み込むように変更
  • レンダラーモードにおいてすべてのページリンクをポップアップにする設定を追加
  • pagepopup プラグインの追加
  • レンダラーモードの添付ファイル機能を修正
  • 連続する英数文字の折り返し方法を調整(referer.inc.php)
  • 1日に1回程度、レンダラーモードの古いキャッシュファイルを削除するようにした。
Page Top

CVS 更新内容 anchor.png[20] Edit [21]

  • 2007-10-12 17:51 nao-pon[22]
    • * xoops_version.php (1.203):
      • Version 3.28
  • 2007-10-12 17:49 nao-pon[22]
    • * ways/bgrun.php (1.3):
      • Added unlink old render caches function.
  • 2007-10-12 17:10 nao-pon[22]
    • * loader.php (1.21):
      • Added replaces word '$module_url'.
  • 2007-10-12 17:08 nao-pon[22]
    • * skin/: css/main.css (1.5), js/xpwiki[17].js (1.1):
      • Added a page popup function by the JavaScript.
  • 2007-10-12 17:08 nao-pon[22]
    • * plugin[23]/referer.inc.php (1.6):
      • Coordinated the method of the word wrap.
  • 2007-10-12 17:07 nao-pon[22]
    • * plugin[23]/ref.inc.php (1.15):
      • Changed it to read CSS earlier than a JavaScript.
      • Bugfixed the attached file function of the renderer mode.
  • 2007-10-12 17:07 nao-pon[22]
    • * plugin[23]/pginfo.inc.php (1.17):
      • Changed it to read CSS earlier than a JavaScript.
  • 2007-10-12 17:07 nao-pon[22]
  • 2007-10-12 17:06 nao-pon[22]
    • * plugin[23]/edit.inc.php (1.43), skin/js/calendar9.js (1.4), skin/js/main.js (1.23), skin/js/resizable.js (1.3):
      • Maintenance of resizable.js.
  • 2007-10-12 17:05 nao-pon[22]
    • * plugin[23]/api.inc.php (1.4):
      • Changed the generation of the cache file name by SHA1 from MD5.
  • 2007-10-12 17:05 nao-pon[22]
    • * ini/pukiwiki[14].ini.php (1.51):
      • Added setting to make all page links popup in renderer mode.
  • 2007-10-12 17:04 nao-pon[22]
    • * class/func/xpwiki_func.php (1.103):
      • Set EncodeHint by the character encoding of the system.
      • Changed it to read CSS earlier than a JavaScript.
  • 2007-10-12 17:03 nao-pon[22]
    • * class/func/xoops_wrapper.php (1.38), class/include/init.php (1.30), lang/EUC-JP.lng.php (1.1), lang/ISO-8859-1.lng.php (1.1), lang/UTF-8.lng.php (1.1), lang/en.lng.php (1.21), lang/ja.lng.php (1.21), lang/ja_utf8.lng.php (1.8):
      • Set EncodeHint by the character encoding of the system.
  • 2007-10-12 17:02 nao-pon[22]
    • * class/func/pukiwiki_func.php (1.123):
      • Changed it in the automatic link of the English word unit.
      • Added a page popup function by the JavaScript.
      • Maintenance of resizable.js.
  • 2007-10-12 17:00 nao-pon[22]
    • * class/xpwiki[17].php (1.56):
      • Changed the generation of the cache file name by SHA1 from MD5.
      • Added a page popup function by the JavaScript.
      • Changed it to read CSS earlier than a JavaScript.
  • 2007-10-12 16:59 nao-pon[22]
    • * class/root.php (1.11):
      • Added a page popup function by the JavaScript.
  • 2007-10-12 16:58 nao-pon[22]
    • * class/ext_autolink.php (1.18):
      • Changed it in the automatic link of the English word unit.
      • Changed the generation of the cache file name by SHA1 from MD5.
Page Top

一行コメント anchor.png[24] Edit [25]




Last-modified: 2007-10-12 (金) 21:08:01 (JST) (6904d) by nao-pon