SCLUB免費論壇申請-使用者論壇's Archiver

梅子爱阿政 發表於 2016-2-22 16:50

如何设置成员只能修改一次出生年月?

如题如题如题:dizzy:

leisurema 發表於 2016-2-22 18:56

[i=s] 本帖最後由 leisurema 於 2016-2-22 18:57 編輯 [/i]

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=266770&ptid=32161]1#[/url] [i]梅子爱阿政[/i] [/b]
[url]http://sclub.com.tw/discuz/viewthread.php?tid=10756&extra=page%3D3[/url]轉貼
搜尋方式--[color=Magenta]「論壇搜尋功能」[/color]。
修改成员只能修改一次出生年月?  :L

无界 發表於 2016-2-23 00:49

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=266770&ptid=32161]1#[/url] [i]梅子爱阿政[/i] [/b]

可以,编辑memcp_profile.htm模版,找到下边代码[code]<td><input type="text" name="bdaynew" id="bdaynew" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="$member[bday]" class="txt"  prompt="modifyprofile_birthday" /></td>[/code]修改为:[code]<td><input type="text" name="bdaynew" id="bdaynew" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="$member[bday]" class="txt" disabled prompt="modifyprofile_birthday" /></td>[/code]即可,这样的话,用户在注册时填写的生日就不可以在注册后改动了。

梅子爱阿政 發表於 2016-2-23 14:29

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=266792&ptid=32161]3#[/url] [i]无界[/i] [/b]


    非常感谢~!!那啥,修改日期的地方能设置温馨提示吗?

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.