Webmaster's Community

Designing and Development => SMF Support - Simple Machine Forums => Open Source => SMF Modifications and Themes => Topic started by: Ricky on August 17, 2011, 12:13:11 PM

Title: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on August 17, 2011, 12:13:11 PM
Selective Word Censoring on Posts, Board Index and Page Titles
by Ricky.
For SMF 2.0, 2.0 RC5


Description

This simple Administrative enhancement allows you to have selective word censoring. It means, if you have enabled SMF's default word censoring feature then it gives you ability to disable word censoring feature on certain area like Message Index or only on Page title for Topic page or disable it only posts contents but not on titles etc.

Usage Suggestion

It can be very useful if you want to replace words with some link or content which may not look good on page title or message index. This way word censoring will work on posts but will not work where it may break layout.


Download

Click here to download (http://ifandbut.com/talk/index.php?action=dlattach;topic=52.0;attach=16).


Installation

Simply install it via package manager and use it after modifying Adminstration settings.
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: pabloortiz75 on August 30, 2011, 03:07:42 PM
Hey Ricky, thank you very much for this.

I've been looking for this thing since a long time ago and it looks like no one knows the answer. No one but you! :)

Thank you once again.
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: pabloortiz75 on August 30, 2011, 03:17:58 PM
Hey Ricky , I have a small problem. It's working fine inside the specific Board but I still have the same problem in the main index (still censoring). Do you know how to solve this?

Thank you

Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on August 31, 2011, 05:02:48 PM
HI..

There is no option in this MOD to ignore censored word on Board Index, however once I get time I will try to add it !

Also, I am very much here in this board, only thing is currently this board is kinda dull but hopefully will be active one soon.
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 06, 2011, 08:07:36 AM
Hi Ricky,

This was the mod I was looking for.
Although, when I install it (wich was succesfull) I don't see any information in my "Modification Settings".  What did I do wrong?
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on September 08, 2011, 03:24:36 PM
Welcome to ifandbut.com ..


My Mistake...

Edited :)
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 08, 2011, 10:18:49 PM
Oops..

then I interpreted it so wrong.

I was looking for a MOD that was NOT showing the changed censored words in TOPICS. Because I change all kind of words into automatic links for affiliate business (thats the only way I can make a small dime out of the hostingcosts).

Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on September 09, 2011, 02:19:53 AM
Looks like you interpreted it properly but I was wrong . I took it as my other MOD. Yes, this MOD do what you want and infact it was designed to very specific purpose.

Aren't you seeing settings under : Admin --> Configuration --> Miscellaneous to disable links on certain places as you can see in screenshot I have attached ?
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 11, 2011, 01:41:47 PM
nope I can't see anything there. It seems to be completely empty. Although, when I installed the MOD it gave me a 'succeeded' and nothing seems to be wrong.
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 11, 2011, 01:45:06 PM
this is what I see

Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on September 11, 2011, 06:40:00 PM
Looks like it was never installed, can you attach copy of your ManageSettings.php from Sources folder ?
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 12, 2011, 11:09:05 AM
Yes I will. Here is when I click on "list files" in my package manager (wich gives a green 'succesfully installed' sign)

Files in archive Selective_word_censoring_on_topics_tititle_posts.zip:

    english.xml (2873 bytes)
    install20.xml (3361 bytes)
    package-info.xml (953 bytes)
    readme-english.txt (833 bytes)
    redirect-english.txt (220 bytes)



and this is the Managesettings.php file. (in dutch and english) but I use English as my default for testing background (site is in beta still).
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on September 12, 2011, 02:56:46 PM
Actually I need file ..

Sources/ManageSettings.php
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 13, 2011, 09:29:42 PM
it's not there at all ... is that possible?

(i use theme curve minimal)
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 13, 2011, 09:33:10 PM
oops.. found it :)

here you go
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on September 14, 2011, 06:11:07 AM
Its not added to the file..
Looks like its not installed at all. Can you show me screen while installing  MOD when it shows test ?
Also make sure under package manager, file permission are set to write to all, after installing, change it to restricted.
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 14, 2011, 06:39:19 PM
it finally worked! ... will do some testing. results & explanation will follow.
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 14, 2011, 07:36:43 PM
Ok. It was quite weird, but after 2 times uninstalling and reinstalling finally it seemed to work. I did not change anything and the third time when it worked and it redirected me to the modification page it only showed 4 blank checkboxes (but did recognize them from your savedscreen). I uninstalled the software again and after the 4th time it finally worked! I really don't know what made the difference, but I'm happy :)

Then I have 2 things:

1- As someone mentioned earlier, the censored word (wich in my case is transformed into a link) does look on the MAIN page like this : <a href= " ... blabla "  (you can view on www.forexaffiliate.nl - this is my testsite - the real one is on another adress) so I really looking forward to the update where you also can unlock it at the main screen
2- My real site is not in english, but in dutch. Can I run the software on the same way I did? Or do I have to do a lot of different things to get it get worked? I'm not real experienced with SimpleMachine but I'm not a real noob either. So I do understand the .php files and CAN edit them if it's necessary)

Thank you so far for your help, although - reinstalling 4 times seemed to be the clue so far :)
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on September 14, 2011, 08:31:34 PM
You also can see it does not work everywhere

(plus500 is the censored word - and translated into an affiliate-link)

here it works : http://www.forexaffiliate.nl/index.php/board,12.0.html

here it does not : http://www.forexaffiliate.nl/index.php/topic,6.msg8.html#new
here it does not : http://www.forexaffiliate.nl/index.php?action=recent

(and in the main screen it does not on 2 moments (see latest topics at the end of the page & just in the normal index)
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: alleentest on October 03, 2011, 07:50:51 PM
Will you please take a look at it? :) I'm refreshing this page for ages :):):)
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: ambservices on January 10, 2012, 04:56:55 PM
I can't download this mod.  Can someone post the files again?
Title: Re: Turn OFF Word Censoring on Topics only / Message Index : MOD
Post by: Ricky on January 11, 2012, 08:09:48 AM
You must be using firefox latest firefox, try any other browser, you should get the right file.