Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 个人信息美化【6.0-6.1】

[复制链接]
rootbi 发表于 2008-6-20 17:57:11 | 显示全部楼层 |阅读模式
结合了目前所有的个人信息的优点
所整理出来的个人信息美化处理

附件中的文档是6.0测试过的~

如果是6.1的版本可以按照附件中的readme修改文件就OK了

点击人物图片即可看到明细信息

演示站点:[url=http://www.tcshanghai.com][color=#800080]www.tcshanghai.com[/color][/url][code]==========================================================================

GBK版--安装方法:

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

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、修改include/javascript/viewthread.js文件
查找
复制内容到剪贴板
代码:
function copycode(obj) {
在上面增加
复制内容到剪贴板
代码:
function mushow(number)
{
numberx="xusinfox"+number;
var usinfo = document.getElementById(numberx);
if(typeof usinfo.style.MozOpacity != "undefined")
{
otype= "moz";
}
else if(typeof usinfo.style.opacity != "undefined")
{
otype= "w3c";
}
else if(typeof usinfo.style.KhtmlOpacity != "undefined")
{
otype= "khtml";
}
else if(typeof usinfo.filters == "object")
{
otype = (usinfo.filters.length > 0 && typeof usinfo.filters.alpha == 'object' && typeof usinfo.filters.alpha.opacity == 'number')?'ie':'none';
}
if (usinfo.style.display=="none")
{
if(otype=="w3c")
{
fadeun(numberx);
}
else if(otype=="ie")
{
fadeun(numberx);
}
else if(otype=="moz")
{
fadeun(numberx);
}
else if(otype=="khtml")
{
fadeun(numberx);
}
usinfo.style.display="";
}
else if(usinfo.style.display=="")
{
if(otype=="w3c")
{
fadeun(numberx);
}
else if(otype=="ie")
{
fadeun(numberx);
}
else if(otype=="moz")
{
fadeun(numberx);
}
else if(otype=="khtml")
{
fadeun(numberx);
}
usinfo.style.display="none";
}
}

function fadeun(number)
{
var usinfo = document.getElementById(number);
if(typeof usinfo.style.MozOpacity != "undefined")
{
otype= "moz";
}
else if(typeof usinfo.style.opacity != "undefined")
{
otype= "w3c";
}
else if(typeof usinfo.style.KhtmlOpacity != "undefined")
{
otype= "khtml";
}
else if(typeof usinfo.filters == "object")
{
otype = (usinfo.filters.length > 0 && typeof usinfo.filters.alpha == 'object' && typeof usinfo.filters.alpha.opacity == 'number')?'ie':'none';
}
if(usinfo.style.display=="none")
{
if(otype=="w3c")
{
usinfo.style.opacity-=1;
if (usinfo.style.opacity<100)
{
setTimeout("fadeun(numberx)",90);
}
}
else if(otype=="ie")
{
usinfo.filters.alpha.opacity-=1;
if (usinfo.filters.alpha.opacity<100)
{
setTimeout("fadeun(numberx)",90);
}
}
else if(otype=="moz")
{
usinfo.style.MozOpacity=1;
}
else if(otype=="khtml")
{
usinfo.style.khtmlOpacity-=0.1;
if(usinfo.style.khtmlOpacity < 1)
{
setTimeout("fadeun(numberx)",90);
}
}
}
else if(usinfo.style.display=="")
{
if(otype=="w3c")
{
usinfo.style.opacity+=1;
if (usinfo.style.opacity>0)
{
setTimeout("fadeun(numberx)",90);
}
}
else if(otype=="ie")
{
usinfo.filters.alpha.opacity+=1;
if(usinfo.filters.alpha.opacity>0)
{
setTimeout("fadeun(numberx)",90);
}
}
else if(otype=="moz")
{
usinfo.style.MozOpacity=1;
}
else if(otype=="khtml")
{
usinfo.style.khtmlOpacity+=0.1;
if(usinfo.style.khtmlOpacity > 0)
{
setTimeout("fadeun(numberx)",90);
}
}
}
}
此代码作用:实现折叠效果


4、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']}-->
'
'
一直到
'
'
<!--{else}-->
$post[author]</cite>
{lang member_deleted}
<!--{/if}-->
<!--{/if}-->
</td>
改为:
复制内容到剪贴板代码:
{template snshow}
③再查找:
复制内容到剪贴板代码:
<div class="postinfo">
<strong title="{lang post_copylink}" id="postnum$post[pid]" onclick="setcopy('{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post[pid]', '{lang post_copied}')"><!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}--></strong>
<!--{if MSGBIGSIZE || MSGSMALLSIZE}-->
<!--{if MSGBIGSIZE}--><em onclick="$('postmessage_$post[pid]').className='t_bigfont'">{lang big}</em><!--{/if}-->
<em onclick="$('postmessage_$post[pid]').className='t_msgfont'">{lang middle}</em>
<!--{if MSGSMALLSIZE}--><em onclick="$('postmessage_$post[pid]').className='t_smallfont'">{lang small}</em><!--{/if}-->
<!--{/if}-->
<!--{if $thread['price'] >= 0 || $post['first']}-->{lang poston} $post[dateline] <!--{/if}-->
<!--{if $post['authorid'] && !$post['anonymous']}-->
<!--{if !$authorid}-->
<a href="viewthread.php?tid=$post[tid]&page=$page&authorid=$post[authorid]" rel="nofollow">{lang thread_show_author}</a>
<!--{else}-->
<a href="viewthread.php?tid=$post[tid]&page=$page" rel="nofollow">{lang thread_show_all}</a>
<!--{/if}-->
<!--{/if}-->
</div>
改为:
复制内容到剪贴板代码:
<div class="postinfo">
<strong title="{lang post_copylink}" id="postnum$post[pid]" onclick="setcopy('{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post[pid]', '{lang post_copied}')"><!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}--></strong>
<!--{if MSGBIGSIZE || MSGSMALLSIZE}-->
<!--{if MSGBIGSIZE}--><em onclick="$('postmessage_$post[pid]').className='t_bigfont'">{lang big}</em><!--{/if}-->
<em onclick="$('postmessage_$post[pid]').className='t_msgfont'">{lang middle}</em>
<!--{if MSGSMALLSIZE}--><em onclick="$('postmessage_$post[pid]').className='t_smallfont'">{lang small}</em><!--{/if}-->
<!--{/if}-->
<!--{if $thread['price'] >= 0 || $post['first']}-->{lang poston} $post[dateline] <!--{/if}-->
<!--{if $post['authorid'] && !$post['anonymous']}-->
<!--{if !$authorid}-->
<a href="viewthread.php?tid=$post[tid]&page=$page&authorid=$post[authorid]" rel="nofollow">{lang thread_show_author}</a>
<!--{else}-->
<a href="viewthread.php?tid=$post[tid]&page=$page" rel="nofollow">{lang thread_show_all}</a>
<!--{/if}-->
<!--{/if}-->
<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>
<a href="{$uchomeurl}/space.php?uid=$post[authorid]" target="_blank">{lang space}</a>
</div>
④再查找:
复制内容到剪贴板代码:
</fieldset>
<!--{else}-->
<div id="post_rate_div_$post[pid]"></div>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if $post['signature'] && !$post['anonymous'] && $showsignatures}-->
<div class="signatures" style="maxHeightIE: {MAXSIGROWS}px;">
$post[signature]
</div>
<!--{/if}-->
</td>
</tr>
<tr>
<td class="postauthor">
改为:
复制内容到剪贴板代码:
</fieldset>
<!--{else}-->
<div id="post_rate_div_$post[pid]"></div>
<!--{/if}-->
</div>
<!--{/if}-->
</div>
</td>
</tr>
<tr><td style="vertical-align:bottom;border:0;">
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post[count]">$advlist[thread1][$post[count]]</div><!--{else}--><div id="ad_thread1_$post[count]"></div><!--{/if}-->
</td></tr>
<tr><td style="vertical-align:bottom;border:0;">
<!--{if $post['signature'] && !$post['anonymous'] && $showsignatures}-->
<div class="signatures" style="maxHeightIE: {$maxsigrows}px;">
$post[signature]
</div>
<!--{/if}-->
</td></tr>
<tr>
<td class="postauthor" rowspan="2">
⑤再查找:
复制内容到剪贴板代码:
<!--{if $post['msn'] || $post['qq'] || $post['icq'] || $post['yahoo'] || $post['taobao']}-->
<div class="imicons">
<!--{if $post['msn']}-->
<a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></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>
把以上代码删掉!!

