vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Disable Usergroups From Deleting Posts (https://vborg.vbsupport.ru/showthread.php?t=40805)

g-force2k2 07-07-2002 10:00 PM

Disable Usergroups From Deleting Posts
 
As requested [ Here ] by The Ghost :)

+++++++++++++++++++++++++++++++++++++++++++++++++
// +++++++ What to do? +++++++
// +++++++ Queries to Run (1) +++++++
// +++++++ File Modifications (7) +++++++
// +++++++ Templates To Add (1) +++++++
+++++++++++++++++++++++++++++++++++++++++++++++++

What does this do?
It restricts usergroups from deleting posts, pertaining mainly to Super Moderators and Moderators.
If you don't trust you moderators when it comes to deleting certain posts or trust their judgement then editing should be suffice enough.
Here you can disable those usergroups from deleting any posts.

Enjoy. ;)

Edit: big thanks to Boofo for helping me sort some issues out and getting things back on track :)

g-force2k2

g-force2k2 07-08-2002 02:05 AM

I thought this hack was cool myself i'll probably be installing it on my own forum :D

Here's a screenshot of the added permission ;) thanks to The Ghost for confirming that an option like this didn't exist :p

Though i know you can restrict by forums but thats a much bigger task :) Enjoy

One more quick note if you disable administrators from deleting posts then they won't have access either... for security reasons all usergroups were set to no... so you have to activate the users you want to have permission ;) regular members wont' have access either way :p

g-force2k2

Boofo 07-08-2002 02:34 AM

Will this also stop them from deleting threads? That's what the Ghost was looking for, I think.

VeRT3X 07-08-2002 02:36 AM

woot very nice, very helpful hack = ]

g-force2k2 07-08-2002 03:13 AM

Quote:

Originally posted by Boofo
Will this also stop them from deleting threads? That's what the Ghost was looking for, I think.
yes it will :)

g-force2k2

Boofo 07-08-2002 03:15 AM

Can we get a text version of this, too, please? :)

g-force2k2 07-08-2002 03:18 AM

Boofo it is a text version :p just open the file in word pad i just have a tendency to write all my hacks on php files :)

g-force2k2

Boofo 07-08-2002 03:20 AM

Thanks! Might not be a bad idea to say that in the first message. :)

Boofo 07-08-2002 03:36 AM

I have this in 2 places in the editpost.php. Which one do I add the code after?

if ($action=="deletepost") {

g-force2k2 07-08-2002 03:54 AM

sorry boofo ;\ totally missed that... i tested it on the first one but failed to see the second one... but correct me if i am wrong but if you place it on the first one can you edit the post then or does it give you an error?

g-force2k2


All times are GMT. The time now is 05:54 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.01078 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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