PEAK XOOPS - Comment Anywhere 0.14 in englishin japanese







Category: XOOPS Modules minahito's works          
Download Now! Download Now! Comment Anywhere 0.14 Popular Version: 0.14
Submitted Date:  2007/6/27
Description:
in englishin japanese

どこでも XOOPS コメント GIJOE Hacked版

はじめに
 「コメントの投函」フォームをメインコンテンツ下部にねじこむモジュールです。
 なおフォームは通常の textarea なので bb code を使用したい場合は「DHtmlTextArea 表示用 smarty プラグイン」などを使って、テンプレート commentany_center.html を修正して下さい。

利用方法

(1) まずは、exFrame最新版を、modules ディレクトリに置いてください。インストールする必要はありません。

(2) 次に、どこでもXOOPSコメントモジュールを通常通りインストールします。

(3) 続いて「フックでXOOPSコメント」を、ブロック管理などで、目的モジュールに対して「表示」する設定にします。実際には、このブロックは表示を行いませんので、左右中央、どこに配置しても構いません。ただし、表示順だけは、出来る限り大きな数値にしておくのが良いでしょう。

 このブロックは、Smarty がコンパイルキャッシュを生成する際にテンプレートの include 文を滑り込ませるトリガーとなりますので、コメント権限とは無関係に先にゲストにアクセス権限を振っておいた方が無難です。(コメントフォームの表示・非表示は別のロジックで行います。たとえばゲストにコメントを許していないときは、コメント欄は表示されません)

この一連の作業には、blocks adminモジュールの利用がお勧めです。

(4) 以上の準備が終わりましたら、Smarty のコンパイルキャッシュ(templates_cの中身)をすべてクリアする必要があります。
 管理メニューより Cache Clear を選び、 Confirm ボタンを押して下さい。
 コメント表示対象モジュールを変更した場合にも、コンパイルキャッシュクリア操作が必要です。

(5) この状態で、目的のモジュールを表示すれば、「どこでもXOOPSコメント」の入力フォームが潜り込んだコンパイルキャッシュが、templates_c に新たに生成される、という仕組みです。

 なお、以上の動作原理から、Smarty を使用しないモジュールでは表示不可能です。

どこでもトラックバックとの相性
 「フックでXOOPSコメント」ブロックを、「どこでもトラックバック」の「フックでトラックバック」ブロックと同じモジュールに配置する場合、「フックでXOOPSコメント」ブロックの方が、表示順で後ろに来るようにしてください。
 「フックでトラックバック」ブロックが後に処理されると、「フックでXOOPSコメント」ブロックの処理がキャンセルされてしまいます。
 将来的には、どちらが先に処理されても問題ないようになる予定です。


++ v0.13->v0.14
* 本家版2.0.16に対応

++ v0.12->v0.13
* 「匿名によるコメント投稿」の設定を見るように修正

++ v0.11->v0.12
* コメントの承認を必要とすると、投稿画面が出ないバグを修正 (thx minahito)

++ v0.10->v0.11 ※要モジュールアップデートorカスタムテンプレート更新
* XOOPS >= 2.0.10 への対応 (XoopsSecurity::createToken()を利用)

++ v0.03->v0.10 GIJOE Hacked版 (好き放題手を入れてます)
* コメントフォーム入力場所を、ナビゲーションのある場所にした
* ナビゲーションの「投稿する」ボタンをhiddenにした
* <{$xoops_default_comment_title}> を初期タイトルにした (TinyDが対応済)
* 「どこでもトラックバック」などとの他のフック系モジュールとの相性対策をした
* デフォルトのテンプレートを極力シンプルにした
* ダイレクトアクセス対策
* ドキュメントを整備した(あまりにアレだったもので
* モジュール名の(仮)を外した

++ v0.02->v0.03
* ファイル構成に抜けがあったのを埋めた

++ v0.01->v0.02
* コメントのルールを参照して動作を変えるようにした
* メッセージアイコンをテンプレート側で引き込めるようにした
* コメントに関するルールをメッセージ側で引き込めるようにした
* モジュール名に(仮)を入れた


Downloaded 24247 times  24247  File Size 16.04 KB  Supported Platforms tar.gz|zip  Home Page http://www.pleple.com/~sunday_lab/
Modify | Report Broken File | Tell a Friend | Comments (5)


Comments list

cybermongo  Posted on 2012/4/24 5:44
how can i make compatible this module with news 1.62 and xoops 2.5.5 version, it is very handy!! great idea man!!!
sallywong  Posted on 2008/6/1 11:36 | Last modified
Why guest can't comment but registered user can.

This issue has been solved.
cybermongo  Posted on 2006/10/13 4:36 | Last modified
it it is not Compatibility =0
cybermongo  Posted on 2006/9/18 10:29
Comment Anywhere 0.12 is compatible with XOOPS 2.0.15
skara  Posted on 2005/11/2 23:05
if this is a question, my answer is yes!
cybermongo  Posted on 2005/11/1 9:39 | Last modified
Comment Anywhere 0.12 is compatible with XOOPS 2.0.13.2
krobi  Posted on 2005/8/15 17:31 | Last modified
i have downloaded your version here, for about 3-4 days.

it seems that this bug is still there, when i give acces permission for that block for anonymous users the block will be shown - the block is not checking if i allow post comment for anonymous users.

maybe he does but the block is displayed and that will confuse users.

on my test server i get this error message when i open a news

Quote:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in e:\programme\easyphp1-8\www\Xoopslocal\modules\commentAny\include\Smarty_CustomCompiler.php(38) : eval()'d code on line 27

maybe this is making the problem? i havent tested it if i get the error on my productive page also.

reagarding the second thing, i know that is it
Quote:
Althogh it is a module in a series of exModules made by minaito
but did you ever tried to unterstand japan language without knowing anything about the language its quite hard to understand what the other modules for the exmodule do

this is why i mention to make the module independence from exmodule, because i think (nothing agains you or so) users around the world cant really use the exmodule because they simple dont understand what this module and the modules who needs this module can really do.

and maybe its better for further development - only a idea

a next idea would be a setting if i want the dhtml editor or the "light" editor for my visitors to display, i know that i can install this manually but i think it would be nice to have the option for example i give my registered users the dhtml editor and the anonymous users will only get the "light" editor.
GIJOE  Posted on 2005/8/15 15:50 | Last modified
Quote:
would be great if this modul would care about the other modules comments settings
because at the moment you only can set the permission for the block and what group can access this "block" but when you have disabled comments for anonymous users but have alllowed to show the block for anonymous users then the block will be shown
It sounds a bug fixed in 0.11 to 0.12.
Or does the other bug exist?

Quote:
it would be also nice if you could make the module work without the exframe module - so it would be easier for all users to install the module.
Althogh it is a module in a series of exModules made by minaito, it is almost independent from exFrame, certainly.

But it is not so difficult to put exFrame in XOOPS_ROOT_PATH/module/
Don't install but just put.
krobi  Posted on 2005/8/15 3:58
feature request:
would be great if this modul would care about the other modules comments settings
because at the moment you only can set the permission for the block and what group can access this "block" but when you have disabled comments for anonymous users but have alllowed to show the block for anonymous users then the block will be shown
it would be also nice if you could make the module work without the exframe module - so it would be easier for all users to install the module.
GIJOE  Posted on 2005/3/17 10:38
hi Yuji.

I've modified the place of quick-comment-form from the minahito's original 0.03.

You can see the form just after the body of contents.
(In original, the form is placed the bottom of comment area.)

And some typos are fixed
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!