0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

XOOPS で AdelieDebug利用中はリダイレクト停止させる

Posted at

XOOPS Cubeのモジュール開発時にAdelieDebugを利用すると画面上にデバッグのために欲しい情報が出てきて便利です。

でも、リダイレクト画面だと数秒のうちに次の画面に遷移してしまうため表時内容を確認することが出来ません。

そこでAdelieDebug利用中はリダイレクトさせないようにしてみました。

いじったのはhtml/modules/legacy/templates/legacy_redirect.html

下記の様に変更してみました。

legacy_redirect.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$xoops_charset}>" />
  <{if !class_exists('AdelieDebug_Preload')}>
  <meta http-equiv="Refresh" content="<{$time}>; url=<{$url}>" />
  <{/if}>

<title><{$xoops_sitename}></title>
</head>
<body>
<div style="text-align:center; background-color: #EBEBEB; border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight : bold;">
  <h4><{$message}></h4>
  <p><{$lang_ifnotreload}></p>
</div>
<{if class_exists('AdelieDebug_Preload')}>
<p style="color:red;text-align: center">AdelieDebug実行中のだめ自動でリダイレクトしません.</p>
<{/if}>
</body>
</html>

実際にはファイルを直接いじるよりもAltSys等つかってDBテンプレートをいじるとか、テーマ下テンプレートにいれておくのがいいでしょうね。

これでリダイレクトせずに停止してるんで、じっくり表時内容を確認出来ます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?