The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
You could put a condition around the button in the postbit. Something like:
HTML Code:
<if condition="$forumid != 'xx'"> report button html </if> |
#3
|
|||
|
|||
Is there a conditional statement for something like "$forumid is not 'xx'"?
|
#4
|
||||
|
||||
The code Lynne posted is it. != means not equal to.
|
#5
|
|||
|
|||
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 --> <if condition="$forumid!='488'"> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> </if> </if> Thanks |
#6
|
||||
|
||||
Put a space between the forumid and the condition.... $forumid !=
|
#7
|
|||
|
|||
I put a space before and after the != but it's still not working. My code reads as follows:
Code:
<if condition="$forumid != '488'"> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> </if> </if> Thanks |
#8
|
||||
|
||||
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. |
#9
|
|||
|
|||
Wouldn't it be easier to change $show['reportlink'] per plugin? So you wouldn't have to change the template => easier updates^^
|
#10
|
||||
|
||||
Yes. I thought of that today, but obviously not back in April. But, he was already going down the route of doing a template edit so I decided to continue with that one (and so many users hate writing plugins).
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|