![]() |
|
Article Options |
Disable Post Report Link for a forum
by
![]() 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
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
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. No members have liked this post.
|
||||||||
Views: 6791
|
Comments |
#2
|
|||
|
|||
nice tips
thanks a lot No members have liked this post.
|
#3
|
||||
|
||||
And...
Disable Post Report Link for a user, based on ['userid']... How to be? Thanks No members have liked this post.
|
#4
|
||||
|
||||
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.) No members have liked this post.
|
#5
|
||||
|
||||
Thanks Lynne
Works fine!! No members have liked this post.
|
#6
|
|||
|
|||
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 No members have liked this post.
|
#7
|
||||
|
||||
You could just use a standard redirect (report_start hook location):
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.) No members have liked this post.
|
#8
|
||||
|
||||
I put this in the report.php at this location
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! No members have liked this post.
Last edited by compfix; 01 Oct 2009 at 02:01. Reason: Auto-Merged DoublePost |
#9
|
||||
|
||||
it works great
thank u No members have liked this post.
|
#10
|
||||||||
|
||||||||
Sorry to lift it up... how to make it for several forums (for 4.2)?
or
don't seems to work ![]()
__________________
WBR`s M.C. No members have liked this post.
|
#11
|
||||||||||||
|
||||||||||||
Originally Posted by M.C.
You need to use the variable I used in the original post regarding this (for hook location postbit_display_complete), $this->forum['forumid'] ![]()
__________________
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.) No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:21.