Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
Disable Post Report Link for a forum
Lynne
Join Date: Sep 2004
Posts: 41,180

California/Idaho
by Lynne Lynne is offline 21 May 2009

If you want to NOT show the Post Report Link in one forum, forumid 'x', then you can write a simple plugin (change 'x' to be the forumid):

hook_location: postbit_display_complete

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

That code will simply not show the link. However, if your users are smart enough to figure out the url to the report.php page and add in the post id, they will still be able to report it. So, to completely disable reporting in that forum, you may also add another plugin (change 'x' to be the forumid):

hook_location: report_start

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

You could actually only add the second plugin and then the link to report the post will be there, but the user will get the No Permission message upon clicking it.
Views: 6332
Reply With Quote
Comments
  #2  
Old 25 May 2009, 17:00
Come2Daddy Come2Daddy is offline
 
Join Date: May 2008
nice tips

thanks a lot
Reply With Quote
  #3  
Old 22 Jul 2009, 17:14
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
And...

Disable Post Report Link for a user, based on ['userid']...

How to be?

Thanks
Reply With Quote
  #4  
Old 22 Jul 2009, 22:57
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by Arcade Fire View Post
And...

Disable Post Report Link for a user, based on ['userid']...

How to be?

Thanks
You can try changing the condition to if ($vbulletin->userinfo['userid'] == x) instead. Try it on a test site and see.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 27 Jul 2009, 15:27
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Thanks Lynne

Works fine!!
Reply With Quote
  #6  
Old 29 Sep 2009, 01:07
compfix compfix is offline
 
Join Date: Apr 2007
This works great and thanks for the tip. I have one user who seems to want to use the 'report a post' to just to irk our mods. What I'd like to do is this:

if this person tries to report a post, I simply want it to go right back to the forum home page - 'not 'print no permission' message.


Do you have any suggestions.


Thanks


Rich
Reply With Quote
  #7  
Old 29 Sep 2009, 02:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You could just use a standard redirect (report_start hook location):

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

Change x to the userid of the user and then change 'Thank you for your report' to whatever redirect message you want displayed.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #8  
Old 01 Oct 2009, 00:40
compfix compfix is offline
 
Join Date: Apr 2007
I put this in the report.php at this location

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

And I get an error when I test it.

Am I putting it in the correct location?


Thanks for your help

--------------- Added 01 Oct 2009 at 02:01 ---------------

disregard - I figured it out.. thanks for your help!

Last edited by compfix; 01 Oct 2009 at 02:01. Reason: Auto-Merged DoublePost
Reply With Quote
  #9  
Old 04 Dec 2009, 06:57
lm3a.net's Avatar
lm3a.net lm3a.net is offline
 
Join Date: May 2009
it works great

thank u
Reply With Quote
  #10  
Old 12 Mar 2015, 20:07
M.C.'s Avatar
M.C. M.C. is offline
 
Join Date: Jan 2002
Sorry to lift it up... how to make it for several forums (for 4.2)?


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

or


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

don't seems to work
__________________
WBR`s
M.C.
Reply With Quote
  #11  
Old 12 Mar 2015, 22:37
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by M.C. View Post
Sorry to lift it up... how to make it for several forums (for 4.2)?


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

or


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

don't seems to work
You need to use the variable I used in the original post regarding this (for hook location postbit_display_complete), $this->forum['forumid']


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

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



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

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 01:09.

Layout Options | Width: Wide Color: