Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

smilies/censorship/word-replacement module proposal  Bottom

  • There is no censorship module currently available. Although I would call it "auto-replace" or something like that. The idea is to allow the user to replace a set of strings to another set of strings. Maybe wee could even merge this module with the smilies module and have just one major string-replacement module...

    String Replacement

    Regardless, I would like to suggest the options to 'replace the whole word only', 'match case' and 'replace variable:

    Match whole word only - If selected, the module would only replace the string as a whole word. If unselected, it would replace the string in any word. For example:

    If I want to replace the string 'shag' and the match whole word only is selected, it would replace:

    shag
    Shag,
    Shag?
    Shag!!!

    If I want to replace the string 'shag' and the match whole word only is UNselected, it would replace:

    Shag,
    Shagedelic
    shagy
    Shagger
    shaged

    Match case - if it unselected, the module will replace the word no matter if it's upercase, lowercase or mixed.

    Replace Variable - if selected, the admin could define a variable to replace the string. For example, if I type %username%, it would display the user's nickname. If I type %usr_email% it would display the user email. This would be good to create customized content such as email users, custom new user registration screens and emails, custom system messages and so on. For example I could write an email that have the subject: "Wellcome %username%". This also reminds me that we should have the option to send default email to users when they are registered, locked, deleted, when his/her account is about to expire (if we add the account expiration feature), etc. -- but this is another suggestion :)

    Smilies

    Simple, just type in a column the string you want to be replaced. In the other column, you type the path to the image to replace the string into:

    String Replace with
    ;) --> images/smilies/wink.gif
    :) --> images/smilies/smile.gif
  • Like the idea. Making a hook module that can be reused on modules that want to use it.

    magicX
  • See my naughty word thread.. basically thats a good idea..

    more involved then mine :)

This list is based on users active over the last 60 minutes.