找回密码
 注册
查看: 3754|回复: 4
收起左侧

仿7.5实现点击显示和隐藏个人信息for pw7.32

[复制链接]

5340

主题

8360

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14731
帖子
8360
精华
67
体力
14731 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2009-8-17 09:24:37 | 显示全部楼层 |阅读模式
template/wind/read.htm找到代码
  1. <th style="width:185px;padding:0 0 2em 0;" rowspan="2" class="r_two"> <div style="line-height:24px;padding:5px 5px 0 12px;"> <div class="listread fl"> <!-- EOT; if($db_showonline && checkOnline($read[thisvisit])){print <<<EOT --> <a class="readonline" href="javascript:;" onclick="sendmsg(pw_ajax.php?action=addfriend&touid=$read[authorid],,sf_$read[lou])" style="cursor:pointer;"title="加为好友"/>加为好友</a> <!-- EOT; }elseif($db_showonline){print <<<EOT --> <a class="readoffline" href="javascript:;" onclick="sendmsg(pw_ajax.php?action=addfriend&touid=$read[authorid],,sf_$read[lou])" style="cursor:pointer" title="" /> 加为好友 </a> <!-- EOT; }print <<<EOT --> </div> <b class="fl black"><a href="u.php?action=show&uid=$read[authorid]" target="_blank">$read[author]</a></b> <div class="c"></div> </div> <!-- EOT; if($read[honor]){print <<<EOT --> <div class="honor" style="padding-top:0;">$read[honor]</div> <!-- EOT; }print <<<EOT --> <div class="user-pic"> <table style="border:0;"> <tr> <td width="1"> <!-- EOT; if($db_menu>3){print <<<EOT --> <a href="u.php?action=show&uid=$read[authorid]" target="_blank" onmouseover="mt=setTimeout(read.open(\\showface_$read[lou]\\,\\sf_$read[lou]\\,1,21);,700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;">$read[face]</a> <!-- EOT; }else{print <<<EOT --> <a href="u.php?action=show&uid=$read[authorid]" target="_blank" >$read[face]</a> <!-- EOT; }print <<<EOT --></td> <td style="vertical-align:top"><span id="sf_$read[lou]"></span></td> </tr> </table> </div> <div style="padding-left:12px;padding-bottom:8px;"> 级别: {$read[level]}<br /> <img src="$imgpath/$stylepath/level/$read[lpic].gif" style="margin:.2em 0 .2em 0;display:block"/> $read[medals] <!-- EOT; $style = ; if($db_menu>3){print <<<EOT --> <span class="user-info" id="showface_$read[lou]" style="display:none"> <span class="user-infoWrap"> <span class="co"></span> <div class="listread"> <!-- EOT; }else{print <<<EOT --> <span class="user-info2" id="showface_$read[lou]"> <span class="user-infoWrap2"> <div class="listread"> <!-- EOT; }if($db_hackdb[blog][2] && $bg_ifopen){print <<<EOT --> <a class="readblog" href="$bg_blogurl/blog.php?bbsuid=$read[authorid]" target="_blank" title="进入个人主页">个人主页</a> <!-- EOT; }print <<<EOT --> <a href="u.php?action=show&uid=$read[authorid]" title="查看作者资料" class="readprofile">作者资料</a> <a title="发送短消息" class="readmessage" onclick="sendmsg(pw_ajax.php?action=msg&touid=$read[authorid],,sf_$read[lou])" style="cursor:pointer;">发送短消息</a> <!-- EOT; if($groupid!=guest && $db_hackdb[toolcenter][1]){print <<<EOT --> <a title="对该用户使用道具" class="readmagic" onclick="sendmsg(pw_ajax.php?action=usertool&uid=$read[authorid],,sf_$read[lou])" style="cursor:pointer">使用道具</a> <!-- EOT; }if($read[oicq]){print <<<EOT --> <a title="QQ:$read[oicq]" href="http://wpa.qq.com/msgrd?V=1&Uin=$read[oicq]&Site=$db_bbsname&Menu=yes" target="_blank" class="readqq">QQ联系</a> <!-- EOT; }if ($read[aliww]) {print <<<EOT --> <a class="readww" title="阿里旺旺:$read[aliww]" href="http://amos.im.alisoft.com/msg.aw?uid=$read[aliww]&site=cntaobao" target="_blank">阿里旺旺</a> <!-- EOT; }print <<<EOT --> </div> <div class="c" style="width:120px;height:5px;"></div> UID: <span class="f12">$read[authorid]</span><br /> 精华: <!-- EOT; if($read[digests]){print <<<EOT --> <a href="search.php?authorid=$read[authorid]&digest=1" target="_blank" class="s4">$read[digests]</a> <!-- EOT; }else{print <<<EOT --> <span class="s4">$read[digests]</span> <!-- EOT; }print <<<EOT --> <br /> 发帖: <span class="s1 f12">$read[postnum]</span><br /> $db_rvrcname: <span class="s2 f12">$read[aurvrc] $db_rvrcunit</span><br /> $db_moneyname: <span class="s3 f12">$read[money] $db_moneyunit</span><br /> <!-- EOT; if($db_ads){print <<<EOT --> $db_creditname: <span class="s1 f12">$read[credit] $db_creditunit</span><br /> <!-- EOT; }if($db_showcustom){ foreach($_CREDITDB as $k=>$v){ if(strpos($db_showcustom,",$k,")!==false){ !$customdb[$read[authorid]][$k] && $customdb[$read[authorid]][$k]=0; print <<<EOT --> $v[0]: <span class="s2 f12">{$customdb[$read[authorid]][$k]} $v[1]</span><br /> <!-- EOT; }}}if($customfield){ foreach($customfield as $k=>$val){ if($val[viewinread]){ if($val[viewright]&&$winduid!=$read[authorid]&&strpos(",$val[viewright],",",$groupid,")===false){ continue; }$field="field_".(int)$val[id]; if($val[type]==3){ foreach(explode("\\n",$val[options]) as $k=>$v){ list($k,$v)=explode(=,$v); if($read[$field]==$k){ $read[$field]=$v; }}}print <<<EOT --> $val[title]: $read[$field]<br /> <!-- EOT; }}}if($read[customdata]){ foreach($read[customdata] as $k => $val){ if($custominfo[$k][2]){ $custominfo[$k][2]=str_replace("{{$k}}",$val,$custominfo[$k][2]); $custominfo[$k][4] && $val=$custominfo[$k][4]; $val="<a href=\\"{$custominfo[$k][2]}\\" target=\\"_blank\\">$val</a>"; }print <<<EOT --> {$custominfo[$k][0]}: $val<br /> <!-- EOT; }}if($db_showcolony && $colonydb[$read[authorid]]){ $v=$colonydb[$read[authorid]]; print <<<EOT --> 群组: <a href="mode.php?m=o&q=group&cyid=$v[id]" target="_blank">$v[cname]</a><br /> <!-- EOT; }if($db_ifonlinetime){print <<<EOT --> 在线时间: $read[ontime](时)<br /> <!-- EOT; }print <<<EOT --> 注册时间: <span class="gray">{$read[regdate]}</span><br /> 最后登录: <span class="gray">{$read[lastlogin]}</span></span></span></div> </th>
