The Arcive of vBulletin Modifications Site. |
|
|
Disable Post Report Link for a forum
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 PHP Code:
hook_location: report_start PHP Code:
|
|
#2
|
|||
|
|||
|
nice tips
thanks a lot |
|
#3
|
||||
|
||||
|
And...
Disable Post Report Link for a user, based on ['userid']... How to be? Thanks |
|
#4
|
||||
|
||||
|
You can try changing the condition to if ($vbulletin->userinfo['userid'] == x) instead. Try it on a test site and see.
|
|
#5
|
||||
|
||||
|
Thanks Lynne
Works fine!! |
|
#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 |
|
#7
|
||||
|
||||
|
You could just use a standard redirect (report_start hook location):
PHP Code:
|
|
#8
|
|||
|
|||
|
I put this in the report.php at this location
Code:
($hook = vBulletinHook::fetch_hook('report_start')) ? eval($hook) : false;
if+($vbulletin->userinfo['UserID'])+== 2637)
{
++++++++++++$vbulletin->url+=+'forum/index.php?'+.+$vbulletin->session->vars['sessionurl'];
++++++++++++eval(print_standard_redirect('Thank+you+for+your+report',+false,+true));
}+
Am I putting it in the correct location? Thanks for your help --------------- Added [DATE]1254362474[/DATE] at [TIME]1254362474[/TIME] --------------- disregard - I figured it out.. thanks for your help! |
|
#9
|
||||
|
||||
|
it works great
thank u |
|
#10
|
|||
|
|||
|
Sorry to lift it up... how to make it for several forums (for 4.2)?
PHP Code:
PHP Code:
|
![]() |
|
|