Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2002, 03:40 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Removing Delete Permissions for "Super Moderator"

Hi guys :banana: Is there a way that I can make only admin have delete permissions? I want to be able to give my moderators global IP viewing, global thread management, etc but I don't want them to be able to delete anything because it is being abused aranoid:

Thanks in advance, :banana:
Reply With Quote
  #2  
Old 09-18-2002, 03:44 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In postings.php find:

PHP Code:
if ($action=="deletethread") { 
Add after:

PHP Code:
  // Edit Only Admin Delete Thread
  
if ($bbuserinfo[usergroupid]!=6) {
     
show_nopermission();
  } 
Find:

PHP Code:
if ($action=="deleteposts") { 
Add after:

PHP Code:
  // Edit Only Admin Delete Posts
  
if ($bbuserinfo[usergroupid]!=6) {
     
show_nopermission();
  } 
This will show the no permission error if the user isn't an admin and they try to delete a post/thread.
Reply With Quote
  #3  
Old 09-18-2002, 03:45 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Julie can you please edit your signature.
You're just allowed to have one image or text in it, not combined

thank you

oh and on topic: you should talk with your mods, if you can'T trust em, fire em...
Reply With Quote
  #4  
Old 09-18-2002, 03:52 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NTLDR
In postings.php find:

PHP Code:
if ($action=="deletethread") { 
Add after:

PHP Code:
  // Edit Only Admin Delete Thread
  
if ($bbuserinfo[usergroupid]!=6) {
     
show_nopermission();
  } 
Find:

PHP Code:
if ($action=="deleteposts") { 
Add after:

PHP Code:
  // Edit Only Admin Delete Posts
  
if ($bbuserinfo[usergroupid]!=6) {
     
show_nopermission();
  } 
This will show the no permission error if the user isn't an admin and they try to delete a post/thread.
You are awesome, thank you so much :banana:
Reply With Quote
  #5  
Old 09-18-2002, 03:53 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon
Julie can you please edit your signature.
You're just allowed to have one image or text in it, not combined

thank you
Im confused to the guidelines, could you point me to a thread explaining them please, thank you aranoid:

Quote:

oh and on topic: you should talk with your mods, if you can'T trust em, fire em... [/B]
I know, but I like to give chances and avoid being nasty when I can :banana:
Reply With Quote
  #6  
Old 09-18-2002, 03:55 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=40115&highlight=img+sig " target="_blank">https://vborg.vbsupport.ru/showt...hlight=img+sig</a>

well being hard in a leading position would avoid problems ^^
Reply With Quote
  #7  
Old 09-18-2002, 09:08 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your assistance Xenon :banana:
Reply With Quote
  #8  
Old 09-19-2002, 09:14 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NTLDR's solution is correct (as usual) but I guess this would stop deleting via "admin commands" only. Mods can still delete posts by "edit post" option.

And what if you also hacked that section? They can then edit the post and remove its content by eg. ".". Is it so different than deleting?

I agree with Xenon here: If you dont trust them for deleting posts you should really think twice why they are mods anyway..
Reply With Quote
  #9  
Old 01-04-2003, 09:56 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
NTLDR's solution is correct (as usual) but I guess this would stop deleting via "admin commands" only. Mods can still delete posts by "edit post" option.
aranoid: Is there any special way to prevent it from happening both ways? :smoke:
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 10:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04228 seconds
  • Memory Usage 2,256KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete