vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   User-optional Replacements-based Censorship (https://vborg.vbsupport.ru/showthread.php?t=63875)

moethelawn 02-05-2005 12:41 PM

Quote:

Originally Posted by Megareus Rex
Hmmm...it works on 3.0.5 for me, moe. I'll see if I can help you :-/

I didn't even try it, lol... I was just wondering if it would work with 3.0.6 before I install it, that's all

I didn't know you had this hack >_>...

FASherman 02-14-2005 05:01 AM

I'd like to see this taken just one step further.

Instead of applying a global forum-wide censor list, let users manage their own individual swear-replace list.

nighteyes 02-14-2005 01:20 PM

Works fine on 3.06 for me

natez0rz 02-20-2005 02:50 AM

This would be more useful if it didn't stop you from using replacement variables for anything else. :( I like the idea though.

zetetic 02-27-2005 04:32 PM

I've noticed a problem with this since we upgraded to 3.0.6.

We don't seem to be able to add a space after a word anymore. For example, replacing 'ass' with '***' would result in '***' when the word ass was found, and '***ert' for the word 'assert'.

However telling it to censor ' ass ' would fix that by only affecting 'ass' alone, not when used as part of another word.

Since the upgrade, the database won't accept words with a space after them.

lefthome 03-09-2005 11:06 AM

I would like to install this hack. Currently I am using vb 3.06 and will upgrade to vb3.07 this weekend. Does this hack work in vb3.07?

T3MEDIA 03-10-2005 12:14 PM

has this been updated to not touch anything besides text in forums and pm messages?

I dont want this messing up anything else.
will wait for an answer.

ProperMethodz 03-14-2005 06:34 PM

Code:

RUN SQL (use mySQL or phpMyAdmin etc.):
---------------------------------------------------------------------------------------------------------
ALTER TABLE user ADD usereplacementscensor TINYINT(1) NOT NULL DEFAULT '1' AFTER pmunread;
---------------------------------------------------------------------------------------------------------

The default value of 1 means that users WILL use the censorship by default unless
they turn it off.  If you would prefer it to be OFF by default, then use this
INSTEAD:

        ALTER TABLE user ADD usereplacementscensor TINYINT(1) NOT NULL DEFAULT '0' AFTER pmunread;

If you change your mind you can change the default using:

        ALTER TABLE user ALTER COLUMN usereplacementscensor SET DEFAULT '1';

(or SET DEFAULT '0' as appropriate).

Hello... I don't believe I have access to run these things with my host. Is there a work around or do I have to have them run this for me?

ProperMethodz 03-19-2005 01:24 AM

Quote:

Originally Posted by tryckj?vel
ok im stuck, i've followed the instructions per the txt file step by step twice now double checked everything each time and i get this error in functions.php:
Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/turbobri/public_html/forums/includes/functions.php on line 1887
which is in reference to this if statement:

Code:

        // do vBulletin 3 replacement variables
        if (!empty($style['replacements']))
        {
                if (!isset($replacementvars))
                {
                        $replacementvars = unserialize($style['replacements']);
                }

I've read through the code, and its not missing any formating that i can find, i've tried both "guest = yes" and the default one as well..

Any ideas?


Hello... I'm having the same issue but with a different line refrenced.

I really want to do this thing here... I have been reading the thread the whole night and looking into it... I am really Bawls to the wall right now too so my anticipation is through the roof to make this thing happen.

My biggest issue is that I really have no background with Php, and am pretty lost... PLEASE HELP!

Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /forum/includes/functions.php on line 2018

BamaStangGuy 07-28-2005 06:16 AM

Anyway we can get a port to 3.5?


All times are GMT. The time now is 11:03 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.01299 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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