复制代码


替换为
  1. <th style="width:185px;padding:0 0 2em 0;" rowspan="2" class="r_two"> <div style="line-height:24px;padding:5px 5px 0 12px;"> <div class="listread fl"> <!-- EOT; if($db_showonline && checkOnline($read[thisvisit])){print <<<EOT --> <a class="readonline" href="javascript:;" onclick="sendmsg(pw_ajax.php?action=addfriend&touid=$read[authorid],,sf_$read[lou])" style="cursor:pointer;"title="加为好友"/>加为好友</a> <!-- EOT; }elseif($db_showonline){print <<<EOT --> <a class="readoffline" href="javascript:;" onclick="sendmsg(pw_ajax.php?action=addfriend&touid=$read[authorid],,sf_$read[lou])" style="cursor:pointer" title="" /> 加为好友 </a> <!-- EOT; }print <<<EOT --> </div> <b class="fl black"><a href="u.php?action=show&uid=$read[authorid]" target="_blank">$read[author]</a></b> <div class="c"></div> </div> <!-- EOT; if($read[honor]){print <<<EOT --> <div class="honor" style="padding-top:0;">$read[honor]</div> <!-- EOT; }print <<<EOT --> <div class="user-pic"> <table style="border:0;"> <tr> <td width="1"> <!-- EOT; if($db_menu>3){print <<<EOT --> <a href="u.php?action=show&uid=$read[authorid]" target="_blank" onmouseover="mt=setTimeout(read.open(\\showface_$read[lou]\\,\\sf_$read[lou]\\,1,21);,700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;">$read[face]</a> <!-- EOT; }else{print <<<EOT --> <a href="u.php?action=show&uid=$read[authorid]" target="_blank" >$read[face]</a> <!-- EOT; }print <<<EOT --></td> <td style="vertical-align:top"><span id="sf_$read[lou]"></span></td> </tr> </table> </div> <script language="javascript"> function showcard(id,uid) { read.obj = getObj(id); try {ajax.send(pw_ajax.php?action=showcard&uid=+uid,,ajax.get);} catch(e){} } </script> <div style="padding-left:12px;padding-bottom:8px;"> 级别: {$read[level]}<br /> <img src="$imgpath/$stylepath/level/$read[lpic].gif" style="margin:.2em 0 .2em 0;display:block"/> $read[medals] <span class="user-info2"> <span class="user-infoWrap2"> <div class="listread"> <!-- EOT; if($db_hackdb[blog][2] && $bg_ifopen){print <<<EOT --> <a class="readblog" href="$bg_blogurl/blog.php?bbsuid=$read[authorid]" target="_blank" title="进入个人主页">个人主页</a> <!-- EOT; }print <<<EOT --> <a href="u.php?action=show&uid=$read[authorid]" title="查看作者资料" class="readprofile">作者资料</a> <a title="发送短消息" class="readmessage" onclick="sendmsg(pw_ajax.php?action=msg&touid=$read[authorid],,sf_$read[lou])" style="cursor:pointer;">发送短消息</a> <!-- EOT; if($groupid!=guest && $db_hackdb[toolcenter][1]){print <<<EOT --> <a title="对该用户使用道具" class="readmagic" onclick="sendmsg(pw_ajax.php?action=usertool&uid=$read[authorid],,sf_$read[lou])" style="cursor:pointer">使用道具</a> <!-- EOT; }if($read[oicq]){print <<<EOT --> <a title="QQ:$read[oicq]" href="http://wpa.qq.com/msgrd?V=1&Uin=$read[oicq]&Site=$db_bbsname&Menu=yes" target="_blank" class="readqq">QQ联系</a> <!-- EOT; }if ($read[aliww]) {print <<<EOT --> <a class="readww" title="阿里旺旺:$read[aliww]" href="http://amos.im.alisoft.com/msg.aw?uid=$read[aliww]&site=cntaobao" target="_blank">阿里旺旺</a> <!-- EOT; }print <<<EOT -->  </div> <div class="c" style="width:120px;height:5px;"></div> <!-- EOT; if(!$db_readinfo){print<<<EOT --> <a id="info_$read[lou]" onclick="showuserinfo($read[lou]);" style="cursor:pointer; text-decoration:underline;">显示用户信息</a><span id="gif_$read[lou]" onclick="showuserinfo($read[lou]);" style="cursor:pointer;"><img src="$imgpath/read_down.gif"></span> <!-- EOT; }print<<<EOT --> </span> </span> <!-- EOT; if(!$db_readinfo){print<<<EOT --> <span class="user-info2" id="showface_$read[lou]" style="display:none"> <script language="javascript"> function showuserinfo (id) { if (getObj(showface_ + id).style.display == none) { getObj(showface_ + id).style.display = ; getObj(info_ + id).innerHTML = 隐藏用户信息; getObj(gif_ + id).innerHTML = "<img src=\\"$imgpath/read_up.gif\\">"; } else { getObj(showface_ + id).style.display = none; getObj(info_ + id).innerHTML = 显示用户信息; getObj(gif_ + id).innerHTML = "<img src=\\"$imgpath/read_down.gif\\">"; } } </script> <!-- EOT; }else{print<<<EOT --> <span class="user-info2" id="showface_$read[lou]"> <!-- EOT; }print<<<EOT --> <span class="user-infoWrap2"> <div class="c" style="width:120px;height:5px;"></div> UID: <span class="f12">$read[authorid]</span><br /> 精华: <!-- EOT; if($read[digests]){print <<<EOT --> <a href="search.php?authorid=$read[authorid]&digest=1" target="_blank" class="s4">$read[digests]</a> <!-- EOT; }else{print <<<EOT --> <span class="s4">$read[digests]</span> <!-- EOT; }print <<<EOT --> <br /> 发帖: <span class="s1 f12">$read[postnum]</span><br /> $db_rvrcname: <span class="s2 f12">$read[aurvrc] $db_rvrcunit</span><br /> $db_moneyname: <span class="s3 f12">$read[money] $db_moneyunit</span><br /> $db_currencyname: <span class="s4 f12">$read[currency] $db_currencyunit</span><br /> <!-- EOT; if($db_ads){print <<<EOT --> $db_creditname: <span class="s1 f12">$read[credit] $db_creditunit</span><br /> <!-- EOT; }if($db_showcustom){ foreach($_CREDITDB as $k=>$v){ if(strpos($db_showcustom,",$k,")!==false){ !$customdb[$read[authorid]][$k] && $customdb[$read[authorid]][$k]=0; print <<<EOT --> $v[0]: <span class="s2 f12">{$customdb[$read[authorid]][$k]} $v[1]</span><br /> <!-- EOT; }}}if($customfield){ foreach($customfield as $k=>$val){ if($val[viewinread]){ if($val[viewright]&&$winduid!=$read[authorid]&&strpos(",$val[viewright],",",$groupid,")===false){ continue; }$field="field_".(int)$val[id]; if($val[type]==3){ foreach(explode("\\n",$val[options]) as $k=>$v){ list($k,$v)=explode(=,$v); if($read[$field]==$k){ $read[$field]=$v; }}}print <<<EOT --> $val[title]: $read[$field]<br /> <!-- EOT; }}}if($read[customdata]){ foreach($read[customdata] as $k => $val){ if($custominfo[$k][2]){ $custominfo[$k][2]=str_replace("{{$k}}",$val,$custominfo[$k][2]); $custominfo[$k][4] && $val=$custominfo[$k][4]; $val="<a href=\\"{$custominfo[$k][2]}\\" target=\\"_blank\\">$val</a>"; }print <<<EOT --> {$custominfo[$k][0]}: $val<br /> <!-- EOT; }}if($db_showcolony && $colonydb[$read[authorid]]){ $v=$colonydb[$read[authorid]]; print <<<EOT --> 群组: <a href="mode.php?m=o&q=group&cyid=$v[id]" target="_blank">$v[cname]</a><br /> <!-- EOT; }if($db_ifonlinetime){print <<<EOT --> 在线时间: $read[ontime](时)<br /> <!-- EOT; }print <<<EOT --> 注册时间: <span class="gray">{$read[regdate]}</span><br /> 最后登录: <span class="gray">{$read[lastlogin]}</span> </span> </span> </div> </th>
复制代码

images.rar

1 KB, 下载次数: 0, 下载积分: 体力 -1 点

出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2025-2-5 16:46 , Processed in 0.124049 second(s), 27 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

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