discuz的帖子列表页和主题页里面的发帖按钮。现在想把它放在页头,然后做一个判断。当在主题列表页和主题页时才显示。有什么方法吗?
<!--{if !$_get['archiveid']}--><a href="javascript:;" id="newspecial" class="butt" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showmenu({'ctrlid':this.id})"{if !$_g['forum']['allowspecialonly'] && empty($_g['forum']['picstyle']) && !$_g['forum']['threadsorts']['required']} onclick="showwindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_g[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_g[fid]';return false;"{/if} title="{lang send_posts}">{lang send_posts}</a><!--{/if}-->
有个变量判断是否主题页的,你找找
有个变量判断是否主题页的,你找找
可以找到对应的theme文件修改,貌似有个是forum.php thread.php的
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号