Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 117

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 168

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 186

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SiteClose.class.php on line 54

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 65

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 73

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
user.phpでログインフォームが表示されない。theme.phpファイルに問題があります。 | 社内SEのウェブ制作

2012.09.27xoopsズープス

user.phpでログインフォームが表示されない。theme.phpファイルに問題があります。

xoopsのuser.phpのフォームの箇所表示方法

themeファイルを複雑なif文で表示する内容を分けている際にと、こんてんつ表示に必要なスマーティーが抜けてしまっていたり、気づかないうちに消してしまってたりするものです。

user.phpで表示している箇所に <{$xoops_contents}> のスマーティーが抜けていないかどうか、
確認しましょう。

こんなログイン方法もあります

public_htmlに、手作りのログインフォームをアップロードして、そこからログインすることが可能です。
テキストエディタで下記のコードをコピーアンドペースト仮に、login2.htmlとし、public_html直下にlogin2.htmlをアップロードして、そのフォームにIDとパスワードを入力して、強制的にログインすることが可能です。

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=EUC-JP" /><meta http-equiv="content-language" content="ja" /> 
<title>強制ログインフォーム</title>
</head>

<body>
<form action="http://hogehoge.net/user.php" method="post">    ユーザ名  
<input type="text" name="uname" size="26" maxlength="25" value="" />
<br />    パスワード:  <input type="password" name="pass" size="21" maxlength="32" /><br />
<input type="hidden" name="op" value="login" />
<input type="hidden" name="xoops_redirect" value="" />
<input type="submit" value="ログイン" />  
</form>
</body>
</html>

 

 

 


このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (19047)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/598

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