vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Allow users to self-censor thread titles and post content (https://vborg.vbsupport.ru/showthread.php?t=105209)

calorie 01-12-2006 10:00 PM

Allow users to self-censor thread titles and post content
 
Allow users to self-censor thread titles and post content.

This mod makes a custom profile field where users can enter words to censor, like admins do in the ACP, except the user's censoring only appears to that user.

No screenshot is necessary; it looks the same as 'regular' censoring. ;)

If you install this mod, click install. If you uninstall this mod, click uninstall.

Xplorer4x4 01-13-2006 09:15 AM

I had a member ask me for this the other day. Thank you. :)

Darat 01-13-2006 09:41 AM

Hi - this could be very useful for me but what sort of extra load would it put on a busy forum?

Could it also be adapted to censor all posts viewed by guests?

Zelda-King 01-13-2006 02:56 PM

Right up my street, thanks!

Installed.

EasyTarget 01-13-2006 03:09 PM

nice job, thanks calorie.

any chance you can release a hack that allows an admin to censor thread titles but not thread content?

Snake 01-13-2006 04:25 PM

Thanks man!

whitetigergrowl 01-14-2006 12:09 AM

Sweetness! Thank you!

Borgs8472 01-14-2006 12:22 AM

I tried this out, but this is no good to me as it doesn't censor words in thread titles, only in posts.

BlackxRam 01-14-2006 09:39 AM

Yeah if it supported thread titles I'd be using it right now... any possibility of adding it in?

calorie 01-14-2006 10:18 PM

Updated: thread titles and post content

Upgrade: uninstall the old and import the new

woodysfj40 01-16-2006 02:00 PM

awesome....installed and testing....been waiting for something like this!!

EasyTarget 01-16-2006 05:06 PM

Quote:

Originally Posted by EasyTarget
any chance you can release a hack that allows an admin to censor thread titles but not thread content?

with your new addition to this hack seems like the above request may be simple for you to do?

moonclamp 01-17-2006 01:25 AM

What happens if a "censor user" quotes someone elses censored words? ... will the "non censor user" see ***** or with they see the original profanity

Zelda-King 01-27-2006 06:09 PM

This increases index queries by as much as 48, just so people know.

calorie 01-27-2006 10:09 PM

They are not heavy queries, but if you want to be rid of them...

In the Self Censor Init Startup plugin find:
Code:

        $sc_ds_query = $db->query_first("SELECT data
                                        FROM " . TABLE_PREFIX . "datastore
                                        WHERE title = 'sc_profile_plus'
        ");

        $sc_ds_profile_id = unserialize($sc_ds_query['data']);
        $sc_field_name = "field".$sc_ds_profile_id;

And replace with the following after mod installation:
Code:

        $sc_field_name = "fieldX"; // set fieldX to the actual field name

Zelda-King 01-27-2006 10:34 PM

Thanks for posting this option! :)

What affect does this edit have overall?

calorie 01-29-2006 01:39 PM

This mod automatically makes the profile field for you and writes X from fieldX to a table, and then it fetches X from the table to determine $vbulletin->userinfo['fieldX']; so if you do as in post15 after this mod is installed, you can be rid of the extra queries.

Cyricx 02-03-2006 05:22 PM

Wow yeah, it increased mine by almost 80 queries til I hardcoded the field number in there hehe :)

antialiasis 02-03-2006 09:02 PM

Can words be censored by default with this?

Cyricx 02-23-2006 08:33 PM

Has anyone gotten this to work on thread titles on forumhome?

Xplorer4x4 03-06-2006 09:04 AM

Quote:

Originally Posted by calorie
They are not heavy queries, but if you want to be rid of them...

In the Self Censor Init Startup plugin find:
Code:

        $sc_ds_query = $db->query_first("SELECT data
                                        FROM " . TABLE_PREFIX . "datastore
                                        WHERE title = 'sc_profile_plus'
        ");

        $sc_ds_profile_id = unserialize($sc_ds_query['data']);
        $sc_field_name = "field".$sc_ds_profile_id;

And replace with the following after mod installation:
Code:

        $sc_field_name = "fieldX"; // set fieldX to the actual field name

No such plugin. You mean the global start plugin. ;)

ronoxQ 03-06-2006 02:27 PM

Would you be able to set a 'default' list of censored words? That way, they don't need to make the whole list themselves?

moonclamp 04-25-2006 01:38 AM

Quote:

Originally Posted by calorie
This mod automatically makes the profile field for you and writes X from fieldX to a table, and then it fetches X from the table to determine $vbulletin->userinfo['fieldX']; so if you do as in post15 after this mod is installed, you can be rid of the extra queries.

I did this edit but it messed the filter up by censoring the wrong characters.

EG.

I filtered the word "mess" so "messing" reads as "****ing",