⑥再查找:
复制内容到剪贴板代码:
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post[count]">$advlist[thread1][$post[count]]</div><!--{else}--><div id="ad_thread1_$post[count]"></div><!--{/if}-->
把以上代码删掉!!

⑦查找:
复制内容到剪贴板
代码:
<script type="text/javascript">zoomstatus = parseInt($zoomstatus);</script>
下面增加:
复制内容到剪贴板
代码:
<style type="text/css">
.xusinfox {filter:alpha(opacity=0);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;}
</style>
此代码作用:实现渐变效果

5、上传附件....更新....完成!!!
[/code]

[[i] 本帖最后由 rootbi 于 2008-6-23 10:42 编辑 [/i]]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
天津数据 发表于 2008-6-20 22:00:40 | 显示全部楼层
不错,占位收藏,顶起来
回复

使用道具 举报

 楼主| rootbi 发表于 2008-6-20 23:01:33 | 显示全部楼层
附件更新了 ~
回复

使用道具 举报

whs164 发表于 2008-6-20 23:47:30 | 显示全部楼层
好东西   
回复

使用道具 举报

kugoo2008 发表于 2008-6-21 00:13:07 | 显示全部楼层
不错,我喜欢
回复

使用道具 举报

freefad 发表于 2008-6-21 17:38:44 | 显示全部楼层
以前用过 忘记原创是谁了
呵呵
支持一下
回复

使用道具 举报

qq9688 发表于 2008-6-21 18:39:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| rootbi 发表于 2008-6-22 21:29:54 | 显示全部楼层
原帖由 freefad 于 2008-6-21 17:38 发表
以前用过 忘记原创是谁了
呵呵
支持一下


呵呵  
我也是整合了一下的~
回复

使用道具 举报

marco187 发表于 2008-6-22 22:45:33 | 显示全部楼层
正需要这个
回复

使用道具 举报

chenxi198657 发表于 2008-6-23 00:13:47 | 显示全部楼层
买不起啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 10:07 , Processed in 0.137892 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表