亲宝软件园·资讯

展开

Discuz 必填 个人信息美化 For Discuz6.1.0 qq必填

人气:2
想了解个人信息美化 For Discuz6.1.0 qq必填的相关内容吗,在本文为您仔细讲解Discuz 必填的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:个人信息,Discuz,qq必填,下面大家一起来学习吧。

第一种方法1.请在4月23号22点以前的重新下载

第二种手动修改[4月23号22点以前装的可手动修改]

打开:\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>
==========================================================================
安装方法:[附件里有修改好的!请在4月23号22点以前的重新下载]
==========================================================================
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('请填写QQ号码,返回重新填写','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>
把以上代码删掉!!(删除高级选项里的)


3、templates/default/viewthread.htm(模块文件)

①查找: 

代码:
{eval $postcount = 0;}
下面加: 

代码:
<SCRIPT>
<!--
function flip(ud, img) {
if (ud.style.display == "block") {
ud.style.display="none";
img.src = './images/sn-post/qqshow_1.gif';
}else{
ud.style.display="block";
img.src = './images/sn-post/qqshow_2.gif';
}
}
// -->
</SCRIPT>
②查找: 

代码:
                                <td class="postauthor">
                                        $post[newpostanchor] $post[lastpostanchor]
                                        <cite><!--{if $forum['ismoderator']}-->
                                                <!--{if $allowviewip && ($thread['digest'] >= 0 || !$post['first'])}--

><label>
                                 '
                                 '
                              一直到
                                 '
                                 '
                                                <!--{else}-->
                                                        $post[author]</cite>
                                                        {lang member_deleted}
                                                <!--{/if}-->
                                        <!--{/if}-->

                               </td>
改为: 

代码:
                                 {template snshow}
③再查找: 

代码:
<!--{if $post['msn'] || $post['qq'] || $post['icq'] || $post['yahoo'] || $post['taobao']}-->
                                        <div class="imicons">
                                                <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', 

'$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
                                                        <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" 

title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
                                                <!--{if $post['qq']}--><a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]

&Site=$bbname&Menu=yes" target="_blank"><img src="{IMGDIR}/qq.gif" alt="QQ" /></a><!--{/if}-->
                                                <!--{if $post['icq']}--><a href="http://wwp.icq.com/scripts/search.dll?

to=$post[icq]" target="_blank"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a><!--{/if}-->
                                                <!--{if $post['yahoo']}--><a 

href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank"><img src="{IMGDIR}/yahoo.gif" 

alt="Yahoo!"  /></a><!--{/if}-->
                                                <!--{if $post['taobao']}--><script type="text/javascript">document.write('<a 

target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&s=2"><img 

src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a>');</script><!--{/if}-->
                                        </div>
                                        <!--{/if}-->
                                        <dl>{eval @eval('echo "'.$customauthorinfo[2].'";');}</dl>
把以上代码删掉!!


4、上传附件[imgages里的文件]....更新....完成!!!

=============================================================================

有什么问题可加入Discuz!论坛[KBS]交流群:9675645询问

加载全部内容

相关教程
猜你喜欢
用户评论