Ajax(jQuery) for xoops 注册提示+密码强度

1,备份\modules\profile\templates\profile_form.html.
2,下载附件的压缩包,覆盖到跟目录.
3,打开modules\profile\register.php 在220行左右的

$xoopsTpl->assign('current_step', $current_step);

后天添加

$xoopsTpl->assign('xoopsConfigUser', $xoopsConfigUser);

4,打开themes\您的主题目录\themes.html

<{$xoops_module_header}>

前面添加

<script src="<{xoAppUrl include/jquery.js}>" type="text/javascript"></script>
<script src="<{xoAppUrl include/jquery.pstrength.1.2.js}>" type="text/javascript"></script>
<script src="<{xoAppUrl include/jquery.tabs.pack.js}>" type="text/javascript"></script>

5,清空缓存,刷新即可!
(XOOPS2.3的缓存目录好像变成xoops_data\caches\smarty_compile 目录下了)
有问题,留言…
感冒流鼻涕中…
jquery-reg-hack

随机日志

发表评论

1 Comments.

Leave a Reply



[ Ctrl + Enter ]

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word