PEAK XOOPS - 拡張ミニカレンダー(piCal)からのジャンプ先について in englishin japanese

拡張ミニカレンダー(piCal)からのジャンプ先について

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/7 16:50
Ocean_Blue  二等兵   Posts: 4
はじめまして 

piCal0.88a内の拡張ミニカレンダー (piCal)を使用しているのですが、

拡張ミニカレンダー (piCal)内のドットをクリックしてpiCalにジャンプをする様にしたのですが、

ジャンプ先が一日表示になっているのですが月表示に変更をするには

どの様な設定をすれば良いのでしょうか。
Votes:4 Average:2.50
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/10 19:46
xmaker  二等兵   Posts: 6
同じ悩みに当たりましたので私の考えた方法をお教えします。
テンプレートの「pical_minical_ex.html 」内のリンク先に

<a href="<{$ex.link}>">

とある部分に
表示モードを書き足すと、月間表示になりますよ。

<a href="<{$ex.link}>&smode=Monthly">

邪道かもしれませんが、一応可能です。
Votes:2 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/11 20:12
m_kojima  一等兵   Posts: 13
kojimaと申します。

Quote:
xmaker wrote:
<a href="<{$ex.link}>&smode=Monthly">

邪道かもしれませんが、一応可能です。

とのことですが、拡張ではない方のミニカレンダー(blocks/pical_mini_calendar.php)自身が、

$query_string = "smode=Monthly" ;
として、index.phpに引き渡していますので、極めて真っ当な対応なのではないでしょうか
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/14 5:55
GIJOE  先任軍曹   Posts: 4110
それで解決ってことならそれでもいいですが、それだとpiCal以外にもことごとくsmode=Monthlyがつくでしょう。

このあたりは、あくまでプラグインの動作次第なので、monthly/piCal.php を別名でコピーして(piCal-monthly.phpとか)、そのファイルのここを書き換えるのが無難でしょう。

					'link' => XOOPS_URL."/modules/{$plugin['dirname']}/index.php?smode=Daily&caldate={$this->year}-{$this->month}-{$target_date}" ,

もちろん、プラグインマネージャで、その書き換えた方のプラグインを設定することをお忘れ無く。
Votes:1 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/14 12:00
m_kojima  一等兵   Posts: 13
kojimaです
Quote:
GIJOE wrote:
それで解決ってことならそれでもいいですが、それだとpiCal以外にもことごとくsmode=Monthlyがつくでしょう。

すみません。軽率なコメントでした。
こちらで実際に設定されているように、ほかのモジュールへの移動も考えるべきでしたね。
失礼いたしました。
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/10/14 22:27
Ocean_Blue  二等兵   Posts: 4
GIJOE殿

対応有難う御座いました。
Votes:3 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!