![]() |
Disabling Report a Post in Specific Forums
Could there be any code for that? Some kind of <if> conditional statement? We want to disable it for one or two forums that are private.
|
You could put a condition around the button in the postbit. Something like:
HTML Code:
<if condition="$forumid != 'xx'"> |
Quote:
|
The code Lynne posted is it. != means not equal to.
|
I'm trying to do the same thing, remove the report post button from just one forum. But my if statement does not seem to be working.
Code:
<!-- No Report-Post-Link in clubhouse --> Thanks |
Put a space between the forumid and the condition.... $forumid !=
|
I put a space before and after the != but it's still not working. My code reads as follows:
Code:
<if condition="$forumid != '488'"> Thanks |
You realize you are doing a does NOT equal condition?
Are you making sure to do it in the postbit that you are using? (ie. correct style and correct postbit (there are two)) Try <if condition="$thread['forumid'] != '4'"> also. Sometimes you need to use the $thread variable instead. |
Wouldn't it be easier to change $show['reportlink'] per plugin? ;) So you wouldn't have to change the template => easier updates^^
|
Quote:
|
Thanks Lynne
changing to $thread['forumid'] was exactly what did the trick. here is the code again for anyone trying to do the same thing: Code:
<if condition="$thread['forumid'] != 'xxx'"> and I've never created a plugin but would be willing to learn if someone can point me to a good tutorial. Thanks again |
Quote:
|
I tested it on our forums and everything works fine.
Thanks again |
Keep in mind that it just hides the link - it does not keep users form reporting posts.
|
Quote:
|
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|