vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Secretly ban a user (https://vborg.vbsupport.ru/showthread.php?t=36205)

John 10-19-2002 09:26 AM

Installed on vB 2.2.8, thanks - the installation took a bit of tweaking (just common sense, nothing too tricky) and it works fine. Installed the fix provided by Firefly, it fixed the newreply.php error.

John 10-19-2002 09:35 AM

A coupler of issues:

1. The banned user's name still appears in the "Last Post By:" section on the front page.
2. Allowing banned members to post new threads results in threads being created with no first post - disaster!

It would be great if only threads that were started after the user's ban were invisible. :(

Sengir 10-19-2002 01:49 PM

Hmm I'll wait to install this hack until it is completely finished..

John 10-19-2002 05:55 PM

There are other problems -

For example, we've had users who have made valuable contributions to the board, and then we've had to ban them for various reasons.

With this hack, all of the banned user's posts disappear! So, if they've started threads in the past, or they've posted in other threads, it'll all disappear.

This problem can be easily fixed, I'm going to add it to my board when I get a few spare minutes :banana:

MajorGeek 11-15-2002 02:19 AM

Im staying away. In first and last of 3 attachments you provided, the newreply.php does not match with 2.28, dont want to risk problems. Your second attachment totally leaves the newreply.php changes out completely. From reading through here, theres a few other mistakes.

I would like to see an updated version with everything fixed for 2.28 if possible? Thanks either way.

cgwillis 11-20-2002 10:11 PM

Quote:

Originally posted by dwh
Probably a bit complex to solve...though only a line or three once u figure it out...I'll give u a hint...

you need to find where the select statement happens to get the list of threads (probably in functions.php or forumdisplay.php)...and make sure that in the join to the threadstarter...their usergroupid is included in the query...and if the usergroup id belongs to that user...exclude that thread...

Problem is...it will still show up in searches...and view new posts and today's posts etc...

But to fix that u just go with the same concept...except in search.php instead...

Hope this helps...

Basically I am using this to ban people who create accounts with the sole intent to send libelous comments. I need any threads that they have created to disappear so I have been trying to do what you are saying. I understand that basically you do the same hacks as in newreply.php, but in another file so that the threads will disappear, but I can't seem to find it. I just don't know the internal system enough for that. Does anyone know where to call the query for the permissions to view threads?

extreme_old 12-03-2002 05:51 AM

what a piece of ++++

thanks to this hack, i got banned like this from a forum!!!! ++++ it pieces me off, didn't even realise til about 2 weeks later when i realize i can't see any new threads!!!!

extreme_old 12-03-2002 05:51 AM

what a piece of ++++

thanks to this hack, i got banned like this from a forum!!!! ++++ it pieces me off, didn't even realise til about 2 weeks later when i realize i can't see any new threads!!!!

MajorGeek 12-03-2002 12:56 PM

So, what your saying is that it works well? :)

Quote:

Originally posted by extreme
what a piece of ++++

thanks to this hack, i got banned like this from a forum!!!! ++++ it pieces me off, didn't even realise til about 2 weeks later when i realize i can't see any new threads!!!!


jwischka 12-17-2002 02:44 AM

lol.... definitely a testimonial from a satisfied customer.

~jeff

Colon33 12-22-2002 07:29 AM

Is there a way a set this to IGNORE by IP address? So even if the users reregisters they wont appear anyways? I think this would be just as sweet. Or how about Ignore by HOSTMASK or something for those dynamic arses. :)

Ellery Sneed 12-28-2002 01:31 PM

Does this work with 2.2.9, also is there updated txt file someone can upload?

Taco John 12-29-2002 06:45 AM

How about a button on the post that allows the mod to reveal individual posts of the banned user ("reveal this secretly banned post")

hamed 01-03-2003 03:16 AM

Xenon has added some code to use this hack. See this page:
https://vborg.vbsupport.ru/showthrea...=&pagenumber=1

Tanx again to him :)

Sweet Cheeks 01-15-2003 02:25 PM

This sounds like a great hack for some of our annoying trolls :cool:

Just 1 question, is there any way to make it so only admin see the banned users post and not Moderators?

catbaba 01-29-2003 04:59 PM

A small performance tip: Add postbit_banned to $templatesused at the top of newreply.php.

catbaba 01-29-2003 05:01 PM

Quote:

Originally posted by ~*Julie*~
Just 1 question, is there any way to make it so only admin see the banned users post and not Moderators?
Change the lines:
PHP Code:

if ($bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) { 

... to ....
PHP Code:

if ($bbuserinfo['usergroupid']==6) { 

That's it! :)

Courage 04-01-2003 09:08 AM

I installed this hack and ituls + Miseable User Hack, but I have a question.

If I suscribed to a thread and a Secretly Ban User make a new post do I receive notification ?

I do not want to receive notification

10x

Courage 04-01-2003 02:04 PM

10x to Erwin, here is the answer to my question:

In admin/functions.php, find:

PHP Code:

AND user.userid<>'$userid' 

Underneath, ADD:

PHP Code:

AND $bbuserinfo[usergroupid]<>'8' 


Change 8 to the usergroupid of the secretly banned members usergroup.

dniMTheory 08-03-2003 10:07 PM

i just installed this today on 2.30. it works perfect after you apply the additions by Xenon from post #54.

The only thing i couldn't figure out was how to prevent the banned members name from showing under the "last post" column.

nice work fellas....clicks install

warpeditor 02-04-2004 08:24 AM

2.3.4

I am still getting parse error on newreply.php.

Even I copied Chen's solution but no luck.

Anybody?

Eagle Creek 08-11-2004 10:51 AM

Cool hack!

Is there a versnio for 3.0.3?


All times are GMT. The time now is 10:09 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.01150 seconds
  • Memory Usage 1,765KB
  • 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_php_printable
  • (3)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
  • (22)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