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)

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?


All times are GMT. The time now is 05:47 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.01085 seconds
  • Memory Usage 1,730KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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