PEAK XOOPS - minihaku-1.08 in englishin japanese






Main : XOOPS Modules : 

Category: XOOPS Modules          
Download Now! Download Now! minihaku-1.08 Popular Version: 1.08
Submitted Date:  2007/1/10
Description:
in englishin japanese
== Mini-Hakusen ==

A simple subset of hakusen module.

Usage:

- Install as a module
- append a line into mainfile.php (the red line)

	include XOOPS_ROOT_PATH.'/modules/minihaku/include/mainfilehook.php' ;
}
?>

- edit templates of minihaku_register.html or minihaku_edituser.html via altsys or tplsadmin
- rename include/config.dist.php into include/config.php if necessary
- edit include/config.php if necessary

If you want to display extra fields into userinfo, describe it into system_userinfo.html
eg)

<{$user_uid|minihaku_userinfo:"sex":"uid"}>





Downloaded 22073 times  22073  File Size 7.13 KB  Supported Platforms tar.gz|zip  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (1)


Comments list

GIJOE  Posted on 2006/7/7 3:52
おお、ご指摘ありがとうございます。
edituserhookからコピペで持ってきてそのままでした。
こんなおまけモジュールでも、ソースは公開しておくもんだ、と思いました
coyote  Posted on 2006/7/7 0:08
はじめまして。GIJOEさんのコード参考にしてます。
PHPサイバーテロの技法も読ませていただきました。
ありがとうございます

registerhook.phpの90行あたりで
$db->query( "UPDATE ".$db->prefix("users")." SET $field='".addslashes(@$allowed_requests[$field])."' WHERE uid=".$xoopsUser->getVar("uid") ) ;
の部分は
$db->query( "UPDATE ".$db->prefix("users")." SET $field='".addslashes(@$allowed_requests[$field])."' WHERE uid=".$newid  ) ;
となると思います。最初からそのように作ってあったので一応ご報告まで。
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!