Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 02-10-2003, 07:21 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 .

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.
Reply With Quote
  #2  
Old 02-11-2003, 06:34 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 02-11-2003, 06:41 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 02-11-2003, 09:31 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 02-12-2003, 12:36 AM
MUG MUG is offline
 
Join Date: Apr 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would probably only add one query to newreply.php.
Reply With Quote
  #6  
Old 02-12-2003, 09:58 AM
Dan_UPC Dan_UPC is offline
 
Join Date: Dec 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-12-2003, 03:01 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 02-12-2003, 04:36 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.....
Reply With Quote
  #9  
Old 02-12-2003, 10:09 PM
Dan_UPC Dan_UPC is offline
 
Join Date: Dec 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 02-13-2003, 03:37 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, i'll leave it to you then .
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09160 seconds
  • Memory Usage 2,263KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete