Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Infraction Link For Moderators If They Are Not Moderating The Forum Details »»
Hide Infraction Link For Moderators If They Are Not Moderating The Forum
Version: 1.00, by orban orban is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.0 Rating:
Released: 08-14-2006 Last Update: Never Installs: 13
 
No support by the author.

Create a new plugin:

Product: vBulletin
Hook Location: postbit_display_complete
Title: Hide Infraction Link For Moderators If They Are Not Moderating The Forum
Execution Order: 5
Plugin PHP Code:
Code:
if ($this->registry->userinfo['permissions']['usergroupid'] == 7 AND !can_moderate($this->thread['forumid']))
{
    $show['infractionlink'] = false;
}
Plugin is Active: Yes

That's it.


You might want to adjust the 7 if your moderator usergroup id isn't 7.

Note that this only hides the link and doesn't prevent them manually going to the URL.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-15-2006, 10:00 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="red">*y2krazy clicks install.</font>
Reply With Quote
  #3  
Old 08-15-2006, 10:01 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really weird this isn't build it, makes absolutely no sense to be honest.
Reply With Quote
  #4  
Old 08-16-2006, 06:19 AM
BCC BCC is offline
 
Join Date: Dec 2005
Location: Australia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me Clicks Install

Thanks, Cant this Be Built? and Uploaded as an .xml File?
Reply With Quote
  #5  
Old 08-16-2006, 06:24 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added an .xml file. I thought because it's so small there's no need for one, but oh well.
Reply With Quote
  #6  
Old 08-16-2006, 03:47 PM
cynix2 cynix2 is offline
 
Join Date: Apr 2005
Location: Reno, NV
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey i made this
https://vborg.vbsupport.ru/showthread.php?t=124125
cuz i was trying for the same thing you are
hope you dont mind that i borrowed your plugin, if you'd like i'll list you as a co-writer/supporter
Reply With Quote
  #7  
Old 08-16-2006, 03:51 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, I don't mind.

Great spot, didn't look quite in it, because I trust my mods, but they were just annoyed by the button in every post (so I removed that one).
Reply With Quote
  #8  
Old 08-16-2006, 05:25 PM
cynix2 cynix2 is offline
 
Join Date: Apr 2005
Location: Reno, NV
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my mods are a little power hungry
Reply With Quote
  #9  
Old 08-16-2006, 06:16 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you have the usergroup test in there ?
Reply With Quote
  #10  
Old 08-17-2006, 05:00 AM
Acido Acido is offline
 
Join Date: Apr 2003
Location: Argentina
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not working if the user have Moderator as additional usergroup. Please, can you help me with code for "is member of" or something like?
I can't get the correct sentence.

Thanx!
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05066 seconds
  • Memory Usage 2,283KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete