Users and Censor Options


You can define the minimum length for user passwords. I encourage you to set a minimum of at least six characters, and eight would be better. The longer the password, the less likely it is that someone will guess it.

There are also three activation options for users:

  • Broadcast Messages. This allow users to visit their Your Account page and send a short broadcast message. This message, which can be up to 255 characters long, is displayed to all online users for 10 minutes, just under the site's logo (provided your theme allows for this). Users can turn off this option individually, or you can disable the functionality completely.

  • Headlines Reader. This activates an in-site headlines reader, which uses XML to pull news headlines from compatible Web sites. PHP-Nuke comes preconfigured with a couple dozen compatible Web sites, and you can add your own. These headlines are shown only on users' Your Account page, not anywhere else on the site.

  • Number of News Items in Home. If you enable this, users can go into Your Account and modify the number of news items that appear in the home page. Keep in mind that some themes won't honor this setting.

UNDER THE HOOD

When you visit Web site A and click a link to Web site B, Web site A's address gets sent to the Web server at Web site B as a referrer. That way, Web site B can tell where you came from, or, in the lingo, who referred you. Tracking referrers can allow you to get a feel for where users are coming from. If your biggest referrer is Google, it means you're getting most of your visitors from that site, for example.


PHP-Nuke also has the capability to remove offensive words and replace them with the written equivalent of a "beep." The list of "bad words" is stored in the config.php file, near the bottom. Here's a clean version of the list:

 $CensorList = array("darn",             " dang",             "meanie",             "witch",             "witches",             "lawyer",             "politics",             "lawyers",             "politicians",             "postal",             "durn",             "belgium",             "po'd",             "drugs"); 

You can edit or extend this list to include whatever you want. When PHP-Nuke finds one of these words, it will replace it with ***** by default. You can change that in the preferences menu. You can also change how PHP-Nuke looks for these bad words: anywhere in any text, only at the beginning, or an exact match. Here are some examples, based on the previous list:

  • Exact Match will bleep out witch and witches, but not witched, because this isn't explicitly listed.

  • Match at the Beginning will censor witch and witched because the listed word witch appears at the beginning of both.

  • Match Anywhere will censor switched as well as witch because switched contains the listed word witch.



    PHP-Nuke Garage
    PHP-Nuke Garage
    ISBN: 0131855166
    EAN: 2147483647
    Year: 2006
    Pages: 235
    Authors: Don Jones

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net