ログイン機能をテーマ内の任意の場所につけたい
カテゴリ : テーマのカスタマイズ
以下コードをテーマの任意の場所に記入します。
また、ログインしたときにはこのログインブロックは不要ですので、
としてあげるといいと思います。
<form style="margin: 0px;" action="<{$xoops_url}>/user.php" method="post">
ID : <input type="text" name="uname" value="<{$block.unamevalue}>" maxlength="25" style=" width:60px; height:12pt; padding:0px;" />
Pass : <input type="password" name="pass" maxlength="32" style=" width:60px; height:12pt; padding:0px;" value="" />
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
<input type="hidden" name="op" value="login" />
<input type="submit" value="Login" id="login_btn" />
</form>
また、ログインしたときにはこのログインブロックは不要ですので、
<{if !$xoops_isuser}>
ログインブロック
<{/else}>
ログイン後に表示したいもの
<{/if}>
としてあげるといいと思います。
SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)






