Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 06-24-2002, 01:37 AM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I definitely have the patience to go through and find the things to change, that's not a problem at all. I just don't have the PHP/MySQL knowledge to do the part that would involve setting up a per-user configurable censor-list. In theory, it would be a setting with three options:

No Censor
Censor Default Words
Censor Custom Words (instead of OR in addition to default words)

If somebody could come up with that much of it, I think I could (probably) do the rest (the tedious stuff) and hopefully lear something in the process.

Any takers?
Reply With Quote
  #12  
Old 06-24-2002, 03:37 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Censor
Censor Default Words
Censor Custom Words (instead of OR in addition to default words)

this options would be very easy if you chose one part at the last option: instead or in additon. if you want to let users also choose that, you'll need 2 additional fields un the usertable, if you choose it for the user you need just a small edit in function.php, in member.php aother small edit, and adding 1 new field to the user-table.

if you want to do so, i can code the changes for you
Reply With Quote
  #13  
Old 06-24-2002, 04:26 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be quite interesting.
Reply With Quote
  #14  
Old 06-24-2002, 08:43 PM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon
this options would be very easy if you chose one part at the last option: instead or in additon. if you want to let users also choose that, you'll need 2 additional fields un the usertable, if you choose it for the user you need just a small edit in function.php, in member.php aother small edit, and adding 1 new field to the user-table.
I don't mind the two additional fields at all. I assume you'd need one int field to select between the 3 (actually 4) options, and then one *?* field to contain a list of words.

Then the hack can use the original vBulletin censor list as the "default" list.

Once all of that is in there, it seems like it should just be a question of rearranging the censor code from before-insertion to on-the-fly.

I was thinking a little bit more about any performance issues, and since it seems to me that only a small percentage of users would actually use the censor, and we only need to do on-the-fly censoring for those that have it active, there really should not be any sort of performance hit. It's just one more option that should really enhance things for those who do not want to see the vulgar side of things, and for fed-up moderators who just can't read every word of every post.
Reply With Quote
  #15  
Old 06-24-2002, 08:59 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually just two options for the int field (more likely it a binary then )
yes/no code to that question: additional use default censoringwords?

if a user select no, and has no words in his censorword list, then it'll be like no censoring , if he has words in it, it'll be like just censoring his words.
selecting yes with no words is default censoring and selecting yes with additional words is censoring default words and user words.

ok, make new fields to usertable called censoroption i'd say tiny int and field censorwords varchar(250) or how much you want

open functions.php
find this code:
PHP Code:
global $enablecensor,$censorwords,$censorword,$censorchar
in section strat censortext

replace it with
PHP Code:
global $enablecensor,$censorwords,$censorword,$censorchar,$bbuserinfo;

if(
$bbuserinfo[censoroption]==0) {
  
$censorword=$bbuserinfo[censorwords]; 
} else {
  if(
trim($bbuserinfo[censorwords]!="") {
  
$censorword.=" ".$bbuserinfo[censorwords];
  }

then all you need to do is to add the yes/no code and an inputbox for the censorwords to the user-cp and add that values to the database (editing member.php)
Reply With Quote
  #16  
Old 08-14-2002, 03:59 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone gotten around to making this a formal hack yet?
Reply With Quote
  #17  
Old 10-31-2004, 05:30 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THere is one already, but it has screwed up my tables and colors on my site. I've been lookngi for another one but none have shown up.
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 02:50 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.03971 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
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_php
  • (1)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
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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