Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Filter question

  1. #1
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default Filter question

    Hey,

    On my panel (news panel) there is a word filtering tool.

    Now what I'm wondering is, what would people prefer. When someone uses a filtered word in a post should the filtered word be inserted into the database and not it's replacement.

    So like if the replacement of 'fuc*' was '****', would you like 'fuc*' to be inserted into the DB (mySQL) or it's replacement, being '****'.

    Then on the show_news page the word would be filtered there.

    This would mean, if the word is unfiltered later it won't show up as **** even though the word isn't filtered.

    Would you like the above to happen OR would you like '****' to be inserted into the DB instead of the word.

    Thanks if you understand!
    -Simon

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Unfiltered into database, clean on parse.

    This gives the user a choice on filtering or not

  3. #3
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Thanks.

    I've decided to filter on the show_news page and there is a variable at the top to define if you want filtering or not

  4. #4
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    No problem, how is it going anyway?

  5. #5
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    YANS is going very well actually!

    I've completed the basics of post/edit/delete news. I've done the show news page & filtering system.

  6. #6
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    I wish you the very best of luck with it

  7. #7
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    The only problem of filtering it on the news page if you was to set up an rss feed it wouldn't be filtered unless you were to do it on that page also it may be easier doing it on the database to save excess coding I would say.

  8. #8
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    The only problem of filtering it on the news page if you was to set up an rss feed it wouldn't be filtered unless you were to do it on that page also it may be easier doing it on the database to save excess coding I would say.
    The RSS feed is ran through a php script, so yes, it would be filtered. Also it's not excess coding as it's just running the same function on a different page :S
    Last edited by Invent; 14-10-2007 at 11:49 AM.

  9. #9
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Why not filter on insert? Have a setting to see if its right, otherwise if a person has a high number of news & traffic, speed will be an issue too, because calling on the parser too often will just be crazy.

    Parsing on post would be better. Insert word & replacement into database is my idea like:

    examples:

    word: beans
    replacement: fart

    word: bob
    replacement: ***

    you can have any replacement you want, but the default is stars.
    Last edited by Dentafrice,; 14-10-2007 at 12:32 PM.

  10. #10
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    If it was filtered on insert, and the site owner wants to change the rules about filtering e.g. another word is added to the filter database, then he would have to go through the whole database and edit it. OR filter on output.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •