Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Jul 2019, 03:38
Falcon Capt Falcon Capt is offline
 
Join Date: May 2006
How do you remove the "Report Post" link from just one forum?

I tried using the template conditionals wrapped around the Report Post code in the Postbit Template, but it didn't work.
Show is every forum but one: Remember to change x

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I changed X to the forum number but it didn't work.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 03 Jul 2019, 04:01
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I would use a plugin rather than a template hack, and set the variable $show['reportlink'] to false if the forumid matches the desired where it should be turned off.

I have a product, whose latest version you can get here:

https://mathhelpboards.com/vbulletin...use-22022.html

The primary goal of this product is to discourage report abuse, but it can be configured to simply do what you want.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 03 Jul 2019, 04:32
Falcon Capt Falcon Capt is offline
 
Join Date: May 2006
I don't need any of the other features and only need to shut of reports for a single forum, I would prefer to use a template hack/conditional versus installing an entire modification of which I only need one feature.
Reply With Quote
  #4  
Old 03 Jul 2019, 10:32
BetoPho BetoPho is offline
 
Join Date: Nov 2014
You should use

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

instead of $forum['forumid']. This variable won't work on postbit templates.

Also, check that you're inserting into the right postbit template.

Please know that if user try to manually use the report URL, it will work. That's why MarkFL advised you to use a plugin on this.
Reply With Quote
  #5  
Old 03 Jul 2019, 16:55
Falcon Capt Falcon Capt is offline
 
Join Date: May 2006
Originally Posted by BetoPho View Post
You should use

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

instead of $forum['forumid']. This variable won't work on postbit templates.

Also, check that you're inserting into the right postbit template.

Please know that if user try to manually use the report URL, it will work. That's why MarkFL advised you to use a plugin on this.
Perfect, that is exactly what I needed, worked great.

Thank you!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:04.

Layout Options | Width: Wide Color: