vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Moderators cant delete Admin's posts (https://vborg.vbsupport.ru/showthread.php?t=28766)

Goldfinger 09-24-2001 06:38 AM

Ok i just wanted to know how to make it so the Moderators on my board can't delete my posts because this gets really annoying. I think it should be a feature in 2.0.4 :D. when you set the user Permissions and such.

KuraFire 09-24-2001 07:18 AM

Good suggestion, I agree that the new vB version (won't it be 2.1 ?) should have an option where Mods can't delete Admin's posts.... :)

Admin 09-24-2001 09:35 AM

In editpost.php, add the red part of this code:
Code:

  if ($postinfo[userid]=="1" and $bbuserinfo[userid]!="1") {
    show_nopermission();
  }

} else {
  // otherwise, post is being edited

This should prevent EVERYONE but you to delete your posts.

Neo 09-24-2001 09:43 AM

what if you have 2 admin's?

Admin 09-24-2001 09:49 AM

Then you do something like this:
PHP Code:

if (($postinfo[userid]=="1" and $bbuserinfo[userid]!="1") or ($postinfo[userid]=="2" and $bbuserinfo[userid]!="2")) { 


tubedogg 09-24-2001 09:52 AM

What I don't understand is why people let people be mods on their boards (and stay mods) when the mods repeatedly do something that makes them so obviously untrustworthy...

Anyway, neogeniseva, please enter your license information in your profile. Thanks!

Neo 09-24-2001 09:59 AM

[QUOTE]Originally posted by tubedogg
What I don't understand is why people let people be mods on their boards (and stay mods) when the mods repeatedly do something that makes them so obviously untrustworthy...

Anyway, neogeniseva, please enter your license information in your profile. Thanks!

Goldfinger 09-24-2001 10:28 PM

Quote:

Originally posted by FireFly
In editpost.php, add the red part of this code:
Code:

  if ($postinfo[userid]=="1" and $bbuserinfo[userid]!="1") {
    show_nopermission();
  }

} else {
  // otherwise, post is being edited

This should prevent EVERYONE but you to delete your posts.

can my mods still delete other peoples posts with this code?

KuraFire 09-25-2001 11:13 AM

[QUOTE]Originally posted by Goldfinger


can my mods still delete other peoples posts with this code?

Admin 09-25-2001 12:28 PM

No problem. :)

Everything he said is right.


All times are GMT. The time now is 10:41 PM.

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.02076 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete