PDA

View Full Version : How do I remove the "Report Post" button from a single forum?


Falcon Capt
11-20-2020, 07:49 PM
How do I remove the "Report Post" button from a single forum (the forum ID is 240) in vB 4.2.3?

I tried this in postbit_legacy but it doesn't work:

<vb:if condition="$forum[forumid] != 240">
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->&nbsp;</a> &nbsp;
</vb:if></vb:if>

z3r0
11-21-2020, 06:47 AM
Try this
<vb:if condition="$GLOBALS['forumid'] != 240">
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->&nbsp;</a> &nbsp;
</vb:if></vb:if>

Falcon Capt
11-21-2020, 03:39 PM
Try this
<vb:if condition="$GLOBALS['forumid'] != 240">
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->&nbsp;</a> &nbsp;
</vb:if></vb:if>Awesome, that worked!

Many thanks!