只需一步,快速开始
名称: 个人信息栏用户名快捷操作下拉 for dz5.0.0 by lu5266 适用: Discuz! 5.0.0 作者: lu5266 演示: http://www.discuzs.net/ 版权: lu5266
说明: 在个人信息栏用户名那里提供快捷的连接操作 比较人性化,看图就明白
文件列表: ./templates/default/viewthread.htm
修改方法: ./templates/default/viewthread.htm (对应的风格假如也存在该文件那也要同样修改) 找:<a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold">$post[author]</a>复制代码替换为: <span id="profile_$post['number']"><a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold">$post[author]</a><script type="text/javascript">menuregister(true, "profile_$post['number']")</script></span> <div class="headermenu_popup" id="profile_$post['number']_menu" style="display: none"> <table cellpadding="4" cellspacing="0" border="0"> <tr><td class="popupmenu_option"><a href="viewpro.php?uid=$post[authorid]" target="_blank">查看个人信息</a></td></tr> <!--{if $supe_status }--><tr><td class="popupmenu_option"><a href="$supe_siteurl/index.php?uid/$post[uid]" target="_blank"> {lang space}</a></td></tr><!--{/if}--> <tr><td class="popupmenu_option"><a href="blog.php?uid=$post[uid]" target="_blank">{lang blog}</a></td></tr> <tr><td class="popupmenu_option"><a href="pm.php?action=send&uid=$post[uid]" target="_blank">{lang send_pm}</a></td></tr> <tr><td class="popupmenu_option"><a href="memcp.php?action=buddylist&newbuddyid=$post[uid]&buddysubmit=yes" target="_blank">{lang add_to_buddylist}</a></td></tr> <tr><td class="popupmenu_option"><a href="search.php?srchuid=$post[uid]&srchfid=all&srchfrom=0&searchsubmit=yes" target="_blank">{lang search_posts}</a></td></tr> <!--{if $allowedituser || $allowbanuser}--> <!--{if $adminid == 1}--> <!--{eval $editname=rawurlencode($post[username]);}--> <tr><td class="popupmenu_option"><a href="admincp.php?action=members&username=$editname&searchsubmit=yes&frames=yes" target="_blank">{lang edit_member}</a></td></tr> <!--{else}--> <tr><td class="popupmenu_option"><a href="admincp.php?action=editmember&uid=$post[uid]&membersubmit=yes&frames=yes" target="_blank">{lang edit_member}</a></td></tr> <!--{/if}--> <tr><td class="popupmenu_option"><a href="admincp.php?action=banmember&uid=$post[uid]&membersubmit=yes&frames=yes" target="_blank">{lang ban_member}</a></td></tr> <!--{/if}--> <!--{if $post['adminid'] > 0 && $modworkstatus}--> <tr><td class="popupmenu_option"><a href="stats.php?type=modworks&uid=$post[uid]">{lang moderations}</a></td></tr> <!--{/if}--> </table></div>复制代码完成
假如要鼠标移动到用户名就下拉的话 把menuregister(true, "profile_$post['number']")复制代码换为:menuregister(false, "profile_$post['number']")复制代码
您需要 登录 才可以下载或查看,没有账号?立即注册
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-12-23 23:58 , Processed in 0.039149 second(s), 4 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.