個(gè)人信息美化 For Discuz6.1.0 qq必填第1/2頁(yè)
第一種方法1.請(qǐng)?jiān)?月23號(hào)22點(diǎn)以前的重新下載
第二種手動(dòng)修改[4月23號(hào)22點(diǎn)以前裝的可手動(dòng)修改]
打開(kāi):\templates\default\snshow.htm
找到:
代碼:
<a href="pm.php?action=send&uid=$post[authorid]" target="_blank" id="ajax_uid_$post['pid']" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">{lang send_pm}</a>
<a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" onclick="ajaxmenu(event, this.id, null, 0)">{lang add_to_buddylist}</a>
替換為:
代碼:
<a href="###" onclick="pmwin('open', 'uid=$post[authorid]')">{lang send_pm}</a> <a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" onclick="ajaxmenu(event, this.id, 3000, 0)">{lang add_to_buddylist}</a>
==========================================================================
安裝方法:[附件里有修改好的!請(qǐng)?jiān)?月23號(hào)22點(diǎn)以前的重新下載]
==========================================================================
1、修改register.php(主目錄下文件)
①查找:
代碼:
if($password != $password2) {
showmessage('profile_passwd_notmatch');
}
下面加:
代碼:
if($qq = preg_match("/^([0-9]+)$/", $qq) && strlen($qq) >= 5 && strlen($qq) <= 12 && intval($qq) > 0 ? $qq : '') {
} else {
showmessage('請(qǐng)?zhí)顚?xiě)QQ號(hào)碼,返回重新填寫(xiě)','javascript:history.back()');
}
2、templates/default/register.htm(模塊文件)
①查找:
代碼:
<tr>
<th><label for="password2">{lang password_confirm} *</label></th>
<td>
<input type="password" name="password2" size="25" id="password2" onBlur="checkpassword2()"
tabindex="5" />
<span id="checkpassword2"> </span>
</td>
</tr>
下面加:
代碼:
<tr>
<th><label for="qq">QQ *</label></th>
<td><input type="text" id="qq" name="qq" size="25" tabindex="23" /></td>
</tr>
②再查找:
代碼:
<tr>
<th><label for="qq">QQ</label></th>
<td><input type="text" id="qq" name="qq" size="25" tabindex="23" /></td>
</tr>
把以上代碼刪掉!!(刪除高級(jí)選項(xiàng)里的)
相關(guān)文章
用nero刻錄可啟動(dòng)功能的光盤(pán)而且光盤(pán)不是iso格式的
用nero刻錄可啟動(dòng)功能的光盤(pán)而且光盤(pán)不是iso格式的...2007-12-12解析導(dǎo)致局域網(wǎng)網(wǎng)速變慢的五大真兇
解析導(dǎo)致局域網(wǎng)網(wǎng)速變慢的五大真兇...2007-11-11winrar使用技巧 WinRAR必會(huì)的20個(gè)絕招圖文演示
2008-01-01如何設(shè)置一個(gè)嚴(yán)格30分鐘過(guò)期的Session示例介紹
SESSION和COOKIE是每個(gè)面試官必問(wèn)的知識(shí)點(diǎn),下面為大家介紹下如何設(shè)置一個(gè)嚴(yán)格30分鐘過(guò)期的Session,具體示例如下,感興趣的朋友可以參考下哈,希望對(duì)大家有所幫助2013-07-07