vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request ~ Ban a user from a thread (https://vborg.vbsupport.ru/showthread.php?t=48773)

N9ne 02-10-2003 07:21 PM

Request ~ Ban a user from a thread
 
Here's what the hack could do:

- Only users who have posted in the thread already EXCLUDING the thread starter can be banned from the thread.

- It should work on a threadid system (just giving ideas on how it could be made)

- You should be able to un-ban users from threads.

- You should be able to ban more than one person from a thread.

- in the postbit for every user who has posted in the thread except the thread starter, there is a link "ban from thread" and if the user is already banned from the thread, the link should read "un-ban from thread". If the user is the thread starter, first of all, the first post shouldn't have the ban from thread link, and everytime the userid who started the thread posts in the thread, the ban from thread link doesn't show.

- If a user is banned from a thread, he can still view the thread and everything, but he cannot reply to it.


I think this is a good idea and can stop thread-hi-jackers who just ruin threads. Stopping them from posting in it again is a great way to clean up threads.

Please please please someone take this idea up and make a hack out of it :D.

If you're a daring hacker, there's more you can do though (this is optional stuff):

- AdminCP integration into user's profile: shows threadids and threadtitles of the threads they're banned from.

- Records of who banned who, and when, which thread, why (a give-reason system), which forum.

- Can re-voke bannings from threads in user's profile in adminCP.

- Page in adminCP which lists all threads where a user is banned from and after it in brackets, states the name and userid of the person who is banned from them.

ULTIMATESSJ 02-11-2003 06:34 PM

heh i think this would be an excellent idea for a hack, since sometimes on my forums we usually have problems with arguments on certain political subjects

Xenon 02-11-2003 06:41 PM

hmm, looks like a really intresting idea truely...
as it should be dynamically, you have to save it into the db.

i'd suggest to create a new field in the threadtable and save the banned userids there... (like the buddylist is saved..)
the unban feature can be one extra page, or always displayed for the mods when viewing a thread...

i'd do it if i'd have more time, but unfortunately i don't have enough for my todolist..

i hope at least the tips could help :)

N9ne 02-11-2003 09:31 PM

I'll try to make this on the weekend Xenon, but I think it's a little too advanced for my amateur skills in PHP. I'm guessing this is going to add 2 queries to showthread?

MUG 02-12-2003 12:36 AM

It would probably only add one query to newreply.php.

Dan_UPC 02-12-2003 09:58 AM

I should be able to do something like this sometime fairly soon as we need something like this for one of our forums and I'm thinking that I can probably do it without adding any extra queries on a normal page view.

N9ne 02-12-2003 03:01 PM

Quote:

Originally posted by Dan_UPC
I should be able to do something like this sometime fairly soon as we need something like this for one of our forums and I'm thinking that I can probably do it without adding any extra queries on a normal page view.
So should I attempt this or are you going to?

Xenon 02-12-2003 04:36 PM

it could be done without a single extraquery yes :)

if it's saved in the threadtable it is catched from the db always when showthread is called.
then normal php functions can do the rest.....

@Dan: i'm intrested in your way of doing it exactly :)
it's surely a nice feature.....

Dan_UPC 02-12-2003 10:09 PM

Quote:

Originally posted by N9ne


So should I attempt this or are you going to?

I'll do it if you are willing to wait a fortnight.

N9ne 02-13-2003 03:37 PM

Ok, i'll leave it to you then :).


All times are GMT. The time now is 12:35 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.01067 seconds
  • Memory Usage 1,737KB
  • 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_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