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)
-   -   Allow Mods a temporary ban of users (https://vborg.vbsupport.ru/showthread.php?t=39584)

BlackDeath 12-24-2002 09:41 AM

Quote:

Originally posted by Erwin
I integrated it into my banning system. It's only relevant for my site. I renamed it and made it a "suspend" feature rather than call it banning, and added it into the postbit of threads for easy suspension and unsuspension. Made it all accessible from the admin, mod CPs, as well as via the staff forums. etc. etc. Just made it more functional. I do that with most hacks I install.
lol, sounds like you're bragging to me. hehehe. :D

BlackDeath 12-24-2002 10:33 AM

Quote:

Originally posted by CRego3D


Thank you .. now, when I click on "temp ban" it leads me to the page to temp ban it, but still askign for the iser id :( (just leads me to the ban link in banuser.php) .. did I missed something ?

yeah. im getting the same issue. maybe there's a template change?

BlackDeath 12-24-2002 10:43 AM

ok. no it can't be in the template. i think it's probably something that needs to be changed in banuser.php but i have no clue what that would look like. someone needs to redo this entire hack and make it work properly because i couldn't get it to work unless i changed various things around by getting ideas from the people who've posted. as it is, this hack is pretty useless because unless i'm mistaken, how can a mod get a user's id#? only admins can get that.

BlackDeath 12-24-2002 10:47 AM

Quote:

Originally posted by Hotte


Nothing. But what stops a mod, super mod or admin from un-banning himself? The temp-ban doesn?t work on files in the mod oder adminfolder, so they are still able to access the banuser.php to unban.

i'd say hopefully you would not choose a person that would do such a thing as a mod. :)

BlackDeath 12-29-2002 08:49 AM

can someone fix this so mods can see usernames instead of user id's...

Anatolia 01-29-2003 01:49 AM

Very cool hack!
nice work!
every thing is working fine bit I get a HTTP 404 - File not found Internet Explorer Error when I do an [edit] then [submit]
I can see in the browser address this: /vb/admin/banuser.php.php
so there are to .php extension!
any idea

Anatolia

Keyser S?ze 02-23-2003 08:33 PM

Quote:

Originally posted by Erwin
Okay, this is what you do.

1) Upload banuser.php into your mod subdirectory

2) Edit your mod/user.php

Find:
[--]

That's it!

Then what your mods can do is Search for a User using the normal search function in their Mod CP, and when they find the username, click on the "Temp Ban" or "Remove Temp Ban" links next to the username. And go from there!

My system is very different - so I can't test this, but it should work.

works, but the only problem is that it does not ask me for a reason or number of hours, just seems to let mods ban the user indefinntly


-----------------------

also, to everyone that replied after erwin posted this, i think u are missing, that his modification does not change the temp ban link, if u go thru that, its the same old way of using the user id, u must use the "quick search" on the main page, to find a user, and from there it will ask do u want to ban them? also it will have a link to just go to there user information

-----------------------

another question, i have more user groups than just registerd, like i have some private forums for special members and sometimes they can be naughty too, so how can i add more user groups to this hack to be banable? thanks

ImportPassion 03-08-2003 09:51 PM

I have updated this so mods that are allowed to ban can and can only ban regular users (2).
There was no point reinventing the wheel here. I just took the code from the prefectly good banning function that is already in vbb.
I also linked it to the mod ban section, so when you search for a user to ban, like you do to perm ban someone anyways, you click on temp ban and the userid is automatically input, no need to worry about usernames etc, but that can easily be changed.

have a look.

Larry@IOG 04-06-2003 01:39 AM

Ok I installed this hack and the update. I can not find where I temp ban users of my site. I do not see any changes

Larry

lioncool1589 04-06-2003 03:29 AM

how come i dont see option to temp ban user in control panel


All times are GMT. The time now is 02:23 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.01087 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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