However, after doing the plugin edit, it was reading as "mess**g"

Neo_obs 06-18-2006 07:13 AM

I am so lost in the edit you said calorie. can you give me some one on one help cause i need to get my queries down. Thanks abunch

Chazz Layne 07-30-2006 10:28 PM

How difficult would it be to make the censored list admin-controlled, and have it apply to usergroups instead of users (or perhaps on/off toggle in profile)?

This is the closest I've seen to the solution I need to provide a default, optional "work safe" environment.

TwinsForMe 09-10-2006 11:39 PM

I was running this on one board with 3.5.x and it worked well. I upgraded to 3.6.0 and it still works.

I tried installing this on two other boards that run 3.6.0 and it's not working. It's not creating a profile field. Even when I manually created the profile field it still didn't work.

Anyone else have this problem and find a workaround?

zeroality 10-03-2006 08:09 AM

I would like to get this working as well. Anyone?

zeroality 10-09-2006 05:03 PM

bump

StepOnFrog 10-25-2006 09:54 PM

Has anyone got this working with 3.6.2 yet?

Thanks... :bandit:

Noonster 11-02-2006 03:17 PM

Anyone??

StepOnFrog 11-26-2006 09:56 PM

Is this working with 3.6.4 yet?

:confused:

axyr 01-11-2007 10:05 PM

Here here! I would like a vB 3.6 version as well.

StepOnFrog 01-12-2007 07:08 AM

Hi Calorie,

There's been no response to this Mod for ages and ages, and there's been a good number of Vb Versions released since it's appearance.

Please can you reply with some indication as to whether this Mod will work with vB 3.6 or not, or what would need to be changed if it could be made to do such. Also, if possible, would this Mod work with vBAdvanced (current version).

I have a forum where swearing is a great norm, and I don't want to censor words that swearing users don't want censored. This Mod seems to be the thing I'm looking for, and certainly a fair number of other users seem in the same frame of mind.

Or, any other coder who can help would be great.

Thanks,

Step ;)

ubblite 02-01-2007 02:59 PM

Quote:

Originally Posted by StepOnFrog (Post 1125919)
Is this working with 3.6.4 yet?

:confused:

Nope, it does not work with vb3.6.4... I have already tested it.

ThunderVamp9 02-16-2007 03:06 AM

Agreed, I'd love to get this working with 3.6.4

StepOnFrog 02-16-2007 03:57 PM

Quote:

Originally Posted by ThunderVamp9 (Post 1183605)
Agreed, I'd love to get this working with 3.6.4

No Chuffing chance! :eek:

The last technical post regarding this mod was about February last year. All posts since then have, basically, been requests.

:(

ssslippy 03-04-2007 02:01 AM

Quote:

Originally Posted by calorie (Post 884104)
They are not heavy queries, but if you want to be rid of them...

In the Self Censor Init Startup plugin find:
Code:

        $sc_ds_query = $db->query_first("SELECT data
                                        FROM " . TABLE_PREFIX . "datastore
                                        WHERE title = 'sc_profile_plus'
        ");

        $sc_ds_profile_id = unserialize($sc_ds_query['data']);
        $sc_field_name = "field".$sc_ds_profile_id;

And replace with the following after mod installation:
Code:

        $sc_field_name = "fieldX"; // set fieldX to the actual field name


Using this code and creating my own mutli line text box and manually put in the field#. This is in 3.6.5

StepOnFrog 03-04-2007 11:05 PM

ssslippy,

Quote:

Using this code and creating my own mutli line text box and manually put in the field#. This is in 3.6.5
Not sure how to carry out these instructions... or, how they make this MOD work with 3.6.x

Please can you be a bit clearer?

Thanx,

Step...
:-D

bplinson 04-05-2007 05:35 AM

Yup, I would like to have this for 3.6.4 also. Will pay for someone to do it. PM ME.

4x4 Mecca 04-23-2007 08:09 PM

To use on 3.6.4

First install the product. And follow the readme about making sure censoring is enabled.

Then Go to your admin CP, click on the option

User Profile Fields

Then click on

Add New User Profile Field

Choose from the drop down
Multiple-Line Text Box

Title: Self Censor Posts
Description: Enter words here you would like to censor out of posts. For example, if you don't want to see swear words, enter them here.
Max Length: 200
Field Length: 72 (May be different for your skin, this is the width of the input box)
Field Searchable on Members List: No

Then select
"options: other" as the display page

Now you can see your field in the list. Make a note of the field number, for example 'field26'

Then do the mod here, but replace FieldX with 'field26' Or what ever your field number is.

That should be it. I may have left out a step, let me know if I did.


All times are GMT. The time now is 05:53 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.02073 seconds
  • Memory Usage 1,817KB
  • 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
  • (6)bbcode_code_printable
  • (7)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
  • (40)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