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)
-   -   Restrict Deleting Users Hack (https://vborg.vbsupport.ru/showthread.php?t=43065)

g-force2k2 09-01-2002 10:00 PM

Restrict Deleting Users Hack
 
As requested by hellsatan and thanks to hellsatan for testing it out...

What does this hack do?
// +++++++++++++++++++
Restricts all Administrators from deleting users unless the Main Administrator (userid: 1)
When other Administrators delete users places them in a seperate usergorup and is inserted into the Users Awaiting Deletion List
User in this usergroup can't access the forums and get a global 'Under Moderation Error'
Only Main Administrator can view Users Awaiting Deletion List and can then Delete / Restore the account.

What to do?
// +++++++++++++++++++
File Modifications (4)
Templates to Add (1)

This hack is good for multiple Administrators so you can know who's being deleted... hope some ppl can use this hack ;) again thanks to hellsatan for the idea... Enjoy :)

For instructions open the phpfile in a text editor... if you like this hack i'd be greatful if you click install... thanks in advance...

g-force2k2

g-force2k2 09-02-2002 01:50 AM

Screenshot A :: View of the new admincp look... includes two user awaiting deletion links... on under the moderation section and one under the user.php section...

g-force2k2

g-force2k2 09-02-2002 01:51 AM

Screenshot B :: just a shot of the user awaiting deletion list :P regards... and hopefully someone will find this hack useful ;)

g-force2k2

Dark Shogun 09-02-2002 03:33 AM

Sounds like a great hack. Once I start adding hacks to my forum again I will add this one to the list with the other 100 I have to put up. (I am serious about the number)

Dark Shogun

Link14716 09-02-2002 12:04 PM

Cool. I will install later. Thanks ;)

Neo-Storm 09-02-2002 12:51 PM

i have installed it, but the name of the template you must add isn't there :S

Link14716 09-02-2002 12:56 PM

EDIT: whoops, see your point ;)

Looking over the code, the template name is error_userundermod
;)

Neo-Storm 09-02-2002 01:07 PM

ok thx :D

Chris M 09-06-2002 03:59 PM

Very good hack:)

Its a shame I didnt get to reply to or "install" this hack earlier;)

Thanks g-force:)

Satan

Sengir 10-12-2002 02:32 PM

I've read the instructions... but I can't find the words in global.php to add your additions underneath...

Here's the instructions
Quote:

open global.php (1)

find: (1)

// check that board is active - if not admin, then display error
I can't find that line.. Was it removed in 2.2.7?

Chris M 10-12-2002 02:43 PM

Which global.php are you trying to modify?

It should be the forum global.php:)

Try searching around lines :

PHP Code:

if (!$bbactive) {
  if (!
$permissions['cancontrolpanel']) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  }


Satan

Sengir 10-12-2002 02:53 PM

well the only global.php I see is in forums/admin.. I don't have php-nuke installed.. (Plan to have the Vbulletin Homepage hack setup)

I'll look again

UPDATE: I'm smacking myself for missing it... Thanks :)

Chris M 10-12-2002 03:05 PM

Lol...Ok:)

Satan


All times are GMT. The time now is 10:38 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.01151 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete