Home >Backend Development >PHP Tutorial >discuz发帖按钮的控制

discuz发帖按钮的控制

WBOY
WBOYOriginal
2016-06-20 12:25:571523browse

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的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn